Method: accounts.quotas.list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
列出 Merchant Center 账号的每日调用配额和每个组的使用情况。
HTTP 请求
GET https://merchantapi.googleapis.com/quota/v1beta/{parent=accounts/*}/quotas
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。拥有一系列付款方式配额的商家账号。格式:accounts/{account}
|
查询参数
参数 |
pageSize |
integer
可选。响应中可返回的配额数量上限,用于分页。默认为 500;大于 1,000 的值将强制转换为 1,000。
|
pageToken |
string
可选。用于检索后续页面的令牌(如果提供)。所有其他参数都必须与提供页面令牌的原始调用匹配。
|
响应正文
ListMethodGroups 方法的响应消息。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"quotaGroups": [
{
object (QuotaGroup )
}
],
"nextPageToken": string
} |
字段 |
quotaGroups[] |
object (QuotaGroup )
每组的方法、当前配额用量和限制。该配额会在组中的所有方法之间共享。这些组会按 quotaUsage 降序排序。
|
nextPageToken |
string
可作为 pageToken 发送并用于检索下一页的令牌。如果省略此字段,则不存在后续页面。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/content
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-23。
[null,null,["最后更新时间 (UTC):2025-01-23。"],[[["\u003cp\u003eLists the daily call quota and usage per group for a given Merchant Center account.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eUses a \u003ccode\u003eGET\u003c/code\u003e request to the \u003ccode\u003ehttps://merchantapi.googleapis.com/quota/v1beta/{parent=accounts/*}/quotas\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eAccepts optional query parameters for pagination: \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eReturns a response body containing quota groups, their usage, and a token for retrieving subsequent pages.\u003c/p\u003e\n"]]],["This document outlines how to retrieve daily call quota and usage per group for a Merchant Center account using the `GET` request: `https://merchantapi.googleapis.com/quota/v1beta/{parent=accounts/*}/quotas`. The `parent` path parameter specifies the account. Optional query parameters `pageSize` (default 500, max 1000) and `pageToken` handle pagination. The request body must be empty. The response, formatted as JSON, includes `quotaGroups` with usage data and `nextPageToken` for further pages. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"],null,["# Method: accounts.quotas.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListQuotaGroupsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the daily call quota and usage per group for your Merchant Center account.\n\n### HTTP request\n\n`GET https://merchantapi.googleapis.com/quota/v1beta/{parent=accounts/*}/quotas`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The merchant account who owns the collection of method quotas Format: accounts/{account} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of quotas to return in the response, used for paging. Defaults to 500; values above 1000 will be coerced to 1000. |\n| `pageToken` | `string` Optional. Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for the ListMethodGroups method.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"quotaGroups\": [ { object (/merchant/api/reference/rest/quota_v1beta/accounts.quotas#QuotaGroup) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `quotaGroups[]` | `object (`[QuotaGroup](/merchant/api/reference/rest/quota_v1beta/accounts.quotas#QuotaGroup)`)` The methods, current quota usage and limits per each group. The quota is shared between all methods in the group. The groups are sorted in descending order based on [quotaUsage](/merchant/api/reference/rest/quota_v1beta/accounts.quotas#QuotaGroup.FIELDS.quota_usage). |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]