Skip to main content

rollouts

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

Overview

Namerollouts
TypeResource
Idfirebase.apphosting.rollouts

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the rollout. Format: projects/{project}/locations/{locationId}/backends/{backendId}/rollouts/{rolloutId}.
annotationsobjectOptional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
buildstringImmutable. The name of a build that already exists. It doesn't have to be built; a rollout will wait for a build to be ready before updating traffic.
createTimestring (google-datetime)Output only. Time at which the rollout was created.
deleteTimestring (google-datetime)Output only. Time at which the rollout was deleted.
displayNamestringOptional. Human-readable name. 63 character limit.
errorobjectOutput only. A status and (human readable) error message for the rollout, if in a FAILED state. (id: Status)
etagstringOutput only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource.
labelsobjectOptional. Unstructured key value map that can be used to organize and categorize objects.
reconcilingbooleanOutput only. A field that, if true, indicates that the Rollout currently has an LRO.
statestringOutput only. The state of the rollout.
uidstringOutput only. System-assigned, unique identifier.
updateTimestring (google-datetime)Output only. Time at which the rollout was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, backendsId, rolloutsIdGets information about a rollout.
listselectprojectsId, locationsId, backendsIdpageSize, pageToken, filter, orderBy, showDeletedLists rollouts for a backend.
createinsertprojectsId, locationsId, backendsIdrolloutId, requestId, validateOnlyCreates a new rollout for a backend.

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
backendsIdstring
locationsIdstring
projectsIdstring
rolloutsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
rolloutIdstring
showDeletedboolean
validateOnlyboolean

SELECT examples

Gets information about a rollout.

SELECT
name,
annotations,
build,
createTime,
deleteTime,
displayName,
error,
etag,
labels,
reconciling,
state,
uid,
updateTime
FROM firebase.apphosting.rollouts
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND backendsId = '{{ backendsId }}' -- required
AND rolloutsId = '{{ rolloutsId }}' -- required;

INSERT examples

Creates a new rollout for a backend.

INSERT INTO firebase.apphosting.rollouts (
data__name,
data__displayName,
data__build,
data__labels,
data__annotations,
projectsId,
locationsId,
backendsId,
rolloutId,
requestId,
validateOnly
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ build }}',
'{{ labels }}',
'{{ annotations }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ backendsId }}',
'{{ rolloutId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;