edit-icon download-icon

DownloadVpnConnectionConfig

Last Updated: Apr 13, 2018

Description

Obtain the configuration information of an IPsec connection.

Request parameters

Name Type Required Description
Action String Yes

The action to perform.

Valid value: DownloadVpnConnectionConfig

RegionId String Yes

The region of the IPsec connection.

You can obtain the region ID by calling the DescribeRegions API.

VpnConnectionId Integer Yes The ID of the IPsec connection.

Response parameters

Name Type Description
RequestId String The ID of the request.
VpnConnectionConfig JSON string Configurations of the IPsec connection.
VPNConnection objects
CustomerGatewayId String The ID of the customer gateway.
VpnGatewayId String The ID of the VPN gateway.
Local String The identification of the IPsec VPN gateway.
LocalSubnet String The CIDR block of the VPC.
RemoteSubnet String The CIDR block of the local data center.
Remote String The identification of the customer gateway.
IkeConfig JSON string Configurations of phase-one negotiation.
IpsecConfig JSON string Configurations of phase-two negotiation.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=DownloadVpnConnectionConfig
  2. &RegionId=cn-hangzhou
  3. &VpnConnectionId=vco-bp10lz7aejumd2vxoqgev
  4. &<CommonParameters>

Response example

XML format

  1. <DownloadVpnConnectionConfigResponse>
  2. <RequestId>6F4A035F-7060-45D7-B9BD-719372782AF6</RequestId>
  3. <VpnConnectionConfig>
  4. <RemoteSubnet>1.1.1.0/24,1.1.2.0/24</RemoteSubnet>
  5. <Local>139.196.32.167</Local>
  6. <IpsecConfig>
  7. <IpsecLifetime>86400</IpsecLifetime>
  8. <IpsecAuthAlg>sha1</IpsecAuthAlg>
  9. <IpsecPfs>group2</IpsecPfs>
  10. <IpsecEncAlg>aes</IpsecEncAlg>
  11. </IpsecConfig>
  12. <Remote>116.62.69.64</Remote>
  13. <LocalSubnet>2.2.2.0/24</LocalSubnet>
  14. <IkeConfig>
  15. <IkeEncAlg>aes</IkeEncAlg>
  16. <IkePfs>group2</IkePfs>
  17. <RemoteId>116.62.69.64</RemoteId>
  18. <IkeAuthAlg>sha1</IkeAuthAlg>
  19. <Psk>pgw6dy7d1i8in7x5</Psk>
  20. <IkeMode>main</IkeMode>
  21. <IkeLifetime>86400</IkeLifetime>
  22. <IkeVersion>ikev1</IkeVersion>
  23. <LocalId>139.196.32.167</LocalId>
  24. </IkeConfig>
  25. </VpnConnectionConfig>
  26. </DownloadVpnConnectionConfigResponse>

JSON format

  1. {
  2. "RequestId": "0C68048B-0F70-40DA-B8AE-1B79B5CF62E3",
  3. "VpnConnectionConfig": {
  4. "RemoteSubnet": "1.1.1.0/24,1.1.2.0/24",
  5. "Local": "139.196.32.167",
  6. "IpsecConfig": {
  7. "IpsecLifetime": 86400,
  8. "IpsecAuthAlg": "sha1",
  9. "IpsecPfs": "group2",
  10. "IpsecEncAlg": "aes"
  11. },
  12. "Remote": "116.62.69.64",
  13. "LocalSubnet": "2.2.2.0/24",
  14. "IkeConfig": {
  15. "IkeEncAlg": "aes",
  16. "IkePfs": "group2",
  17. "RemoteId": "116.62.69.64",
  18. "IkeAuthAlg": "sha1",
  19. "Psk": "pgw6dy7d1i8in7x5",
  20. "IkeMode": "main",
  21. "IkeLifetime": 86400,
  22. "IkeVersion": "ikev1",
  23. "LocalId": "139.196.32.167"
  24. }
  25. }
  26. }
Thank you! We've received your feedback.