resources
Creates, updates, deletes, gets or lists a resources
resource.
Overview
Name | resources |
Type | Resource |
Id | google.deploymentmanager.resources |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
id | string (uint64) | |
name | string | Output only. The name of the resource as it appears in the YAML config. |
accessControl | object | The Access Control Policy set on this resource. (id: ResourceAccessControl) |
finalProperties | string | Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML. |
insertTime | string | Output only. Creation timestamp in RFC3339 text format. |
manifest | string | Output only. URL of the manifest representing the current configuration of this resource. |
properties | string | Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML. |
type | string | Output only. The type of the resource, for example compute.v1.instance , or cloudfunctions.v1beta1.function . |
update | object | Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. (id: ResourceUpdate) |
updateTime | string | Output only. Update timestamp in RFC3339 text format. |
url | string | Output only. The URL of the actual resource. |
warnings | array | Output only. If warning messages are generated during processing of this resource, this field will be populated. |
Successful response
Name | Datatype | Description |
---|---|---|
id | string (uint64) | |
name | string | Output only. The name of the resource as it appears in the YAML config. |
accessControl | object | The Access Control Policy set on this resource. (id: ResourceAccessControl) |
finalProperties | string | Output only. The evaluated properties of the resource with references expanded. Returned as serialized YAML. |
insertTime | string | Output only. Creation timestamp in RFC3339 text format. |
manifest | string | Output only. URL of the manifest representing the current configuration of this resource. |
properties | string | Output only. The current properties of the resource before any references have been filled in. Returned as serialized YAML. |
type | string | Output only. The type of the resource, for example compute.v1.instance , or cloudfunctions.v1beta1.function . |
update | object | Output only. If Deployment Manager is currently updating or previewing an update to this resource, the updated configuration appears here. (id: ResourceUpdate) |
updateTime | string | Output only. Update timestamp in RFC3339 text format. |
url | string | Output only. The URL of the actual resource. |
warnings | array | Output 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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | project , deployment , resource | header.bypassBillingFilter | Gets information about a single resource. |
list | select | project , deployment | maxResults , pageToken , filter , orderBy | Lists 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.
Name | Datatype | Description |
---|---|---|
deployment | string | |
project | string | |
resource | string | |
filter | string | |
header.bypassBillingFilter | boolean | |
maxResults | integer (uint32) | |
orderBy | string | |
pageToken | string |
SELECT
examples
- get
- list
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 }}';
Lists all resources in a given deployment.
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 maxResults = '{{ maxResults }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';