Method: domains.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
列出客戶已註冊的網域。回應中的網域順序未指定,且不具決定性。新建立的網域不一定會新增至清單結尾。
HTTP 要求
GET https://gmailpostmastertools.googleapis.com/v1/domains
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
pageSize |
integer
請求的頁面大小。伺服器傳回的網域數量可能會少於要求的數量。如未指定,伺服器會挑選適當的預設值。
|
pageToken |
string
先前的 List 要求 (如果有的話) 傳回的 nextPageToken 值。這是先前呼叫 domains.list 方法時傳回的 ListDomainsResponse.next_page_token 值。
|
回應主體
回應訊息,用於 domains.list。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
{
"domains": [
{
object (Domain )
}
],
"nextPageToken": string
} |
欄位 |
domains[] |
object (Domain )
網域清單。
|
nextPageToken |
string
用來擷取下一頁結果的符記;如果清單中沒有其他結果,這個欄位會是空白的。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/postmaster.readonly
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Method: domains.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListDomainsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists the domains that have been registered by the client. The order of domains in the response is unspecified and non-deterministic. Newly created domains will not necessarily be added to the end of this list.\n\n### HTTP request\n\n`GET https://gmailpostmastertools.googleapis.com/v1/domains`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Requested page size. Server may return fewer domains than requested. If unspecified, server will pick an appropriate default. |\n| `pageToken` | `string` The nextPageToken value returned from a previous List request, if any. This is the value of [ListDomainsResponse.next_page_token](/workspace/gmail/postmaster/reference/rest/v1/domains/list#body.ListDomainsResponse.FIELDS.next_page_token) returned from the previous call to `domains.list` method. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for domains.list.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"domains\": [ { object (/workspace/gmail/postmaster/reference/rest/v1/domains#Domain) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------|\n| `domains[]` | `object (`[Domain](/workspace/gmail/postmaster/reference/rest/v1/domains#Domain)`)` The list of domains. |\n| `nextPageToken` | `string` Token to retrieve the next page of results, or empty if there are no more results in the list. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/postmaster.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]