resources
Creates, updates, deletes, gets or lists a resources
resource.
Overview
Name | resources |
Type | Resource |
Id | google.config.resources |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
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 | Output only. Terraform-specific info if this resource was created using Terraform. (id: ResourceTerraformInfo) |
Successful response
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 | Output only. Terraform-specific info if this resource was created using Terraform. (id: ResourceTerraformInfo) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , deploymentsId , revisionsId , resourcesId | Gets details about a Resource deployed by Infra Manager. | |
list | select | projectsId , locationsId , deploymentsId , revisionsId | pageSize , pageToken , filter , orderBy | Lists 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.
Name | Datatype | Description |
---|---|---|
deploymentsId | string | |
locationsId | string | |
projectsId | string | |
resourcesId | string | |
revisionsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT
examples
- get
- list
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;
Lists Resources in a given revision.
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 pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}';