[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):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**."]]