REST Resource: projects.locations.deployments.revisions.resources

Resource: Resource

Resource represents a Google Cloud Platform resource actuated by IM. Resources are child resources of Revisions.

JSON representation
{
  "name": string,
  "terraformInfo": {
    object (ResourceTerraformInfo)
  },
  "caiAssets": {
    string: {
      object (ResourceCAIInfo)
    },
    ...
  },
  "intent": enum (Intent),
  "state": enum (State)
}
Fields
name

string

Output only. Resource name. Format: projects/{project}/locations/{location}/deployments/{deployment}/revisions/{revision}/resources/{resource}

terraformInfo

object (ResourceTerraformInfo)

Output only. Terraform-specific info if this resource was created using Terraform.

caiAssets

map (key: string, value: object (ResourceCAIInfo))

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

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

intent

enum (Intent)

Output only. Intent of the resource.

state

enum (State)

Output only. Current state of the resource.

ResourceTerraformInfo

Terraform info of a Resource.

JSON representation
{
  "address": string,
  "type": string,
  "id": string
}
Fields
address

string

TF resource address that uniquely identifies this resource within this deployment.

type

string

TF resource type

id

string

ID attribute of the TF resource

ResourceCAIInfo

CAI info of a Resource.

JSON representation
{
  "fullResourceName": string
}
Fields
fullResourceName

string

CAI resource name in the format following https://cloud.google.com/apis/design/resource_names#fullResourceName

Intent

Possible intent of the resource.

Enums
INTENT_UNSPECIFIED The default value. This value is used if the intent is omitted.
CREATE Infra Manager will create this Resource.
UPDATE Infra Manager will update this Resource.
DELETE Infra Manager will delete this Resource.
RECREATE Infra Manager will destroy and recreate this Resource.
UNCHANGED Infra Manager will leave this Resource untouched.

State

Possible states of a resource.

Enums
STATE_UNSPECIFIED The default value. This value is used if the state is omitted.
PLANNED Resource has been planned for reconcile.
IN_PROGRESS Resource is actively reconciling into the intended state.
RECONCILED Resource has reconciled to intended state.
FAILED Resource failed to reconcile.

Methods

get

Gets details about a Resource deployed by Infra Manager.

list

Lists Resources in a given revision.