Skip to main content

rollout_plans

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

Overview

Namerollout_plans
TypeResource
Idgoogle.compute.rollout_plans

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])?)
creationTimestampstringOutput only. [Output Only] Creation timestamp inRFC3339 text format.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
kindstringOutput only. [Output Only] Type of the resource. Always compute#rolloutPlan for rolloutPlans. (default: compute#rolloutPlan)
locationScopestringThe location scope of the rollout plan. If not specified, the location scope is considered as ZONAL. (LOCATION_SCOPE_UNSPECIFIED, REGIONAL, ZONAL)
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.
wavesarrayRequired. The waves included in this rollout plan.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, rolloutPlanGets details of a single project-scoped RolloutPlan.
listselectprojectfilter, maxResults, pageToken, orderBy, returnPartialSuccessLists RolloutPlans in a given project and location.
insertinsertprojectrequestIdCreates a new RolloutPlan in a given project and location.
deletedeleteproject, rolloutPlanrequestIdDeletes a RolloutPlan.

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
rolloutPlanstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean

SELECT examples

Gets details of a single project-scoped RolloutPlan.

SELECT
id,
name,
creationTimestamp,
description,
kind,
locationScope,
selfLink,
selfLinkWithId,
waves
FROM google.compute.rollout_plans
WHERE project = '{{ project }}' -- required
AND rolloutPlan = '{{ rolloutPlan }}' -- required
;

INSERT examples

Creates a new RolloutPlan in a given project and location.

INSERT INTO google.compute.rollout_plans (
data__locationScope,
data__description,
data__waves,
data__name,
project,
requestId
)
SELECT
'{{ locationScope }}',
'{{ description }}',
'{{ waves }}',
'{{ name }}',
'{{ project }}',
'{{ requestId }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;

DELETE examples

Deletes a RolloutPlan.

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