[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],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**."]]