Method: domains.get
获取客户端注册的特定网域。如果该网域不存在,则返回 NOT_FOUND。
HTTP 请求
GET https://gmailpostmastertools.googleapis.com/v1/{name=domains/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
网域的资源名称。域名应为 domains/{domain_name} ,其中 domain_name 是完全限定域名。
|
响应正文
如果成功,则响应正文包含一个 Domain
实例。
授权范围
需要以下 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。"],[[["Retrieves details about a specific domain registered by the client, returning a NOT_FOUND error if the domain doesn't exist."],["Uses a GET request with the domain name as a path parameter, formatted as `domains/{domain_name}`."],["Requires an empty request body and returns a Domain object in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/postmaster.readonly` scope for access."]]],["The core content describes how to retrieve a specific domain registered by a client. A `GET` request is sent to a URL following gRPC Transcoding syntax, with the domain's resource name (`domains/{domain_name}`) provided as a path parameter. The request body must be empty. A successful response returns a `Domain` instance. The request requires the `https://www.googleapis.com/auth/postmaster.readonly` OAuth scope. A `NOT_FOUND` error is returned if the domain doesn't exist.\n"]]