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"
}
Defines a Network, which serves as a virtual representation of a traditional LAN within a cloud environment. Networks facilitate communication between subnets.

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 for the network resource. metadata.parent_id represents IAM container

    Inner value description

    Common resource metadata. (see below for nested schema)
  • pools (Attributes List) Pools for addresses (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 of the network. (see below for nested schema)
  • 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 pools

Read-Only:
  • pool_id (String)

Nested Schema for status

Read-Only:
  • scope_id (String) Scope ID of all pools
  • state (String) : Current state of the network.

    Supported values

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