Method: properties.getPropertyQuotasSnapshot
获取给定媒体资源按配额类别划分的所有配额。这会从配额最多的类别中扣除 1 个房源配额。
HTTP 请求
GET https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。响应中会列出此媒体资源的配额。格式:properties/{property}/propertyQuotasSnapshot
|
响应正文
按配额类别整理的所有媒体资源配额的当前状态。
如果成功,响应正文将包含结构如下的数据:
字段 |
name |
string
标识符。媒体资源配额快照资源名称。
|
corePropertyQuota |
object (PropertyQuota )
核心媒体资源令牌的媒体资源配额
|
realtimePropertyQuota |
object (PropertyQuota )
实时媒体资源令牌的媒体资源配额
|
funnelPropertyQuota |
object (PropertyQuota )
漏斗媒体资源令牌的媒体资源配额
|
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-22。
[null,null,["最后更新时间 (UTC):2024-11-22。"],[[["Retrieves property quota information for a given Google Analytics 4 property, organized by quota category (core, realtime, funnel)."],["Uses an HTTP GET request with the property ID specified in the URL path."],["Returns a JSON response containing the current state of all property quotas, including their respective remaining tokens."],["Requires authorization with either \"analytics.readonly\" or \"analytics\" scope."],["This action consumes 1 property quota from the category with the most remaining quota upon execution."]]],["This content describes retrieving property quotas via a `GET` request to `https://analyticsdata.googleapis.com/v1alpha/{name=properties/*/propertyQuotasSnapshot}`. The `name` path parameter, specifying the property, is required. The request body must be empty. The response returns a JSON object containing the current state of `core`, `realtime`, and `funnel` property quotas, organized by category, along with a resource name. Authorization requires either the `analytics.readonly` or `analytics` OAuth scope. This operation consumes one quota from the highest-usage quota category.\n"]]