Cloud Shell API (cloudshell:v1)

2025-11-07

1 new method

Additions

    Methods
  • cloudshell.users.environments.generateAccessToken

      Path : v1/{+environment}:generateAccessToken

      Flat Path : v1/users/{usersId}/environments/{environmentsId}:generateAccessToken

      HTTP Method : GET

      Parameters :

        environment

          Description : Required. The environment to generate the access token for.

          Pattern : ^users/[^/]+/environments/[^/]+$

          Location : path

          Required : Yes

          Type : string

        expireTime

          Description : Desired expiration time of the access token. This value must be at most 24 hours in the future. If a value is not specified, the token's expiration time will be set to a default value of 1 hour in the future.

          Location : query

          Type : string

          Format : google-datetime

        ttl

          Description : Desired lifetime duration of the access token. This value must be at most 24 hours. If a value is not specified, the token's lifetime will be set to a default value of 1 hour.

          Location : query

          Type : string

          Format : google-duration

      Parameter Order : environment

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Description : Generates an access token for the user's environment.