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_vswitch
Alicloud VSwitch is a logical subdivision of an IP network. It enables dividing a network into two or more networks.
Examples
Basic info
select name, vswitch_id, status, cidr_block, zone_id, is_defaultfrom alicloud_vpc_vswitch;
Get the number of available IP addresses in each VSwitch
select name, vswitch_id, available_ip_address_count, power(2, 32 - masklen(cidr_block :: cidr)) -1 as raw_sizefrom alicloud_vpc_vswitch;
Route Table info associated with VSwitch
select name, vswitch_id, route_table ->> 'RouteTableId' as route_table_id, route_table ->> 'RouteTableType' as route_table_type, route_table -> 'RouteEntrys' -> 'RouteEntry' as route_entryfrom alicloud_vpc_vswitch;
VSwitch count by VPC ID
select vpc_id, count(vswitch_id) as vswitch_countfrom alicloud_vpc_vswitchgroup by vpc_id;
Query examples
- vpc_network_acls_for_vpc_vswitch
- vpc_no_vswitch_count
- vpc_vpcs_for_vpc_vswitch
- vpc_vswitch_association
- vpc_vswitch_available_ip_address_count
- vpc_vswitch_by_az
- vpc_vswitch_cidr_block
- vpc_vswitch_count
- vpc_vswitch_input
- vpc_vswitch_overview
- vpc_vswitch_tags
- vpc_vswitches_detail
- vpc_vswitches_for_vpc
.inspect alicloud_vpc_vswitch
VSwitches to divide the VPC network into one or more subnets.
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. |
available_ip_address_count | bigint | The number of available IP addresses in the VSwitch. |
cidr_block | cidr | The IPv4 CIDR block of the VPC. |
cloud_resources | jsonb | The list of resources in the VSwitch. |
creation_time | timestamp with time zone | The creation time of the VPC. |
description | text | The description of the VPC. |
ipv6_cidr_block | cidr | The IPv6 CIDR block of the VPC. |
is_default | boolean | True if the VPC is the default VPC in the region. |
name | text | The name of the VPC. |
network_acl_id | text | A list of IDs of NAT Gateways. |
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_table | jsonb | Details of the route table. |
share_type | text | |
status | text | The status of the VPC. Pending: The VPC is being configured. Available: The VPC is available. |
tags | jsonb | A map of tags for the resource. |
tags_src | jsonb | A map of tags for the resource. |
title | text | Title of the resource. |
vpc_id | text | The ID of the VPC to which the VSwitch belongs. |
vswitch_id | text | The unique ID of the VPC. |
zone_id | text | The zone to which the VSwitch belongs. |