alicloud_cen_transit_router
更新时间:
Provides a Cloud Enterprise Network (CEN) Transit Router resource.
For information about Cloud Enterprise Network (CEN) Transit Router and how to use it, see What is Transit Router.
-> NOTE: Available since v1.126.0.
Example Usage
Basic Usage
variable "name" {
  default = "terraform-example"
}
resource "alicloud_cen_instance" "example" {
  cen_instance_name = var.name
  description       = var.name
}
resource "alicloud_cen_transit_router" "example" {
  cen_id              = alicloud_cen_instance.example.id
  transit_router_name = var.name
}
Argument Reference
The following arguments are supported:
cen_id- (Required, ForceNew) The ID of the Cloud Enterprise Network (CEN) instance.support_multicast- (Optional, ForceNew, Bool, Available since v1.195.0) Specifies whether to enable the multicast feature for the Enterprise Edition transit router. Valid values:false(default): notrue: yes The multicast feature is supported only in specific regions. You can call ListTransitRouterAvailableResource to query the regions that support multicast.
tags- (Optional, Map, Available since v1.193.1) The tag of the resourcetransit_router_description- (Optional) The description of the Enterprise Edition transit router instance. The description must be 1 to 256 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.transit_router_name- (Optional) The name of the Enterprise Edition transit router. The name must be 1 to 128 characters in length, and cannot start with http:// or https://. You can also leave this parameter empty.dry_run- (Optional, Bool) The dry run.
Attributes Reference
The following attributes are exported:
id- The ID of the resource supplied above. It formats as<cen_id>:<transit_router_id>.create_time- (Available since v1.247.0) The time when the transit router was created.region_id- (Available since v1.247.0) The ID of the region where the transit router is deployed.status- The status of the transit router.transit_router_id- The ID of the transit router.type- The edition of the transit router.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Transit Router.delete- (Defaults to 5 mins) Used when delete the Transit Router.update- (Defaults to 5 mins) Used when update the Transit Router.
Import
Cloud Enterprise Network (CEN) Transit Router can be imported using the id, e.g.
$ terraform import alicloud_cen_transit_router.example <cen_id>:<transit_router_id>
该文章对您有帮助吗?