Skip to main content

resources

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

Overview

Nameresources
TypeResource
Idgoogle.deploymentmanager.resources

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring (uint64)
namestringOutput only. The name of the resource as it appears in the YAML config.
accessControlobjectThe Access Control Policy set on this resource. (id: ResourceAccessControl)
finalPropertiesstringOutput only. The evaluated properties of the resource with references expanded. Returned as serialized YAML.
insertTimestringOutput only. Creation timestamp in RFC3339 text format.
manifeststringOutput only. URL of the manifest representing the current configuration of this resource.
propertiesstringOutput only. The current properties of the resource before any references have been filled in. Returned as serialized YAML.
typestringOutput only. The type of the resource, for example compute.v1.instance, or cloudfunctions.v1beta1.function.
updateobjectOutput only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. (id: ResourceUpdate)
updateTimestringOutput only. Update timestamp in RFC3339 text format.
urlstringOutput only. The URL of the actual resource.
warningsarrayOutput only. If warning messages are generated during processing of this resource, this field will be populated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, deployment, resourceheader.bypassBillingFilterGets information about a single resource.
listselectproject, deploymentmaxResults, pageToken, filter, orderByLists all resources in a given deployment.

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
deploymentstring
projectstring
resourcestring
filterstring
header.bypassBillingFilterboolean
maxResultsinteger (uint32)
orderBystring
pageTokenstring

SELECT examples

Gets information about a single resource.

SELECT
id,
name,
accessControl,
finalProperties,
insertTime,
manifest,
properties,
type,
update,
updateTime,
url,
warnings
FROM google.deploymentmanager.resources
WHERE project = '{{ project }}' -- required
AND deployment = '{{ deployment }}' -- required
AND resource = '{{ resource }}' -- required
AND header.bypassBillingFilter = '{{ header.bypassBillingFilter }}';