Skip to main content

resources

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

Overview

Nameresources
TypeResource
Idgoogle.config.resources

Fields

NameDatatypeDescription
namestringOutput only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}
caiAssetsobjectOutput 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
intentstringOutput only. Intent of the resource.
statestringOutput only. Current state of the resource.
terraformInfoobjectTerraform info of a Resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeploymentsId, locationsId, projectsId, resourcesId, revisionsIdGets details about a Resource deployed by Infra Manager.
listSELECTdeploymentsId, locationsId, projectsId, revisionsIdLists 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 }}';