Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Hay dos opciones para probar la API de Administrador, ya sea OAuth 2.0 Playground o el Explorador de API.
OAuth 2.0 Playground
Usa OAuth 2.0 Playground para obtener una vista previa de un flujo de autenticación, obtener tokens de acceso y enviar solicitudes HTTP. Para usar OAuth 2.0 Playground, sigue estos pasos:
En el paso 1, el alcance https://www.googleapis.com/auth/cloud-platform está preseleccionado. Haz clic en Autorizar API para iniciar el flujo de autenticación.
Para seguir el “flujo de autenticación implícito”, haz clic en Permitir a fin de autorizar el acceso de Google OAuth 2.0 Playground a tus servicios de Google Cloud.
En el paso 2, haz clic en Código de autorización de intercambio para tokens a fin de recibir un token de acceso.
En el paso 3, el campo URI de solicitud se prepropaga con el URI de ejemplo:
Debes reemplazar {appsId} por el ID de tu proyecto de Google Cloud Platform y, luego, hacer clic en Send the request para ver los detalles sobre el servicio default de tu proyecto.
Usa este campo de URI para enviar solicitudes HTTP a los recursos que especificas en tu proyecto. si deseas obtener más información para especificar recursos en los URI de solicitud, consulta REST en la API de Administrador.
Explorador de API
Usa el Explorador de API para ver una lista de todos los métodos, los campos y sus descripciones de la API de Administrador. Luego, puedes hacer clic en los elementos de la lista para generar los URI y enviar solicitudes HTTP con los recursos que especifiques.
Para usar el Explorador de API, sigue estos pasos:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2024-12-22 (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)"]]