Method: domains.get
Consente di ottenere un dominio specifico registrato dal client. Restituisce NOT_FOUND se il dominio non esiste.
Richiesta HTTP
GET https://gmailpostmastertools.googleapis.com/v1/{name=domains/*}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
name |
string
Il nome della risorsa del dominio. Deve avere il formato domains/{domain_name} , dove nome_dominio è il nome di dominio completo.
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Domain
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/postmaster.readonly
Per ulteriori informazioni, consulta la Guida alle autorizzazioni.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-09-05 UTC.
[null,null,["Ultimo aggiornamento 2024-09-05 UTC."],[[["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"]]