REST Resource: namespaces.revisions Stay organized with collections Save and categorize content based on your preferences.
Resource: Revision
Revision is an immutable snapshot of code and configuration. A revision references one or more container images. Revisions are created by updates to a Service.
| JSON representation |
|---|
{"apiVersion":string,"kind":string,"metadata":{object ( |
| Fields | |
|---|---|
apiVersion |
The API version for this call such as "serving.knative.dev/v1". |
kind |
The kind of this resource, in this case "Revision". |
metadata |
Metadata associated with this Revision, including name, namespace, labels, and annotations. |
spec |
Spec holds the desired state of the Revision (from the client). |
status |
Status communicates the observed state of the Revision (from the controller). |
RevisionStatus
RevisionStatus communicates the observed state of the Revision (from the controller).
| JSON representation |
|---|
{"observedGeneration":integer,"conditions":[{object ( |
| Fields | |
|---|---|
observedGeneration |
ObservedGeneration is the 'Generation' of the Revision that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False. |
conditions[] |
Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. As a Revision is being prepared, it will incrementally update conditions. Revision-specific conditions include:
|
logUrl |
Optional. Specifies the generated logging url for this particular revision based on the revision url template specified in the controller's config. |
serviceName |
Not currently used by Cloud Run. |
imageDigest |
ImageDigest holds the resolved digest for the image specified within .Spec.Container.Image. The digest is resolved during the creation of Revision. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object. |
desiredReplicas |
Output only. The configured number of instances running this revision. For Cloud Run, this only includes instances provisioned using the minScale annotation. It does not include instances created by autoscaling. |
Methods | |
|---|---|
| Delete a revision. |
| Get information about a revision. |
| List revisions. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-10 UTC.