turbot/alicloud

steampipe plugin install alicloudsteampipe plugin install alicloud

Table: alicloud_vpc

A VPC is a virtual network in Alicloud.

Examples

Find default VPCs

select
name,
vpc_id,
is_default,
cidr_block,
status,
account_id,
region
from
alicloud_vpc
where
is_default;

Show CIDR details

select
vpc_id,
cidr_block,
host(cidr_block),
broadcast(cidr_block),
netmask(cidr_block),
network(cidr_block)
from
alicloud_vpc;

List VPCs with public CIDR blocks

select
vpc_id,
cidr_block,
status,
region
from
alicloud_vpc
where
not cidr_block <<= '10.0.0.0/8'
and not cidr_block <<= '192.168.0.0/16'
and not cidr_block <<= '172.16.0.0/12';

Get the VSwitches details for VPCs

select
vpc.vpc_id,
vswitch.vswitch_id,
vswitch.cidr_block,
vswitch.status,
vswitch.available_ip_address_count,
vswitch.zone_id
from
alicloud_vpc as vpc
join alicloud_vpc_vswitch as vswitch on vpc.vpc_id = vswitch.vpc_id
order by
vpc.vpc_id;

.inspect alicloud_vpc

A virtual private cloud service that provides an isolated cloud network to operate resources in a secure environment.

NameTypeDescription
account_idtextThe Alicloud Account ID in which the resource is located.
advanced_resourceboolean
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
associated_censjsonbThe list of Cloud Enterprise Network (CEN) instances to which the VPC is attached. No value is returned if the VPC is not attached to any CEN instance.
cen_statustextIndicates whether the VPC is attached to any Cloud Enterprise Network (CEN) instance.
cidr_blockcidrThe IPv4 CIDR block of the VPC.
classic_link_enabledbooleanTrue if the ClassicLink function is enabled.
cloud_resourcesjsonbThe list of resources in the VPC.
creation_timetimestamp without time zoneThe creation time of the VPC.
descriptiontextThe description of the VPC.
dhcp_options_set_idtextThe ID of the DHCP options set associated to vpc.
dhcp_options_set_statustextThe status of the VPC network that is associated with the DHCP options set. Valid values: InUse and Pending
ipv6_cidr_blockcidrThe IPv6 CIDR block of the VPC.
is_defaultbooleanTrue if the VPC is the default VPC in the region.
nametextThe name of the VPC.
nat_gateway_idsjsonbA list of IDs of NAT Gateways.
network_acl_numtext
owner_idtextThe ID of the owner of the VPC.
regiontextThe Alicloud region in which the resource is located.
resource_group_idtextThe ID of the resource group to which the VPC belongs.
route_table_idsjsonbA list of IDs of route tables.
secondary_cidr_blocksjsonbA list of secondary IPv4 CIDR blocks of the VPC.
statustextThe status of the VPC. Pending: The VPC is being configured. Available: The VPC is available.
support_advanced_featureboolean
tagsjsonbA map of tags for the resource.
tags_srcjsonbA map of tags for the resource.
titletextTitle of the resource.
user_cidrsjsonbA list of user CIDRs.
vpc_idtextThe unique ID of the VPC.
vrouter_idtextThe ID of the VRouter.
vswitch_idsjsonbA list of VSwitches in the VPC.