» yandex_vpc_subnet

Get information about a Yandex VPC subnet. For more information, see Yandex.Cloud VPC.

data "yandex_vpc_subnet" "admin" {
  subnet_id = "my-subnet-id"

This data source is used to define VPC Subnets that can be used by other resources.

» Argument Reference

The following arguments are supported:

  • subnet_id (Optional) - Subnet ID.

  • name - (Optional) - Name of the subnet.

» Attributes Reference

The following attribute is exported:

  • description - Description of the subnet.
  • folder_id - ID of the folder that the resource belongs to.
  • network_id - ID of the network this subnet belongs to.
  • labels - Labels to assign to this subnet.
  • zone - Name of the availability zone for this subnet.
  • route_table_id - ID of the route table to assign to this subnet.
  • v4_cidr_blocks - The blocks of internal IPv4 addresses owned by this subnet.
  • v6_cidr_blocks - The blocks of internal IPv6 addresses owned by this subnet.
  • created_at - Creation timestamp of this subnet.