Источник данных servercore_dedicated_private_subnet_v1
Provides a list of existing private subnets in a project For more information about private subnets for dedicated servers, see the official Servercore documentation.
Example usage
data "servercore_dedicated_private_subnet_v1" "private_subnet_1" {
project_id = servercore_project_v2.project_1.id
filter {
location_id = data.servercore_dedicated_location_v1.server_location.locations[0].id
vlan = "1000"
subnet = "192.168.100.0/24"
}
}
Argument Reference
-
project_id— (Required) Unique identifier of the associated project. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects. -
filter— (Optional) Values to filter available subnets.-
location_id— (Optional) Unique identifier of the location. Retrieved from the servercore_dedicated_location_v1 data source. -
subnet— (Optional) Subnet in CIDR notation, for example,192.168.100.0/24. -
vlan— (Optional) Unique identifier of VLAN. -
ip— (Optional) IP address belonging to the subnet.
-
Attributes Reference
-
subnets— List of available subnets:-
id— Unique identifier of the subnet (UUID). -
subnet— Subnet in CIDR notation, for example,192.168.100.0/24. -
vlan— Unique identifier of the VLAN. -
reserved_ip— List of reserved IP addresses in the subnet that you cannot use.
-