[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-21 UTC。"],[],[],null,["# Authorize with Cloud Shell\n\nThis page describes how authorization works in Cloud Shell.\n\nAuthorize tools in Cloud Shell\n------------------------------\n\nWhen you make a Google Cloud API call or use a command-line tool that\nrequires credentials (such as the gcloud CLI or `bq`) with\nCloud Shell for the first time, Cloud Shell prompts\nyou with the **Authorize Cloud Shell** dialog.\n\nTo allow the tool to use your credentials to make calls, click **Authorize**.\n\n### Duration of authorization\n\nThis authorization lasts the lifetime of your Cloud Shell session.\nSince each Cloud Shell session is tied to an\nephemeral, pre-configured virtual machine, if you restart your VM or close\nyour browser, you will need to reauthorize these tools if you use them in\nyour next new session. To learn more about how Cloud Shell works,\nrefer to the [Concepts page](/shell/docs/how-cloud-shell-works) that outlines\nkey features and how they work.\n\n### Revoke access\n\nTo revoke access for a session, restart your VM to start a new session by\nclicking more_vert **More** \\\u003e\n**Restart**."]]