servercore_vpc_subnet_v2
Creates and manages a public subnet using public API v2. For more information about public subnets, see the official Servercore documentation.
Example Usage
resource "servercore_subnet_v2" "subnet_1" {
project_id = servercore_project_v2.project_1.id
region = "ru-3"
ip_version = "ipv4"
prefix_length = 29
}
Argument Reference
-
project_id
— (Required) Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects. -
region
— (Required) Pool where the public subnet is located, for example,ru-3
. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix. -
ip_version
— (Optional) Internet protocol version supported in the public subnet. The only available value isipv4
. -
prefix_length
— (Optional) Prefix length of the public subnet. The default value is29
. Changing this creates a new public subnet.
Attributes Reference
-
cidr
— CIDR of the public subnet. -
network_id
— Unique identifier of the associated OpenStack network. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation. -
subnet_id
— Unique identifier of the associated OpenStack subnet. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation. -
status
— Status of the public subnet. -
servers
— List of the cloud servers that are located in the public subnet.-
id
— Unique identifier of the cloud server. -
name
— Name of the cloud server. -
status
— Status of the cloud server.
-