REST Resource: projects.locations.deliveryPipelines.releases.rollouts

Resource: Rollout

A Rollout resource in the Cloud Deploy API.

A Rollout contains information around a specific deployment to a Target.

JSON representation
{
  "name": string,
  "uid": string,
  "description": string,
  "annotations": {
    string: string,
    ...
  },
  "labels": {
    string: string,
    ...
  },
  "createTime": string,
  "approveTime": string,
  "enqueueTime": string,
  "deployStartTime": string,
  "deployEndTime": string,
  "targetId": string,
  "approvalState": enum (ApprovalState),
  "state": enum (State),
  "failureReason": string,
  "deployingBuild": string,
  "etag": string,
  "deployFailureCause": enum (FailureCause),
  "phases": [
    {
      object (Phase)
    }
  ],
  "metadata": {
    object (Metadata)
  },
  "controllerRollout": string,
  "rollbackOfRollout": string,
  "rolledBackByRollouts": [
    string
  ],
  "activeRepairAutomationRun": string
}
Fields
name

string

Optional. Name of the Rollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}. The rollout component must match [a-z]([a-z0-9-]{0,61}[a-z0-9])?

uid

string

Output only. Unique identifier of the Rollout.

description

string

Description of the Rollout for user purposes. Max length is 255 characters.

annotations

map (key: string, value: string)

User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

labels

map (key: string, value: string)

Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

Both keys and values are additionally constrained to be <= 128 bytes.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

createTime

string (Timestamp format)

Output only. Time at which the Rollout was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

approveTime

string (Timestamp format)

Output only. Time at which the Rollout was approved.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

enqueueTime

string (Timestamp format)

Output only. Time at which the Rollout was enqueued.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

deployStartTime

string (Timestamp format)

Output only. Time at which the Rollout started deploying.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

deployEndTime

string (Timestamp format)

Output only. Time at which the Rollout finished deploying.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

targetId

string

Required. The ID of Target to which this Rollout is deploying.

approvalState

enum (ApprovalState)

Output only. Approval state of the Rollout.

state

enum (State)

Output only. Current state of the Rollout.

failureReason

string

Output only. Additional information about the rollout failure, if available.

deployingBuild

string

Output only. The resource name of the Cloud Build Build object that is used to deploy the Rollout. Format is projects/{project}/locations/{location}/builds/{build}.

etag

string

This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

deployFailureCause

enum (FailureCause)

Output only. The reason this rollout failed. This will always be unspecified while the rollout is in progress.

phases[]

object (Phase)

Output only. The phases that represent the workflows of this Rollout.

metadata

object (Metadata)

Output only. Metadata contains information about the rollout.

controllerRollout

string

Output only. Name of the ControllerRollout. Format is projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}.

rollbackOfRollout

string

Output only. Name of the Rollout that is rolled back by this Rollout. Empty if this Rollout wasn't created as a rollback.

rolledBackByRollouts[]

string

Output only. Names of Rollouts that rolled back this Rollout.

activeRepairAutomationRun

string

Output only. The AutomationRun actively repairing the rollout.

ApprovalState

Valid approval states of a Rollout.

Enums
APPROVAL_STATE_UNSPECIFIED The Rollout has an unspecified approval state.
NEEDS_APPROVAL The Rollout requires approval.
DOES_NOT_NEED_APPROVAL The Rollout does not require approval.
APPROVED The Rollout has been approved.
REJECTED The Rollout has been rejected.

State

Valid states of a Rollout.

Enums
STATE_UNSPECIFIED The Rollout has an unspecified state.
SUCCEEDED The Rollout has completed successfully.
FAILED The Rollout has failed.
IN_PROGRESS The Rollout is being deployed.
PENDING_APPROVAL The Rollout needs approval.
APPROVAL_REJECTED An approver rejected the Rollout.
PENDING The Rollout is waiting for an earlier Rollout(s) to complete on this Target.
PENDING_RELEASE The Rollout is waiting for the Release to be fully rendered.
CANCELLING The Rollout is in the process of being cancelled.
CANCELLED The Rollout has been cancelled.
HALTED The Rollout is halted.

FailureCause

Well-known rollout failures.

Enums
FAILURE_CAUSE_UNSPECIFIED No reason for failure is specified.
CLOUD_BUILD_UNAVAILABLE Cloud Build is not available, either because it is not enabled or because Cloud Deploy has insufficient permissions. See required permission.
EXECUTION_FAILED The deploy operation did not complete successfully; check Cloud Build logs.
DEADLINE_EXCEEDED Deployment did not complete within the alloted time.
RELEASE_FAILED Release is in a failed state.
RELEASE_ABANDONED Release is abandoned.
VERIFICATION_CONFIG_NOT_FOUND No Skaffold verify configuration was found.
CLOUD_BUILD_REQUEST_FAILED Cloud Build failed to fulfill Cloud Deploy's request. See failureMessage for additional details.
OPERATION_FEATURE_NOT_SUPPORTED A Rollout operation had a feature configured that is not supported.

Phase

Phase represents a collection of jobs that are logically grouped together for a Rollout.

JSON representation
{
  "id": string,
  "state": enum (State),
  "skipMessage": string,

  // Union field jobs can be only one of the following:
  "deploymentJobs": {
    object (DeploymentJobs)
  },
  "childRolloutJobs": {
    object (ChildRolloutJobs)
  }
  // End of list of possible types for union field jobs.
}
Fields
id

string

Output only. The ID of the Phase.

state

enum (State)

Output only. Current state of the Phase.

skipMessage

string

Output only. Additional information on why the Phase was skipped, if available.

Union field jobs. The job composition of this Phase. jobs can be only one of the following:
deploymentJobs

object (DeploymentJobs)

Output only. Deployment job composition.

childRolloutJobs

object (ChildRolloutJobs)

Output only. ChildRollout job composition.

State

Valid states of a Phase.

Enums
STATE_UNSPECIFIED The Phase has an unspecified state.
PENDING The Phase is waiting for an earlier Phase(s) to complete.
IN_PROGRESS The Phase is in progress.
SUCCEEDED The Phase has succeeded.
FAILED The Phase has failed.
ABORTED The Phase was aborted.
SKIPPED The Phase was skipped.

DeploymentJobs

Deployment job composition.

JSON representation
{
  "deployJob": {
    object (Job)
  },
  "verifyJob": {
    object (Job)
  },
  "predeployJob": {
    object (Job)
  },
  "postdeployJob": {
    object (Job)
  }
}
Fields
deployJob

object (Job)

Output only. The deploy Job. This is the deploy job in the phase.

verifyJob

object (Job)

Output only. The verify Job. Runs after a deploy if the deploy succeeds.

predeployJob

object (Job)

Output only. The predeploy Job, which is the first job on the phase.

postdeployJob

object (Job)

Output only. The postdeploy Job, which is the last job on the phase.

Job

Job represents an operation for a Rollout.

JSON representation
{
  "id": string,
  "state": enum (State),
  "skipMessage": string,
  "jobRun": string,

  // Union field job_type can be only one of the following:
  "deployJob": {
    object (DeployJob)
  },
  "verifyJob": {
    object (VerifyJob)
  },
  "predeployJob": {
    object (PredeployJob)
  },
  "postdeployJob": {
    object (PostdeployJob)
  },
  "createChildRolloutJob": {
    object (CreateChildRolloutJob)
  },
  "advanceChildRolloutJob": {
    object (AdvanceChildRolloutJob)
  }
  // End of list of possible types for union field job_type.
}
Fields
id

string

Output only. The ID of the Job.

state

enum (State)

Output only. The current state of the Job.

skipMessage

string

Output only. Additional information on why the Job was skipped, if available.

jobRun

string

Output only. The name of the JobRun responsible for the most recent invocation of this Job.

Union field job_type. The type of Job. job_type can be only one of the following:
deployJob

object (DeployJob)

Output only. A deploy Job.

verifyJob

object (VerifyJob)

Output only. A verify Job.

predeployJob

object (PredeployJob)

Output only. A predeploy Job.

postdeployJob

object (PostdeployJob)

Output only. A postdeploy Job.

createChildRolloutJob

object (CreateChildRolloutJob)

Output only. A createChildRollout Job.

advanceChildRolloutJob

object (AdvanceChildRolloutJob)

Output only. An advanceChildRollout Job.

State

Valid states of a Job.

Enums
STATE_UNSPECIFIED The Job has an unspecified state.
PENDING The Job is waiting for an earlier Phase(s) or Job(s) to complete.
DISABLED The Job is disabled.
IN_PROGRESS The Job is in progress.
SUCCEEDED The Job succeeded.
FAILED The Job failed.
ABORTED The Job was aborted.
SKIPPED The Job was skipped.
IGNORED The Job was ignored.

DeployJob

This type has no fields.

A deploy Job.

VerifyJob

This type has no fields.

A verify Job.

PredeployJob

A predeploy Job.

JSON representation
{
  "actions": [
    string
  ]
}
Fields
actions[]

string

Output only. The custom actions that the predeploy Job executes.

PostdeployJob

A postdeploy Job.

JSON representation
{
  "actions": [
    string
  ]
}
Fields
actions[]

string

Output only. The custom actions that the postdeploy Job executes.

CreateChildRolloutJob

This type has no fields.

A createChildRollout Job.

AdvanceChildRolloutJob

This type has no fields.

An advanceChildRollout Job.

ChildRolloutJobs

ChildRollouts job composition

JSON representation
{
  "createRolloutJobs": [
    {
      object (Job)
    }
  ],
  "advanceRolloutJobs": [
    {
      object (Job)
    }
  ]
}
Fields
createRolloutJobs[]

object (Job)

Output only. List of CreateChildRolloutJobs

advanceRolloutJobs[]

object (Job)

Output only. List of AdvanceChildRolloutJobs

Metadata

Metadata includes information associated with a Rollout.

JSON representation
{
  "cloudRun": {
    object (CloudRunMetadata)
  },
  "automation": {
    object (AutomationRolloutMetadata)
  },
  "custom": {
    object (CustomMetadata)
  }
}
Fields
cloudRun

object (CloudRunMetadata)

Output only. The name of the Cloud Run Service that is associated with a Rollout.

automation

object (AutomationRolloutMetadata)

Output only. AutomationRolloutMetadata contains the information about the interactions between Automation service and this rollout.

custom

object (CustomMetadata)

Output only. Custom metadata provided by user-defined Rollout operations.

AutomationRolloutMetadata

AutomationRolloutMetadata contains Automation-related actions that were performed on a rollout.

JSON representation
{
  "promoteAutomationRun": string,
  "advanceAutomationRuns": [
    string
  ],
  "repairAutomationRuns": [
    string
  ]
}
Fields
promoteAutomationRun

string

Output only. The name of the AutomationRun initiated by a promote release rule.

advanceAutomationRuns[]

string

Output only. The names of the AutomationRuns initiated by an advance rollout rule.

repairAutomationRuns[]

string

Output only. The names of the AutomationRuns initiated by a repair rollout rule.

Methods

advance

Advances a Rollout in a given project and location.

approve

Approves a Rollout.

cancel

Cancels a Rollout in a given project and location.

create

Creates a new Rollout in a given project and location.

get

Gets details of a single Rollout.

ignoreJob

Ignores the specified Job in a Rollout.

list

Lists Rollouts in a given project and location.

retryJob

Retries the specified Job in a Rollout.