projects

GET /v2/projects/{projectsId}/locations/{locationsId}/services/{servicesId}/revisions/{revisionsId}

Changed on

Gets information about a Revision.

Request

  • Base URL
    https://run.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/run
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/run
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/run.readonly
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/run.readonly

Path parameters

projectsId, string required
locationsId, string required
servicesId, string required
revisionsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Response

Successful response

GoogleCloudRunV2Revision required

A Revision is an immutable snapshot of code and configuration. A Revision references a container image. Revisions are only created by updates to its parent Service.

ambientNetworking, GoogleCloudRunV2AmbientNetworking

Configuration for Ambient Networking.

annotations, object

Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.

client, string

Output only. Arbitrary identifier for the API client.

clientVersion, string

Output only. Arbitrary version identifier for the API client.

conditions, GoogleCloudRunV2Condition[]

Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.

containerStatuses, GoogleCloudRunV2ContainerStatus[]

Output only. Status information for each of the specified containers. The status includes the resolved digest for specified images.

containers, GoogleCloudRunV2Container[]

Holds the list which define the units of execution for this Revision.

createTime, string google-datetime

Output only. The creation time.

creator, string

Output only. Email address of the authenticated creator.

deleteTime, string google-datetime

Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.

encryptionKey, string

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

encryptionKeyRevocationAction, 'ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED' | 'PREVENT_NEW' | 'SHUTDOWN'

The action to take if the encryption key is revoked.

encryptionKeyShutdownDuration, string google-duration

If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.

etag, string

Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.

executionEnvironment, 'EXECUTION_ENVIRONMENT_UNSPECIFIED' | 'EXECUTION_ENVIRONMENT_GEN1' | 'EXECUTION_ENVIRONMENT_GEN2'

The execution environment being used to host this Revision.

expireTime, string google-datetime

Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.

generation, string int64

Output only. A number that monotonically increases every time the user modifies the desired state.

gpuZonalRedundancyDisabled, boolean

Optional. Output only. True if GPU zonal redundancy is disabled on this revision.

labels, object

Output only. Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels.

launchStage, 'LAUNCH_STAGE_UNSPECIFIED' | 'UNIMPLEMENTED' | 'PRELAUNCH' | 'EARLY_ACCESS' | 'ALPHA' | 'BETA' | 'GA' | 'DEPRECATED'

The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. Note that this value might not be what was used as input. For example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level features are used, this field will be BETA.

logUri, string

Output only. The Google Console URI to obtain logs for the Revision.

maxInstanceRequestConcurrency, integer

Sets the maximum number of requests that each serving instance can receive.

name, string

Output only. The unique name of this Revision.

nodeSelector, GoogleCloudRunV2NodeSelector

Hardware constraints configuration.

observedGeneration, string int64

Output only. The generation of this Revision currently serving traffic. See comments in reconciling for additional information on reconciliation process in Cloud Run.

reconciling, boolean

Output only. Indicates whether the resource's reconciliation is still in progress. See comments in Service.reconciling for additional information on reconciliation process in Cloud Run.

sandboxes, GoogleCloudRunV2SandboxConfiguration

Configuration for sandboxes.

satisfiesPzs, boolean

Output only. Reserved for future use.

scaling, GoogleCloudRunV2RevisionScaling

Settings for revision-level scaling settings.

scalingStatus, GoogleCloudRunV2RevisionScalingStatus

Effective settings for the current revision

service, string

Output only. The name of the parent service.

serviceAccount, string

Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has.

serviceMesh, GoogleCloudRunV2ServiceMesh

Settings for Cloud Service Mesh. For more information see https://cloud.google.com/service-mesh/docs/overview.

sessionAffinity, boolean

Enable session affinity.

timeout, string google-duration

Max allowed time for an instance to respond to a request.

uid, string

Output only. Server assigned unique identifier for the Revision. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

updateTime, string google-datetime

Output only. The last-modified time.

volumes, GoogleCloudRunV2Volume[]

A list of Volumes to make available to containers.

vpcAccess, GoogleCloudRunV2VpcAccess

VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

workloadIdentityConfig, GoogleCloudRunV2WorkloadIdentityConfig

Workload identity settings.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/run.readonly was removed from the endpoint's security scheme Oauth2

    1 more change in this revision