Data source

dcloud_subnets

Subnets, optionally of one VPC (create them with dcloud_subnet).

Example Usage

data "dcloud_subnets" "main" {
  vpc_id = dcloud_vpc.main.id
}

Schema

Optional

  • vpc_id (String) Only this VPC's subnets.

Read-Only

Nested Schema for items

Read-Only:

  • cidr_block (String) Address range.
  • id (String) Subnet id; subnet_id of dcloud_instance and dcloud_db_instance.
  • is_public (Boolean) Whether it is public.
  • name (String) Name.
  • vpc_id (String) Its VPC.

Generated from the provider's schema.