Resource: Revision
A child resource of a Deployment generated by a 'CreateDeployment' or 'UpdateDeployment' call. Each Revision contains metadata pertaining to a snapshot of a particular Deployment.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "action": enum ( |
Fields | |
---|---|
name |
Revision name. Format: |
create |
Output only. Time when the revision was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
update |
Output only. Time when the revision was last modified. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
action |
Output only. The action which created this revision |
state |
Output only. Current state of the revision. |
apply |
Output only. Outputs and artifacts from applying a deployment. |
state |
Output only. Additional info regarding the current state. |
error |
Output only. Code describing any errors that may have occurred. |
build |
Output only. Cloud Build instance UUID associated with this revision. |
logs |
Output only. Location of Revision operation logs in |
tf |
Output only. Errors encountered when creating or updating this deployment. Errors are truncated to 10 entries, see |
error |
Output only. Location of Terraform error logs in Google Cloud Storage. Format: |
service |
Output only. User-specified Service Account (SA) to be used as credential to manage resources. Format: |
import |
Output only. By default, Infra Manager will return a failure when Terraform encounters a 409 code (resource conflict error) during actuation. If this flag is set to true, Infra Manager will instead attempt to automatically import the resource into the Terraform state (for supported resource types) and continue actuation. Not all resource types are supported, refer to documentation. |
worker |
Output only. The user-specified Cloud Build worker pool resource in which the Cloud Build job will execute. Format: |
tf |
Output only. The user-specified Terraform version constraint. Example: "=1.3.10". |
tf |
Output only. The version of Terraform used to create the Revision. It is in the format of "Major.Minor.Patch", for example, "1.3.10". |
quota |
Output only. Cloud Storage path containing quota validation results. This field is set when a user sets Deployment.quota_validation field to ENABLED or ENFORCED. Format: |
quota |
Optional. Input to control quota checks for resources in terraform configuration files. There are limited resources on which quota validation applies. |
Union field blueprint . Blueprint that was deployed. blueprint can be only one of the following: |
|
terraform |
Output only. A blueprint described using Terraform's HashiCorp Configuration Language as a root module. |
Action
Actions that generate a revision.
Enums | |
---|---|
ACTION_UNSPECIFIED |
The default value. This value is used if the action is omitted. |
CREATE |
The revision was generated by creating a deployment. |
UPDATE |
The revision was generated by updating a deployment. |
DELETE |
The revision was deleted. |
State
Possible states of a revision.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
APPLYING |
The revision is being applied. |
APPLIED |
The revision was applied successfully. |
FAILED |
The revision could not be applied successfully. |
ErrorCode
Possible errors if Revision could not be created or updated successfully.
Enums | |
---|---|
ERROR_CODE_UNSPECIFIED |
No error code was specified. |
CLOUD_BUILD_PERMISSION_DENIED |
Cloud Build failed due to a permission issue. |
APPLY_BUILD_API_FAILED |
Cloud Build job associated with creating or updating a deployment could not be started. |
APPLY_BUILD_RUN_FAILED |
Cloud Build job associated with creating or updating a deployment was started but failed. |
QUOTA_VALIDATION_FAILED |
quota validation failed for one or more resources in terraform configuration files. |
Methods |
|
---|---|
|
Exports Terraform state file from a given revision. |
|
Gets details about a Revision . |
|
Lists Revision s of a deployment. |