turbot/alicloud

steampipe plugin install alicloudsteampipe plugin install alicloud

Table: alicloud_vpc_vpn_gateway

VPN Gateway is an Internet-based service that establishes a connection between a VPC and on-premise data center.

Examples

Basic info

select
name,
vpn_gateway_id,
status,
description,
internet_ip,
billing_method,
business_status,
region
from
alicloud_vpc_vpn_gateway;

Get the VPC and VSwitch info of VPN gateway

select
name,
vpn_gateway_id,
vpc_id vswitch_id
from
alicloud_vpc_vpn_gateway;

Get the vpn gateways where SSL VPN is enabled

select
name,
vpn_gateway_id,
ssl_vpn,
ssl_max_connections
from
alicloud_vpc_vpn_gateway
where
ssl_vpn = 'enable';

VPN gateway count by VPC ID

select
vpc_id,
count(vpn_gateway_id) as vpn_gateway_count
from
alicloud_vpc_vpn_gateway
group by
vpc_id;

List of VPN gateways without application tag key

select
vpn_gateway_id,
tags
from
alicloud_vpc_vpn_gateway
where
tags -> 'application' is null;

List inactive VPN gateways

select
vpn_gateway_id,
status,
create_time,
jsonb_pretty(tags)
from
alicloud_vpc_vpn_gateway
where
status <> 'active';

.inspect alicloud_vpc_vpn_gateway

Alicloud VPC VPN Gateway.

NameTypeDescription
account_idtextThe Alicloud Account ID in which the resource is located.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
auto_propagatebooleanIndicates whether auto propagate is enabled, or not.
billing_methodtextThe billing method of the VPN gateway.
business_statustextThe business state of the VPN gateway.
create_timetimestamp without time zoneThe time when the VPN gateway was created.
descriptiontextThe description of the VPN gateway.
enable_bgpbooleanIndicates whether bgp is enabled.
end_timetimestamp without time zoneThe creation time of the VPC.
internet_ipinetThe public IP address of the VPN gateway.
ipsec_vpntextIndicates whether the IPsec-VPN feature is enabled.
nametextThe name of the VPN gateway.
regiontextThe Alicloud region in which the resource is located.
reservation_datajsonbA set of reservation details.
spectextThe maximum bandwidth of the VPN gateway.
ssl_max_connectionsbigintThe maximum number of concurrent SSL-VPN connections.
ssl_vpntextIndicates whether the SSL-VPN feature is enabled.
statustextThe status of the VPN gateway.
tagtextThe tag of the VPN gateway.
tagsjsonbA map of tags for the resource.
tags_srcjsonbA list of tags attached with the resource.
titletextTitle of the resource.
vpc_idtextThe ID of the VPC for which the VPN gateway is created.
vpn_gateway_idtextThe ID of the VPN gateway.
vswitch_idtextThe ID of the VSwitch to which the VPN gateway belongs.