Skip to main content

Retrieving the Data Source

This data source can be retrieved by one of ID or name.
Retrieve by ID
To retrieve by ID, fill in only the id field:
data ... {
    id = "your-ID"
}
Retrieve by Name
To retrieve by name, fill in only the name and parent_id fields:
data ... {
    name      = "your name"
    parent_id = "data-source-parent-id"
}

Schema

Optional

  • id (String) Identifier for the resource, unique for its resource type.
  • name (String) Human readable name for the resource.
  • parent_id (String) Identifier of the parent resource to which the resource belongs.

Read-Only

  • created_at (String) : Timestamp indicating when the resource was created. A string representing a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS.SSS±HH:MM
  • labels (Map of String) : Labels associated with the resource.
  • metadata (Attributes) : Metadata associated with the Scope. metadata.parent_id represents the parent IAM container.

    Inner value description

    Common resource metadata. (see below for nested schema)
  • resource_version (Number) : Version of the resource for safe concurrent modifications and consistent reads. Positive and monotonically increases on each resource spec change (but not on each change of the resource’s container(s) or status). Service allows zero value or current.
  • status (Attributes) Status information for the Scope. (see below for nested schema)
  • type (String) : Type of the Scope (Private or Public).

    Supported values

    Type of scope. Possible values:
    • SCOPE_TYPE_UNSPECIFIED - Default, unspecified scope type.
    • PUBLIC - Public scope.
    • PRIVATE - Private scope.
  • updated_at (String) : Timestamp indicating when the resource was last updated. A string representing a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS.SSS±HH:MM

Nested Schema for metadata

Nested Schema for status

Read-Only:
  • state (String) : Current state of the Scope.

    Supported values

    Possible states of the Scope. Possible values:
    • STATE_UNSPECIFIED - Default, unspecified state.
    • CREATING - Scope is being created.
    • READY - Scope is ready for use.
    • DELETING - Scope is being deleted.