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
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-05 (世界標準時間)。
[null,null,["上次更新時間: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"]]