查詢已建立的IPsec串連的詳細資料。

請求參數

名稱 類型 是否必須 描述
Action String

要執行的操作。 取值:

DescribeVpnConnection

RegionId String

IPsec串連所在的地域。

您可以通過調用 DescribeRegions介面獲取地域ID。

VpnConnectionId String

IPsec串連的ID。

返回參數

名稱 類型 描述
RequestId String 請求ID。
VpnConnectionId String IPsec串連的ID。
CustomerGatewayId String 使用者網關的ID。
VpnGatewayId String VPN網關的ID。
Name String IPsec串連的名稱。
LocalSubnet String VPC側的網段。
RemoteSubnet String 本地IDC側的網段。
CreateTime Long IPsec串連的建立時間。
IkeConfig JSON string 第一階段協商的配置。
IpsecConfig JSON string 第二階段協商的配置。
Status String

IPsec串連的狀態。

  • ike_sa_not_established:表示第一階段協商失敗。

  • ike_sa_established:表示第一階段協商成功。

  • ipsec_sa_not_established:表示第二階段協商失敗。

  • ipsec_sa_established:第二階段協商成功。

樣本

請求樣本

https://vpc.aliyuncs.com/?Action=DescribeVpnConnection
&RegionID=cn-beijing
&VpnConnectionId=vco-bp10lz7aejumd2vxoqgev
&公共請求參數
返回樣本
  • XML格式

    <?xml version="1.0" encoding="UTF-8" ?>
    <DescribeVpnConnectionResponse>
        <PageNumber>1</PageNumber>
        <VpnConnections>
            <VpnConnection>
                <Name>c2</Name>
                <CustomerGatewayId>cgw-bp1wl8dtz3auwlavwhgcw</CustomerGatewayId>
                <Status>ike_sa_not_established</Status>
                <RemoteSubnet>192.168.0.0/16</RemoteSubnet>
                <IpsecConfig>
                    <IpsecLifetime>86400</IpsecLifetime>
                    <IpsecAuthAlg>md5</IpsecAuthAlg>
                    <IpsecPfs>group2</IpsecPfs>
                    <IpsecEncAlg>aes</IpsecEncAlg>
                </IpsecConfig>
                <EffectImmediately>false</EffectImmediately>
                <VpnGatewayId>vpn-bp1yfrjxn4d5t63tbqq70</VpnGatewayId>
                <CreateTime>1519391420000</CreateTime>
                <VpnConnectionId>vco-bp1w3m1p23iftycvseuc2</VpnConnectionId>
                <LocalSubnet>172.16.0.0/12</LocalSubnet>
                <IkeConfig>
                    <IkeEncAlg>aes</IkeEncAlg>
                    <RemoteId>47.97.176.95</RemoteId>
                    <IkePfs>group2</IkePfs>
                    <IkeAuthAlg>sha1</IkeAuthAlg>
                    <Psk>1234567</Psk>
                    <IkeMode>aggressive</IkeMode>
                    <IkeLifetime>86400</IkeLifetime>
                    <IkeVersion>ikev1</IkeVersion>
                    <LocalId>116.62.119.2</LocalId>
                </IkeConfig>
            </VpnConnection>
        </VpnConnections>
        <TotalCount>1</TotalCount>
        <PageSize>10</PageSize>
        <RequestId>7D598A10-26EF-44F2-9F47-E417842F3CEA</RequestId>
    </DescribeVpnConnectionResponse>
  • JSON格式

    {
      "PageNumber": 1,
      "VpnConnections": {
        "VpnConnection": [
          {
            "Name": "c2",
            "CustomerGatewayId": "cgw-bp1wl8dtz3auwlavwhgcw",
            "Status": "ike_sa_not_established",
            "RemoteSubnet": "192.168.0.0/16",
            "IpsecConfig": {
              "IpsecLifetime": 86400,
              "IpsecAuthAlg": "md5",
              "IpsecPfs": "group2",
              "IpsecEncAlg": "aes"
            },
            "EffectImmediately": false,
            "VpnGatewayId": "vpn-bp1yfrjxn4d5t63tbqq70",
            "CreateTime": 1519391420000,
            "VpnConnectionId": "vco-bp1w3m1p23iftycvseuc2",
            "LocalSubnet": "172.16.0.0/12",
            "IkeConfig": {
              "IkeEncAlg": "aes",
              "RemoteId": "47.97.176.95",
              "IkePfs": "group2",
              "IkeAuthAlg": "sha1",
              "Psk": "1234567",
              "IkeMode": "aggressive",
              "IkeLifetime": 86400,
              "IkeVersion": "ikev1",
              "LocalId": "116.62.119.2"
            }
          }
        ]
      },
      "TotalCount": 1,
      "PageSize": 10,
      "RequestId": "7D598A10-26EF-44F2-9F47-E417842F3CEA"
    }