Menyiapkan ADC untuk lingkungan pengembangan berbasis cloud
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Saat Anda menggunakan lingkungan pengembangan berbasis cloud Google Cloud seperti
Cloud Shell atau Cloud Code, alat ini menggunakan kredensial yang Anda berikan
saat Anda login, dan mengelola semua otorisasi yang diperlukan. Anda tidak dapat menggunakan
gcloud CLI untuk mengonfigurasi ADC di lingkungan ini. Jika
Anda perlu menggunakan akun pengguna yang berbeda untuk mengonfigurasi ADC, atau mengonfigurasi ADC
menggunakan akun layanan, gunakan lingkungan pengembangan lokal atau
resource komputasi Google Cloud sebagai lingkungan pengembangan Anda.
Langkah berikutnya
Dapatkan informasi selengkapnya tentang Cloud Code.
Dapatkan informasi selengkapnya tentang Cloud Shell.
[[["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\u003eCloud-based Google Cloud development environments like Cloud Shell and Cloud Code automatically manage credentials and authorizations using your sign-in information.\u003c/p\u003e\n"],["\u003cp\u003eThe gcloud CLI cannot be used to configure Application Default Credentials (ADC) in Cloud Shell or Cloud Code environments.\u003c/p\u003e\n"],["\u003cp\u003eFor alternative user accounts or service account ADC configuration, utilize a local or Google Cloud compute environment.\u003c/p\u003e\n"],["\u003cp\u003eExplore various resources on Cloud Code, Cloud Shell, ADC credential discovery, client libraries, and REST authentication methods for more information.\u003c/p\u003e\n"]]],[],null,["When you use a Google Cloud cloud-based development environment such as\nCloud Shell or Cloud Code, the tool uses the credentials you provided\nwhen you signed in, and manages any authorizations required. You cannot use\nthe gcloud CLI to configure ADC in these environments. If\nyou need to use a different user account to configure ADC, or configure ADC\nusing a service account, use a local development environment or a\nGoogle Cloud compute resource as your development environment.\n\nWhat's next\n\n- Get more information about [Cloud Code](/code/docs).\n- Get more information about [Cloud Shell](/shell/docs).\n- Learn more about [how ADC finds credentials](/docs/authentication/application-default-credentials).\n- [Authenticate for using Cloud Client Libraries](/docs/authentication/client-libraries).\n- [Authenticate for using REST](/docs/authentication/rest).\n- Explore [authentication methods](/docs/authentication)."]]