Skip to main content

resources

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

Overview​

Nameresources
TypeResource
Idgoogle.config.resources

Fields​

The following fields are returned by SELECT queries:

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. (INTENT_UNSPECIFIED, CREATE, UPDATE, DELETE, RECREATE, UNCHANGED)
statestringOutput only. Current state of the resource. (STATE_UNSPECIFIED, PLANNED, IN_PROGRESS, RECONCILED, FAILED)
terraformInfoobjectOutput only. Terraform-specific info if this resource was created using Terraform. (id: ResourceTerraformInfo)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, deploymentsId, revisionsId, resourcesIdGets details about a Resource deployed by Infra Manager.
listselectprojectsId, locationsId, deploymentsId, revisionsIdfilter, orderBy, pageSize, pageTokenLists Resources in a given revision.

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
deploymentsIdstring
locationsIdstring
projectsIdstring
resourcesIdstring
revisionsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples​

Gets details about a Resource deployed by Infra Manager.

SELECT
name,
caiAssets,
intent,
state,
terraformInfo
FROM google.config.resources
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND deploymentsId = '{{ deploymentsId }}' -- required
AND revisionsId = '{{ revisionsId }}' -- required
AND resourcesId = '{{ resourcesId }}' -- required
;