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:

Successful response

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.
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, revisionsIdpageSize, pageToken, filter, orderByLists 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;