REST Resource: domains
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:網域
JSON 表示法 |
{
"name": string,
"createTime": string,
"permission": enum (Permission )
} |
欄位 |
name |
string
網域的資源名稱。網域名稱的格式為 domains/{domain_name} ,其中 domain_name 是完整網域名稱 (例如 mymail.mydomain.com)。
|
createTime |
string (Timestamp format)
使用者註冊這個網域的時間戳記。由伺服器指派。
|
permission |
enum (Permission )
使用者對這個網域的權限。由伺服器指派。
|
權限
列舉 |
PERMISSION_UNSPECIFIED |
預設值,一律不得明確使用。 |
OWNER |
使用者擁有網域的讀取權限,且可以與其他人共用存取權。 |
READER |
使用者具備網域的讀取權限。 |
NONE |
使用者沒有權限存取網域相關資訊。使用者未驗證網域擁有權,也未獲得其他網域擁有者的存取權。 |
方法 |
|
取得用戶端註冊的特定網域。 |
|
列出客戶註冊的網域。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# REST Resource: domains\n\n- [Resource: Domain](#Domain)\n - [JSON representation](#Domain.SCHEMA_REPRESENTATION)\n- [Permission](#Permission)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Domain\n----------------\n\nA registered domain resource in the Postmaster API.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"createTime\": string, \"permission\": enum (/workspace/gmail/postmaster/reference/rest/v1/domains#Permission) } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The resource name of the Domain. Domain names have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com). |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Timestamp when the user registered this domain. Assigned by the server. |\n| `permission` | `enum (`[Permission](/workspace/gmail/postmaster/reference/rest/v1/domains#Permission)`)` User's permission for this domain. Assigned by the server. |\n\nPermission\n----------\n\nThe possible permissions a user can have for a domain.\n\n| Enums ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `PERMISSION_UNSPECIFIED` | The default value and should never be used explicitly. |\n| `OWNER` | User has read access to the domain and can share access with others. |\n| `READER` | User has read access to the domain. |\n| `NONE` | User doesn't have permission to access information about the domain. User did not verify ownership of domain nor was access granted by other domain owners. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------|------------------------------------------------------------|\n| ### [get](/workspace/gmail/postmaster/reference/rest/v1/domains/get) | Gets a specific domain registered by the client. |\n| ### [list](/workspace/gmail/postmaster/reference/rest/v1/domains/list) | Lists the domains that have been registered by the client. |"]]