Skip to main content

revisions

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

Overview

Namerevisions
TypeResource
Idgoogle.run.revisions

Fields

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.
createTimestringOutput only. The creation time.
deleteTimestringOutput 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.
encryptionKeyShutdownDurationstringIf 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.
expireTimestringOutput 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.
generationstringOutput only. A number that monotonically increases every time the user modifies the desired state.
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.
maxInstanceRequestConcurrencyintegerSets the maximum number of requests that each serving instance can receive.
nodeSelectorobjectHardware constraints configuration.
observedGenerationstringOutput 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.
scalingobjectSettings for revision-level scaling settings.
scalingStatusobjectEffective settings for the current revision
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.
serviceMeshobjectSettings for Cloud Service Mesh. For more information see https://cloud.google.com/service-mesh/docs/overview.
sessionAffinitybooleanEnable session affinity.
timeoutstringMax 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.
updateTimestringOutput only. The last-modified time.
volumesarrayA list of Volumes to make available to containers.
vpcAccessobjectVPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, revisionsId, servicesIdGets information about a Revision.
listSELECTlocationsId, projectsId, servicesIdLists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.
deleteDELETElocationsId, projectsId, revisionsId, servicesIdDeletes a Revision.
export_statusEXEClocationsId, projectsId, revisionsId, revisionsId1, servicesIdRead the status of an image export operation.

SELECT examples

Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.

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

DELETE example

Deletes the specified revisions resource.

/*+ delete */
DELETE FROM google.run.revisions
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND revisionsId = '{{ revisionsId }}'
AND servicesId = '{{ servicesId }}';