Method: projects.locations.repositories.computeAccessTokenStatus

Computes a Repository's Git access token status.

HTTP request

GET https://dataform.googleapis.com/v1beta1/{name=projects/*/locations/*/repositories/*}:computeAccessTokenStatus

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The repository's name.

Authorization requires the following IAM permission on the specified resource name:

  • dataform.repositories.computeAccessTokenStatus

Request body

The request body must be empty.

Response body

repositories.computeAccessTokenStatus response message.

If successful, the response body contains data with the following structure:

JSON representation
{
  "tokenStatus": enum (TokenStatus)
}
Fields
tokenStatus

enum (TokenStatus)

Indicates the status of the Git access token.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • dataform.repositories.computeAccessTokenStatus

For more information, see the IAM documentation.

TokenStatus

Indicates the status of a Git authentication token.

Enums
TOKEN_STATUS_UNSPECIFIED Default value. This value is unused.
NOT_FOUND The token could not be found in Secret Manager (or the Dataform Service Account did not have permission to access it).
INVALID The token could not be used to authenticate against the Git remote.
VALID The token was used successfully to authenticate against the Git remote.