resources
Creates, updates, deletes, gets or lists a resources
resource.
Overview
Name | resources |
Type | Resource |
Id | google.config.resources |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource} |
caiAssets | object | Output only. Map of Cloud Asset Inventory (CAI) type to CAI info (e.g. CAI ID). CAI type format follows https://cloud.google.com/asset-inventory/docs/supported-asset-types |
intent | string | Output only. Intent of the resource. |
state | string | Output only. Current state of the resource. |
terraformInfo | object | Terraform info of a Resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deploymentsId, locationsId, projectsId, resourcesId, revisionsId | Gets details about a Resource deployed by Infra Manager. |
list | SELECT | deploymentsId, locationsId, projectsId, revisionsId | Lists Resources in a given revision. |
SELECT
examples
Lists Resources in a given revision.
SELECT
name,
caiAssets,
intent,
state,
terraformInfo
FROM google.config.resources
WHERE deploymentsId = '{{ deploymentsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND revisionsId = '{{ revisionsId }}';