Resource: Revision
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.
JSON representation |
---|
{ "name": string, "uid": string, "generation": string, "labels": { string: string, ... }, "annotations": { string: string, ... }, "createTime": string, "updateTime": string, "deleteTime": string, "expireTime": string, "launchStage": enum ( |
Fields | |
---|---|
name |
Output only. The unique name of this Revision. |
uid |
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. |
generation |
Output only. A number that monotonically increases every time the user modifies the desired state. |
labels |
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. An object containing a list of |
annotations |
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. An object containing a list of |
createTime |
Output only. The creation time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The last-modified time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deleteTime |
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
expireTime |
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. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
launchStage |
The least stable launch stage needed to create this resource, as defined by Google Cloud Platform Launch Stages. Cloud Run supports 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. |
service |
Output only. The name of the parent service. |
scaling |
Scaling settings for this revision. |
vpcAccess |
VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. |
maxInstanceRequestConcurrency |
Sets the maximum number of requests that each serving instance can receive. |
timeout |
Max allowed time for an instance to respond to a request. A duration in seconds with up to nine fractional digits, ending with ' |
serviceAccount |
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. |
containers[] |
Holds the single container that defines the unit of execution for this Revision. |
volumes[] |
A list of Volumes to make available to containers. |
executionEnvironment |
The execution environment being used to host this Revision. |
encryptionKey |
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 |
serviceMesh |
Enables service mesh connectivity. |
encryptionKeyRevocationAction |
The action to take if the encryption key is revoked. |
encryptionKeyShutdownDuration |
If encryptionKeyRevocationAction is SHUTDOWN, the duration before shutting down all instances. The minimum increment is 1 hour. A duration in seconds with up to nine fractional digits, ending with ' |
reconciling |
Output only. Indicates whether the resource's reconciliation is still in progress. See comments in |
conditions[] |
Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state. |
observedGeneration |
Output only. The generation of this Revision currently serving traffic. See comments in |
logUri |
Output only. The Google Console URI to obtain logs for the Revision. |
satisfiesPzs |
Output only. Reserved for future use. |
sessionAffinity |
Enable session affinity. |
scalingStatus |
Output only. The current effective scaling settings for the revision. |
nodeSelector |
The node selector for the revision. |
etag |
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. |
EncryptionKeyRevocationAction
Specifies behavior if an encryption key used by a resource is revoked.
Enums | |
---|---|
ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED |
Unspecified |
PREVENT_NEW |
Prevents the creation of new instances. |
SHUTDOWN |
Shuts down existing instances, and prevents creation of new ones. |
RevisionScalingStatus
Effective settings for the current revision
JSON representation |
---|
{ "desiredMinInstanceCount": integer } |
Fields | |
---|---|
desiredMinInstanceCount |
The current number of min instances provisioned for this revision. |
Methods |
|
---|---|
|
Deletes a Revision. |
|
Gets information about a Revision. |
|
Lists Revisions from a given Service, or from a given location. |