GetConnections
The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(AliCloud.Vpn.GetConnections.InvokeAsync(new AliCloud.Vpn.GetConnectionsArgs
{
CustomerGatewayId = "fake-cgw-id",
Ids =
{
"fake-conn-id",
},
OutputFile = "/tmp/vpnconn",
VpnGatewayId = "fake-vpn-id",
}));
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.vpn.get_connections(customer_gateway_id="fake-cgw-id",
ids=["fake-conn-id"],
output_file="/tmp/vpnconn",
vpn_gateway_id="fake-vpn-id")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = pulumi.output(alicloud.vpn.getConnections({
customerGatewayId: "fake-cgw-id",
ids: ["fake-conn-id"],
outputFile: "/tmp/vpnconn",
vpnGatewayId: "fake-vpn-id",
}, { async: true }));Using GetConnections
function getConnections(args: GetConnectionsArgs, opts?: InvokeOptions): Promise<GetConnectionsResult>function get_connections(customer_gateway_id=None, ids=None, name_regex=None, output_file=None, vpn_gateway_id=None, opts=None)func GetConnections(ctx *Context, args *GetConnectionsArgs, opts ...InvokeOption) (*GetConnectionsResult, error)public static class GetConnections {
public static Task<GetConnectionsResult> InvokeAsync(GetConnectionsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Customer
Gateway stringId Use the VPN customer gateway ID as the search key.
- Ids List<string>
IDs of the VPN connections.
- Name
Regex string A regex string of VPN connection name.
- Output
File string Save the result to the file.
- Vpn
Gateway stringId Use the VPN gateway ID as the search key.
- Customer
Gateway stringId Use the VPN customer gateway ID as the search key.
- Ids []string
IDs of the VPN connections.
- Name
Regex string A regex string of VPN connection name.
- Output
File string Save the result to the file.
- Vpn
Gateway stringId Use the VPN gateway ID as the search key.
- customer
Gateway stringId Use the VPN customer gateway ID as the search key.
- ids string[]
IDs of the VPN connections.
- name
Regex string A regex string of VPN connection name.
- output
File string Save the result to the file.
- vpn
Gateway stringId Use the VPN gateway ID as the search key.
- customer_
gateway_ strid Use the VPN customer gateway ID as the search key.
- ids List[str]
IDs of the VPN connections.
- name_
regex str A regex string of VPN connection name.
- output_
file str Save the result to the file.
- vpn_
gateway_ strid Use the VPN gateway ID as the search key.
GetConnections Result
The following output properties are available:
- Connections
List<Pulumi.
Ali Cloud. Vpn. Outputs. Get Connections Connection> A list of VPN connections. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
(Optional) IDs of the VPN connections.
- Names List<string>
(Optional) names of the VPN connections.
- Customer
Gateway stringId ID of the VPN customer gateway.
- Name
Regex string - Output
File string - Vpn
Gateway stringId ID of the VPN gateway.
- Connections
[]Get
Connections Connection A list of VPN connections. Each element contains the following attributes:
- Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
(Optional) IDs of the VPN connections.
- Names []string
(Optional) names of the VPN connections.
- Customer
Gateway stringId ID of the VPN customer gateway.
- Name
Regex string - Output
File string - Vpn
Gateway stringId ID of the VPN gateway.
- connections
Get
Connections Connection[] A list of VPN connections. Each element contains the following attributes:
- id string
The provider-assigned unique ID for this managed resource.
- ids string[]
(Optional) IDs of the VPN connections.
- names string[]
(Optional) names of the VPN connections.
- customer
Gateway stringId ID of the VPN customer gateway.
- name
Regex string - output
File string - vpn
Gateway stringId ID of the VPN gateway.
- connections
List[Get
Connections Connection] A list of VPN connections. Each element contains the following attributes:
- id str
The provider-assigned unique ID for this managed resource.
- ids List[str]
(Optional) IDs of the VPN connections.
- names List[str]
(Optional) names of the VPN connections.
- customer_
gateway_ strid ID of the VPN customer gateway.
- name_
regex str - output_
file str - vpn_
gateway_ strid ID of the VPN gateway.
Supporting Types
GetConnectionsConnection
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Create
Time string - Customer
Gateway stringId Use the VPN customer gateway ID as the search key.
- Effect
Immediately bool - Id string
ID of the VPN connection.
- Local
Subnet string The local subnet of the VPN connection.
- Name string
The name of the VPN connection.
- Remote
Subnet string The remote subnet of the VPN connection.
- Status string
The status of the VPN connection, valid value:ike_sa_not_established, ike_sa_established, ipsec_sa_not_established, ipsec_sa_established.
- Vpn
Gateway stringId Use the VPN gateway ID as the search key.
- Ike
Configs List<Pulumi.Ali Cloud. Vpn. Inputs. Get Connections Connection Ike Config Args> The configurations of phase-one negotiation.
- Ipsec
Configs List<Pulumi.Ali Cloud. Vpn. Inputs. Get Connections Connection Ipsec Config Args> The configurations of phase-two negotiation.
- Create
Time string - Customer
Gateway stringId Use the VPN customer gateway ID as the search key.
- Effect
Immediately bool - Id string
ID of the VPN connection.
- Local
Subnet string The local subnet of the VPN connection.
- Name string
The name of the VPN connection.
- Remote
Subnet string The remote subnet of the VPN connection.
- Status string
The status of the VPN connection, valid value:ike_sa_not_established, ike_sa_established, ipsec_sa_not_established, ipsec_sa_established.
- Vpn
Gateway stringId Use the VPN gateway ID as the search key.
- Ike
Configs []GetConnections Connection Ike Config The configurations of phase-one negotiation.
- Ipsec
Configs []GetConnections Connection Ipsec Config The configurations of phase-two negotiation.
- create
Time string - customer
Gateway stringId Use the VPN customer gateway ID as the search key.
- effect
Immediately boolean - id string
ID of the VPN connection.
- local
Subnet string The local subnet of the VPN connection.
- name string
The name of the VPN connection.
- remote
Subnet string The remote subnet of the VPN connection.
- status string
The status of the VPN connection, valid value:ike_sa_not_established, ike_sa_established, ipsec_sa_not_established, ipsec_sa_established.
- vpn
Gateway stringId Use the VPN gateway ID as the search key.
- ike
Configs GetConnections Connection Ike Config[] The configurations of phase-one negotiation.
- ipsec
Configs GetConnections Connection Ipsec Config[] The configurations of phase-two negotiation.
- create_
time str - customer_
gateway_ strid Use the VPN customer gateway ID as the search key.
- effect_
immediately bool - id str
ID of the VPN connection.
- local_
subnet str The local subnet of the VPN connection.
- name str
The name of the VPN connection.
- remote
Subnet str The remote subnet of the VPN connection.
- status str
The status of the VPN connection, valid value:ike_sa_not_established, ike_sa_established, ipsec_sa_not_established, ipsec_sa_established.
- vpn_
gateway_ strid Use the VPN gateway ID as the search key.
- ike_
configs List[GetConnections Connection Ike Config] The configurations of phase-one negotiation.
- ipsec_
configs List[GetConnections Connection Ipsec Config] The configurations of phase-two negotiation.
GetConnectionsConnectionIkeConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Ike
Auth stringAlg The authentication algorithm of phase-one negotiation.
- Ike
Enc stringAlg The encryption algorithm of phase-one negotiation.
- Ike
Lifetime int The SA lifecycle as the result of phase-one negotiation.
- Ike
Local stringId The identification of the VPN gateway.
- Ike
Mode string The negotiation mode of IKE phase-one.
- Ike
Pfs string The Diffie-Hellman key exchange algorithm used by phase-one negotiation.
- Ike
Remote stringId The identification of the customer gateway.
- Ike
Version string The version of the IKE protocol.
- Psk string
Used for authentication between the IPsec VPN gateway and the customer gateway.
- Ike
Auth stringAlg The authentication algorithm of phase-one negotiation.
- Ike
Enc stringAlg The encryption algorithm of phase-one negotiation.
- Ike
Lifetime int The SA lifecycle as the result of phase-one negotiation.
- Ike
Local stringId The identification of the VPN gateway.
- Ike
Mode string The negotiation mode of IKE phase-one.
- Ike
Pfs string The Diffie-Hellman key exchange algorithm used by phase-one negotiation.
- Ike
Remote stringId The identification of the customer gateway.
- Ike
Version string The version of the IKE protocol.
- Psk string
Used for authentication between the IPsec VPN gateway and the customer gateway.
- ike
Auth stringAlg The authentication algorithm of phase-one negotiation.
- ike
Enc stringAlg The encryption algorithm of phase-one negotiation.
- ike
Lifetime number The SA lifecycle as the result of phase-one negotiation.
- ike
Local stringId The identification of the VPN gateway.
- ike
Mode string The negotiation mode of IKE phase-one.
- ike
Pfs string The Diffie-Hellman key exchange algorithm used by phase-one negotiation.
- ike
Remote stringId The identification of the customer gateway.
- ike
Version string The version of the IKE protocol.
- psk string
Used for authentication between the IPsec VPN gateway and the customer gateway.
- ike
Auth strAlg The authentication algorithm of phase-one negotiation.
- ike
Enc strAlg The encryption algorithm of phase-one negotiation.
- ike
Lifetime float The SA lifecycle as the result of phase-one negotiation.
- ike
Local strId The identification of the VPN gateway.
- ike
Mode str The negotiation mode of IKE phase-one.
- ike
Pfs str The Diffie-Hellman key exchange algorithm used by phase-one negotiation.
- ike
Remote strId The identification of the customer gateway.
- ike
Version str The version of the IKE protocol.
- psk str
Used for authentication between the IPsec VPN gateway and the customer gateway.
GetConnectionsConnectionIpsecConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Ipsec
Auth stringAlg The authentication algorithm of phase-two negotiation.
- Ipsec
Enc stringAlg The encryption algorithm of phase-two negotiation.
- Ipsec
Lifetime int The SA lifecycle as the result of phase-two negotiation.
- Ipsec
Pfs string The Diffie-Hellman key exchange algorithm used by phase-two negotiation.
- Ipsec
Auth stringAlg The authentication algorithm of phase-two negotiation.
- Ipsec
Enc stringAlg The encryption algorithm of phase-two negotiation.
- Ipsec
Lifetime int The SA lifecycle as the result of phase-two negotiation.
- Ipsec
Pfs string The Diffie-Hellman key exchange algorithm used by phase-two negotiation.
- ipsec
Auth stringAlg The authentication algorithm of phase-two negotiation.
- ipsec
Enc stringAlg The encryption algorithm of phase-two negotiation.
- ipsec
Lifetime number The SA lifecycle as the result of phase-two negotiation.
- ipsec
Pfs string The Diffie-Hellman key exchange algorithm used by phase-two negotiation.
- ipsec
Auth strAlg The authentication algorithm of phase-two negotiation.
- ipsec
Enc strAlg The encryption algorithm of phase-two negotiation.
- ipsec
Lifetime float The SA lifecycle as the result of phase-two negotiation.
- ipsec
Pfs str The Diffie-Hellman key exchange algorithm used by phase-two negotiation.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.