alicloud_cen_transit_router_route_tables
更新时间:
This data source provides CEN Transit Router Route Tables available to the user.What is Cen Transit Router Route Tables
-> NOTE: Available since v1.126.0.
Example Usage
variable "name" {
default = "tf-example"
}
resource "alicloud_cen_instance" "default" {
cen_instance_name = var.name
protection_level = "REDUCED"
}
resource "alicloud_cen_transit_router" "default" {
cen_id = alicloud_cen_instance.default.id
transit_router_name = var.name
}
resource "alicloud_cen_transit_router_route_table" "default" {
transit_router_id = alicloud_cen_transit_router.default.transit_router_id
transit_router_route_table_description = "desp"
transit_router_route_table_name = var.name
}
data "alicloud_cen_transit_router_route_tables" "default" {
transit_router_id = alicloud_cen_transit_router.default.transit_router_id
}
output "first_transit_router_route_table_type" {
value = data.alicloud_cen_transit_router_route_tables.default.tables.0.transit_router_route_table_type
}
Argument Reference
The following arguments are supported:
transit_router_id
- (Required, ForceNew) ID of the CEN Transit Router Route Table.transit_router_route_table_names
- (Optional, ForceNew) A list of name of the CEN Transit Router Route Table.transit_router_route_table_ids
- (Optional, ForceNew) A list of ID of the CEN Transit Router Route Table.transit_router_route_table_type
- (Optional, ForceNew, Available since v1.229.1.) The type of the transit router route table to query. Valid valuesSystem
andCustom
.transit_router_route_table_status
- (Optional, ForceNew) The status of the transit router route table to query. Valid valuesCreating
,Active
andDeleting
..output_file
- (Optional) File name where to save data source results (after runningterraform plan
).name_regex
- (Optional, ForceNew) A regex string to filter CEN Transit Router Route Table by name.ids
- (Optional, ForceNew) A list of CEN Transit Router Route Table IDs.status
- (Optional, ForceNew) The status of the transit router route table to query. Valid valuesCreating
,Active
andDeleting
..
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
names
- A list of name of CEN Transit Router Route Tables.tables
- A list of CEN Route Entries. Each element contains the following attributes:status
- The status of the route table.transit_router_route_table_description
- The description of the transit router route table.id
- ID of resource.transit_router_route_table_id
- ID of the trabsit router route table.transit_router_route_table_name
- Name of the transit router route table.transit_router_route_table_type
- Type of the transit router route table.
文档内容是否对您有帮助?