Skip to main content

preview_features

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

Overview

Namepreview_features
TypeResource
Idgoogle.compute.preview_features

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 feature.
activationStatusstringSpecifies whether the feature is enabled or disabled. (ACTIVATION_STATE_UNSPECIFIED, DISABLED, ENABLED)
creationTimestampstringOutput only. [Output Only] Creation timestamp inRFC3339 text format.
descriptionstringOutput only. [Output Only] Description of the feature.
kindstringOutput only. [Output only] The type of the feature. Always "compute#previewFeature" for preview features. (default: compute#previewFeature)
rolloutOperationobjectRollout operation of the feature. (id: PreviewFeatureRolloutOperation)
selfLinkstringOutput only. [Output Only] Server-defined URL for the resource.
statusobjectOutput only. [Output only] Status of the feature. (id: PreviewFeatureStatus)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, previewFeatureReturns the details of the given PreviewFeature.
listselectprojectreturnPartialSuccess, maxResults, pageToken, filter, orderByReturns the details of the given PreviewFeature.
updateupdateproject, previewFeaturerequestIdPatches the given PreviewFeature. This method is used to enable or disable
a PreviewFeature.

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

SELECT examples

Returns the details of the given PreviewFeature.

SELECT
id,
name,
activationStatus,
creationTimestamp,
description,
kind,
rolloutOperation,
selfLink,
status
FROM google.compute.preview_features
WHERE project = '{{ project }}' -- required
AND previewFeature = '{{ previewFeature }}' -- required
;

UPDATE examples

Patches the given PreviewFeature. This method is used to enable or disable
a PreviewFeature.

UPDATE google.compute.preview_features
SET
data__name = '{{ name }}',
data__rolloutOperation = '{{ rolloutOperation }}',
data__activationStatus = '{{ activationStatus }}'
WHERE
project = '{{ project }}' --required
AND previewFeature = '{{ previewFeature }}' --required
AND requestId = '{{ 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;