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
有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-05。
[null,null,["最后更新时间 (UTC):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"]]