Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Ada dua opsi untuk mencoba Admin API, baik OAuth 2.0 Playground atau APIs Explorer.
OAuth 2.0 Playground
Gunakan OAuth 2.0 Playground untuk melihat pratinjau alur autentikasi, mendapatkan token akses, dan juga mengirim permintaan HTTP. Untuk menggunakan OAuth 2.0 Playground:
Pada Langkah 1, cakupan https://www.googleapis.com/auth/cloud-platform telah dipilih sebelumnya untuk Anda. Klik Authorize APIs untuk memulai alur autentikasi.
Ikuti "alur autentikasi implisit" dengan mengklik Allow untuk mengizinkan akses Google OAuth 2.0 Playground ke layananGoogle Cloud Anda.
Pada Langkah 2, klik Exchange authorization code for tokens untuk menerima token akses.
Di Langkah 3, kolom URI Permintaan telah diisi sebelumnya dengan URI contoh:
Anda harus mengganti {appsId} dengan project ID Google Cloud Platform, lalu mengklik Send the request untuk melihat detail tentang layanan default project Anda.
Gunakan kolom URI ini untuk mengirim permintaan HTTP pada resource yang Anda tentukan dalam project. Untuk mengetahui informasi selengkapnya tentang menentukan resource dalam URI permintaan, lihat REST di Admin API.
APIs Explorer
Gunakan APIs Explorer untuk melihat daftar semua metode, kolom, dan deskripsi Admin API. Lalu, Anda dapat mengklik item dalam daftar untuk membuat URI dan mengirim permintaan HTTP pada resource yang ditentukan.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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)"]]