selectel_global_router_router_v1
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
Creates and manages a global router in the Global Router service using public API v1. For more information about global routers, see the official Selectel documentation.
Example Usage
resource "selectel_global_router_router_v1" "global_router_1" {
name = "test_router"
tags = ["blue", "red"]
}
Argument Reference
name- (Required) Name of the router.tags- (Optional) List of router tags.
Attributes Reference
id- Unique identifier of the router.name- Name of the router.tags- List of router tags.created_at- Time when the router was created.updated_at- Time when the router was updated.status- Router status. Learn more about router statuses.enabled- Boolean flag, indicates whether the router is active.Falsemeans that the router is temporarily under maintenance and its connected networks and subnets cannot be updated or deleted, and new networks and subnets cannot be connected.account_id- Selectel account ID.project_id- Unique identifier of the associated project.netops_router_id- Option for internal usage.leak_uuid- Unique identifier for a group of routers united by a single logical entity.prefix_pool_id- Unique identifier of a prefix pool. Can be used to request a list of allowed subnet prefixes that can be connected to the router.vpn_id- Option for internal usage.
Import
You can import a global router:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=<username>
export OS_PASSWORD=<password>
terraform import selectel_global_router_router_v1.global_router_1 <router_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. -
<router_id>— Unique identifier of the global router, for example,0b6bcda4-b343-487p-978b-dc28351d77c5. To get the global router ID in the Control panel, go to Products ⟶ Global Router ⟶ the global router page. The global router ID is under the router name.