Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Per provare l'API Admin, hai a disposizione due opzioni: OAuth 2.0 Playground o Explorer API.
OAuth 2.0 Playground
Utilizza OAuth 2.0 Playground per visualizzare l'anteprima di un flusso di autenticazione, ottenere i token di accesso e inviare richieste HTTP. Per utilizzare OAuth 2.0 Playground:
Nel passaggio 1, l'ambito https://www.googleapis.com/auth/cloud-platform è preselezionato per te. Fai clic su Autorizza API per avviare il flusso di autenticazione.
Segui il "flusso di autenticazione implicita" facendo clic su Consenti per autorizzare l'accesso di OAuth 2.0 di Google Playground ai tuoiGoogle Cloud servizi.
Nel passaggio 2, fai clic su Scambia codice di autorizzazione per i token per ricevere un
token di accesso.
Nel passaggio 3, il campo URI della richiesta è precompilato con l'URI di esempio:
Devi sostituire {appsId} con l'ID del tuo progetto Google Cloud
e poi fare clic su Send the request per visualizzare i dettagli del servizio
default del tuo progetto.
Utilizza questo campo URI per inviare richieste HTTP alle risorse specificate nel progetto. Per ulteriori informazioni su come specificare le risorse negli URI delle richieste, consulta REST nell'API Admin.
Explorer API
Utilizza Explorer API per visualizzare un elenco di tutti i metodi, i campi e le relative descrizioni dell'API Admin. Puoi quindi fare clic sugli elementi dell'elenco per generare URI e inviare richieste HTTP alle risorse specificate.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThe Admin API can be explored using either the OAuth 2.0 Playground or the APIs Explorer.\u003c/p\u003e\n"],["\u003cp\u003eThe OAuth 2.0 Playground allows you to preview authentication flows, get access tokens, and send HTTP requests.\u003c/p\u003e\n"],["\u003cp\u003eThe APIs Explorer provides a comprehensive list of Admin API methods and fields, enabling you to generate URIs and send HTTP requests.\u003c/p\u003e\n"],["\u003cp\u003eUsing the OAuth 2.0 Playground, you will need to authorize API access, exchange an authorization code for tokens, and replace placeholders in the request URI with your Google Cloud project details.\u003c/p\u003e\n"]]],[],null,["# Trying Out the Admin API\n\nThere are two options for trying out the Admin API, either the\n**OAuth 2.0 Playground** or the **APIs Explorer**.\n\nOAuth 2.0 Playground\n--------------------\n\nUse the **OAuth 2.0 Playground** to preview an authentication flow, obtain\naccess tokens, and also send HTTP requests. To use the OAuth 2.0 Playground:\n\n1. Open the [OAuth 2.0 Playground](https://developers.google.com/oauthplayground/#step1&scopes=https%3A//www.googleapis.com/auth/cloud-platform&url=https%3A//appengine.googleapis.com/v1/apps/%7BappsId%7D/services/default&content_type=application/json&http_method=GET&useDefaultOauthCred=unchecked&oauthEndpointSelect=Google&oauthAuthEndpointValue=https%3A//accounts.google.com/o/oauth2/v2/auth&oauthTokenEndpointValue=https%3A//oauth2.googleapis.com/token&includeCredentials=unchecked&accessTokenType=bearer&autoRefreshToken=unchecked&accessType=offline&forceAprovalPrompt=checked&response_type=code).\n2. In Step 1, the **https://www.googleapis.com/auth/cloud-platform** scope is pre-selected for you. Click **Authorize APIs** to start the authentication flow.\n3. Follow the \"implicit authentication flow\" by clicking **Allow** to authorize the Google OAuth 2.0 Playground access to your Google Cloud services.\n4. In Step 2, click **Exchange authorization code for tokens** to receive an\n access token.\n\n | **Note:** You can use these access tokens in HTTP requests that you want to run from the command line, as long as you do so prior to their expiration time. For example, use these access tokens to run cURL commands.\n5. In Step 3, the **Request URI** field is pre-populated with the example URI:\n\n https://appengine.googleapis.com/v1/apps/{appsId}/services/default\n\n You must replace `{appsId}` with your Google Cloud Platform project ID\n and then click `Send the request` to view the details about the\n `default` service of your project.\n\n Use this URI field to send HTTP requests against the resources that you\n specify in your project. For more information about specifying resources in\n request URIs, see\n [REST in the Admin API](/appengine/docs/admin-api/rest-in-the-api).\n | **Tip:** You can also click **List possible operations** and then scroll to the **App Engine Admin API** section to view a list of HTTP request. If you select an operation, it will populate the **Request URI** field with a template URI, in which you must specify the IDs of your resources before sending the request.\n\nAPIs Explorer\n-------------\n\nUse the **APIs Explorer** to view a list of all the Admin API\nmethods, fields, and their descriptions. You can then click the items in the\nlist to generate URIs and send HTTP requests against the resources that you\nspecify.\n| **Tip:** You can also use the APIs Explorer widgets in each of the API methods, for example [`apps.get`](/appengine/docs/admin-api/reference/rest/v1/apps/get#try-it).\n\nTo use the APIs Explorer:\n\n1. Open the [APIs Explorer](http://developers.google.com/apis-explorer/#p/appengine/v1/).\n2. Select the method that you want to try out.\n3. Specify the IDs of the resources in your project as well as any supported fields.\n4. Click **Execute** to send the HTTP request against your project and then view both the generated request URI and HTTP response.\n\nWhat's next\n-----------\n\n- [Accessing the API](/appengine/docs/admin-api/accessing-the-api)"]]