selectel_global_router_dedicated_network_v1
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
Creates and manages a global router network that connects an existing dedicated server private network (VLAN) to a global router in the Global Router service using public API v1. A private VLAN must be added in the Control Panel before the connection.
For more information about dedicated server networks, see the official Selectel documentation. For more information about global routers, see the official Selectel documentation.
Example Usage
resource "selectel_global_router_dedicated_network_v1" "global_router_dedicated_network_1" {
router_id = selectel_global_router_router_v1.global_router_1.id
zone_id = data.selectel_global_router_zone_v1.zone_1.id
vlan = "1234"
name = "my_super_dedicated_net"
tags = ["blue", "red"]
}
Argument Reference
name- (Required) Name of the global router network.router_id- (Required) Unique identifier of the global router to which the network will be connected. Retrieved from the global_router_router_v1 resource. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.zone_id- (Required) Unique identifier of the zone to which the network will be connected. Retrieved from the selectel_global_router_zone_v1 data source. For dedicated server networks, must be a zone from thededicatedservice. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.vlan- (Required) Private VLAN number. To get VLAN number, in the Control panel, go to Dedicated servers ⟶ the VLAN tab ⟶ copy the VLAN number. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.tags- (Optional) List of global router network tags.
Attributes Reference
id- Unique identifier of the global router network.name- Name of the global router network.router_id- Unique identifier of the global router to which the network is connected.zone_id- Unique identifier of the zone to which the network is connected.vlan- Network VLAN.tags- List of global router network tags.created_at- Time when the global router network was created.updated_at- Time when the global router network was updated.status- Global router network status.account_id- Selectel account ID.netops_vlan_uuid- Option for internal usage.sv_network_id- Option for internal usage.
Import
You can import a global router network:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
export INFRA_REGION=<selectel_pool>
terraform import selectel_global_router_dedicated_network_v1.global_router_dedicated_network_1 <network_id>
where:
-
<account_id>— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration. -
<username>— Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users. -
<password>— Password of the service user. -
<selectel_pool>— Pool where the network is located, for example,MSK-1. To get information about the pool, in the Control panel, go to Products ⟶ Global Router ⟶ the global router page. The pool is on the network card. -
<network_id>— Unique identifier of the global router network, for example,4784d52d-bc14-4329-af1b-6fa6e81994d2. To get the network ID in the Control panel, go to Products ⟶ Global Router ⟶ the global router page. The network ID is on the network card.