Skip to main content

revisions

Creates, updates, deletes, gets or lists a revisions resource.

Overview

Namerevisions
TypeResource
Idgoogle.run.revisions

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The unique name of this Revision.
annotationsobjectOutput 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.
conditionsarrayOutput only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.
containersarrayHolds the single container that defines the unit of execution for this Revision.
createTimestring (google-datetime)Output only. The creation time.
creatorstringOutput only. Email address of the authenticated creator.
deleteTimestring (google-datetime)Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
encryptionKeystringA 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
encryptionKeyRevocationActionstringThe action to take if the encryption key is revoked.
encryptionKeyShutdownDurationstring (google-duration)If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour.
etagstringOutput only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
executionEnvironmentstringThe execution environment being used to host this Revision.
expireTimestring (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.
generationstring (int64)Output only. A number that monotonically increases every time the user modifies the desired state.
gpuZonalRedundancyDisabledbooleanOptional. Output only. True if GPU zonal redundancy is disabled on this revision.
labelsobjectOutput 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.
launchStagestringThe 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 were, this field will be BETA.
logUristringOutput only. The Google Console URI to obtain logs for the Revision.
maxInstanceRequestConcurrencyinteger (int32)Sets the maximum number of requests that each serving instance can receive.
nodeSelectorobjectThe node selector for the revision. (id: GoogleCloudRunV2NodeSelector)
observedGenerationstring (int64)Output only. The generation of this Revision currently serving traffic. See comments in reconciling for additional information on reconciliation process in Cloud Run.
reconcilingbooleanOutput 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.
satisfiesPzsbooleanOutput only. Reserved for future use.
scalingobjectScaling settings for this revision. (id: GoogleCloudRunV2RevisionScaling)
scalingStatusobjectOutput only. The current effective scaling settings for the revision. (id: GoogleCloudRunV2RevisionScalingStatus)
servicestringOutput only. The name of the parent service.
serviceAccountstringEmail 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.
serviceMeshobjectEnables service mesh connectivity. (id: GoogleCloudRunV2ServiceMesh)
sessionAffinitybooleanEnable session affinity.
timeoutstring (google-duration)Max allowed time for an instance to respond to a request.
uidstringOutput only. Server assigned unique identifier for the Revision. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
updateTimestring (google-datetime)Output only. The last-modified time.
volumesarrayA list of Volumes to make available to containers.
vpcAccessobjectVPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. (id: GoogleCloudRunV2VpcAccess)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, workerPoolsId, revisionsIdGets information about a Revision.
listselectprojectsId, locationsId, workerPoolsIdpageSize, pageToken, showDeletedLists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.
deletedeleteprojectsId, locationsId, workerPoolsId, revisionsIdvalidateOnly, etagDeletes a Revision.
export_statusexecprojectsId, locationsId, servicesId, revisionsId, revisionsId1Read the status of an image export operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
revisionsIdstring
revisionsId1string
servicesIdstring
workerPoolsIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
showDeletedboolean
validateOnlyboolean

SELECT examples

Gets information about a Revision.

SELECT
name,
annotations,
conditions,
containers,
createTime,
creator,
deleteTime,
encryptionKey,
encryptionKeyRevocationAction,
encryptionKeyShutdownDuration,
etag,
executionEnvironment,
expireTime,
generation,
gpuZonalRedundancyDisabled,
labels,
launchStage,
logUri,
maxInstanceRequestConcurrency,
nodeSelector,
observedGeneration,
reconciling,
satisfiesPzs,
scaling,
scalingStatus,
service,
serviceAccount,
serviceMesh,
sessionAffinity,
timeout,
uid,
updateTime,
volumes,
vpcAccess
FROM google.run.revisions
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND workerPoolsId = '{{ workerPoolsId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required;

DELETE examples

Deletes a Revision.

DELETE FROM google.run.revisions
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND workerPoolsId = '{{ workerPoolsId }}' --required
AND revisionsId = '{{ revisionsId }}' --required
AND validateOnly = '{{ validateOnly }}'
AND etag = '{{ etag }}';

Lifecycle Methods

Read the status of an image export operation.

EXEC google.run.revisions.export_status 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@servicesId='{{ servicesId }}' --required,
@revisionsId='{{ revisionsId }}' --required,
@revisionsId1='{{ revisionsId1 }}' --required;