Skip to main content

rollouts

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

Overview

Namerollouts
TypeResource
Idgoogle.compute.rollouts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uint64)Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. (pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)
cancellationTimestringOutput only. The timestamp at which the Rollout was cancelled.
completionTimestringOutput only. The timestamp at which the Rollout was completed.
creationTimestampstringOutput only. [Output Only] Creation timestamp inRFC3339 text format.
currentWaveNumberstring (int64)Output only. The number of the currently running wave. Ex. 1
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
etagstringOutput only. etag of the Rollout Ex. abc1234
kindstringOutput only. [Output Only] Type of the resource. Always compute#rollout for rollouts. (default: compute#rollout)
pauseTimestringOutput only. The timestamp at which the Rollout was paused.
resumeTimestringOutput only. The timestamp at which the Rollout was resumed.
rolloutEntityobjectRequired. The resource being rolled out. (id: RolloutRolloutEntity)
rolloutPlanstringRequired. Rollout Plan used to model the Rollout. Ex. compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1
selfLinkstringOutput only. [Output Only] Server-defined fully-qualified URL for this resource.
selfLinkWithIdstringOutput only. [Output Only] Server-defined URL for this resource's resource id.
statestringOutput only. The current state of the Rollout. (CANCELLED, CANCELLING, CANCEL_FAILED, COMPLETED, COMPLETE_FAILED, COMPLETING, FAILED, PAUSED, PAUSE_FAILED, PAUSING, PROCESSING, READY, RESUMING, ROLLBACK_WAVE_FAILED, ROLLING_BACK, STATE_UNSPECIFIED, UNINITIALIZED, WAVE_FAILED)
waveDetailsarrayOutput only. Details about each wave of the rollout.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, rolloutGets details of a single project-scoped Rollout.
listselectprojectreturnPartialSuccess, orderBy, maxResults, pageToken, filterLists Rollouts in a given project and location.
deletedeleteproject, rolloutrequestIdDeletes a Rollout.
resumeexecproject, rolloutetag, requestIdResumes a Rollout.
cancelexecproject, rolloutrollback, requestIdCancels a Rollout.
pauseexecproject, rolloutrequestId, etagPauses a Rollout.
advanceexecproject, rolloutrequestId, currentWaveNumberAdvances a Rollout to the next wave, or completes it if no waves remain.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectstring
rolloutstring
currentWaveNumberstring (int64)
etagstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean
rollbackboolean

SELECT examples

Gets details of a single project-scoped Rollout.

SELECT
id,
name,
cancellationTime,
completionTime,
creationTimestamp,
currentWaveNumber,
description,
etag,
kind,
pauseTime,
resumeTime,
rolloutEntity,
rolloutPlan,
selfLink,
selfLinkWithId,
state,
waveDetails
FROM google.compute.rollouts
WHERE project = '{{ project }}' -- required
AND rollout = '{{ rollout }}' -- required
;

DELETE examples

Deletes a Rollout.

DELETE FROM google.compute.rollouts
WHERE project = '{{ project }}' --required
AND rollout = '{{ rollout }}' --required
AND requestId = '{{ requestId }}'
;

Lifecycle Methods

Resumes a Rollout.

EXEC google.compute.rollouts.resume
@project='{{ project }}' --required,
@rollout='{{ rollout }}' --required,
@etag='{{ etag }}',
@requestId='{{ requestId }}'
;