alicloud_accountalicloud_action_trailalicloud_cas_certificatealicloud_cms_monitor_hostalicloud_cs_kubernetes_clusteralicloud_cs_kubernetes_cluster_nodealicloud_ecs_auto_provisioning_groupalicloud_ecs_autoscaling_groupalicloud_ecs_diskalicloud_ecs_disk_metric_read_iopsalicloud_ecs_disk_metric_read_iops_dailyalicloud_ecs_disk_metric_read_iops_hourlyalicloud_ecs_disk_metric_write_iopsalicloud_ecs_disk_metric_write_iops_dailyalicloud_ecs_disk_metric_write_iops_hourlyalicloud_ecs_imagealicloud_ecs_instancealicloud_ecs_instance_metric_cpu_utilization_dailyalicloud_ecs_instance_metric_cpu_utilization_hourlyalicloud_ecs_key_pairalicloud_ecs_launch_templatealicloud_ecs_network_interfacealicloud_ecs_regionalicloud_ecs_security_groupalicloud_ecs_snapshotalicloud_ecs_zonealicloud_kms_keyalicloud_kms_secretalicloud_oss_bucketalicloud_ram_access_keyalicloud_ram_credential_reportalicloud_ram_groupalicloud_ram_password_policyalicloud_ram_policyalicloud_ram_rolealicloud_ram_security_preferencealicloud_ram_useralicloud_rds_backupalicloud_rds_databasealicloud_rds_instancealicloud_rds_instance_metric_connectionsalicloud_rds_instance_metric_connections_dailyalicloud_rds_instance_metric_cpu_utilizationalicloud_rds_instance_metric_cpu_utilization_dailyalicloud_rds_instance_metric_cpu_utilization_hourlyalicloud_security_center_field_statisticsalicloud_security_center_versionalicloud_slb_load_balanceralicloud_vpcalicloud_vpc_dhcp_options_setalicloud_vpc_eipalicloud_vpc_flow_logalicloud_vpc_nat_gatewayalicloud_vpc_network_aclalicloud_vpc_route_entryalicloud_vpc_route_tablealicloud_vpc_ssl_vpn_client_certalicloud_vpc_ssl_vpn_serveralicloud_vpc_vpn_connectionalicloud_vpc_vpn_customer_gatewayalicloud_vpc_vpn_gatewayalicloud_vpc_vswitch
Table: alicloud_vpc_route_table
A route table contains a set of rules, called routes, that are used to determine where network traffic from your subnet or gateway is directed.
Examples
Basic info
select name, route_table_id, description, route_table_type, router_id, regionfrom alicloud_vpc_route_table;
Get VPC and VSwitch attachment info for each route table
select name, route_table_id, vpc_id, jsonb_array_elements_text(vswitch_ids)from alicloud_vpc_route_table;
Routing details for each route table
select route_table_id, route_detail ->> 'Description' as description, route_detail ->> 'DestinationCidrBlock' as destination_CIDR_block, route_detail ->> 'InstanceId' as instance_id, route_detail ->> 'IpVersion' as ip_version, route_detail ->> 'NextHopOppsiteInstanceId' as next_hop_oppsite_instance_id, route_detail ->> 'NextHopOppsiteRegionId' as next_hop_oppsite_region_id, route_detail ->> 'NextHopOppsiteType' as next_hop_oppsite_type, route_detail ->> 'NextHopRegionId' as next_hop_region_id, route_detail ->> 'NextHopType' as next_hop_type, route_detail ->> 'RouteEntryId' as route_entry_id, route_detail ->> 'RouteEntryName' as route_entry_name, route_detail ->> 'RouteTableId' as route_table_id, route_detail ->> 'Status' as statusfrom alicloud_vpc_route_table, jsonb_array_elements(route_entries) as route_detail;
List route tables without application tag key
select name, route_table_idfrom alicloud_vpc_route_tablewhere not tags :: JSONB ? 'application';
Query examples
- vpc_route_tables_detail
- vpc_route_tables_for_vpc
- vpc_route_tables_for_vpc_vswitch
- vpc_routes_detail
- vpc_vswitch_association
.inspect alicloud_vpc_route_table
Alicloud VPC Route Table
Name | Type | Description |
---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. |
account_id | text | The Alicloud Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. |
creation_time | timestamp with time zone | The time when the Route Table was created. |
description | text | The description of the Route Table. |
name | text | The name of the Route Table. |
owner_id | text | The ID of the owner of the VPC. |
region | text | The Alicloud region in which the resource is located. |
resource_group_id | text | The ID of the resource group to which the VPC belongs. |
route_entries | jsonb | Route entry represents a route item of one VPC route table. |
route_table_id | text | The id of the Route Table. |
route_table_type | text | The type of Route Table. |
router_id | text | The ID of the region to which the VPC belongs. |
router_type | text | The type of the VRouter to which the route table belongs. Valid Values are 'VRouter' and 'VBR'. |
status | text | The status of the route table. |
tags | jsonb | A map of tags for the resource. |
tags_src | jsonb | A list of tags assigned to the resource. |
title | text | Title of the resource. |
vpc_id | text | The ID of the VPC to which the route table belongs. |
vswitch_ids | jsonb | The unique ID of the VPC. |