Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se describe cómo funciona la autorización en Cloud Shell.
Autoriza herramientas en Cloud Shell
Cuando realizas una llamada a la API de Google Cloud o usas una herramienta de línea de comandos que requiere credenciales (como gcloud CLI o bq) con
Cloud Shell por primera vez, se te muestra el diálogo
Autorizar Cloud Shell.
Para permitir que la herramienta use tus credenciales para realizar llamadas, haz clic en Autorizar.
Duración de la autorización
Esta autorización dura toda la sesión de Cloud Shell.
Dado que cada sesión de Cloud Shell está vinculada a una máquina virtual efímera y preconfigurada, si reinicias la VM o cierras el navegador, deberás volver a autorizar estas herramientas si las usas en tu próxima sesión nueva. Para obtener más información sobre cómo funciona Cloud Shell, consulta la página de conceptos, que describe las funciones clave y cómo funcionan.
Revocar el acceso
Para revocar el acceso de una sesión, reinicia la VM para iniciar una nueva. Para ello, haz clic en more_vertMás>Reiniciar.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (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**."]]