Method: domains.list
列出用戶端已註冊的網域。回應中的網域順序不明,且沒有確定性。新建立的網域不一定會列入這份清單的結尾。
HTTP 要求
GET https://gmailpostmastertools.googleapis.com/v1/domains
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
pageSize |
integer
要求的頁面大小。伺服器傳回的網域可能會少於所要求的網域。如果未指定,伺服器會挑選適當的預設值。
|
pageToken |
string
先前的 List 要求 (如果有的話) 傳回的 nextPageToken 值。這是先前呼叫 domains.list 方法時傳回的 ListDomainsResponse.next_page_token 值。
|
回應主體
domain.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 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-05 (世界標準時間)。
[null,null,["上次更新時間:2024-09-05 (世界標準時間)。"],[[["Lists domains registered by the client, with an unspecified order."],["Allows pagination using `pageSize` and `pageToken` query parameters."],["Requires `https://www.googleapis.com/auth/postmaster.readonly` authorization scope for access."],["Returns a list of domains and a token for retrieving the next page if available."],["The request body should be empty for this `GET` request to the specified endpoint."]]],["This document details how to list registered domains via an API. A `GET` request is sent to `https://gmailpostmastertools.googleapis.com/v1/domains` with an empty request body. Optional `pageSize` and `pageToken` query parameters control pagination. The response contains a list of `domains` and a `nextPageToken` for subsequent pages. The response body's JSON representation outlines its structure. Access requires the `https://www.googleapis.com/auth/postmaster.readonly` authorization scope.\n"]]