Queries the cross-account authorization information about an IPsec-VPN connection.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeVpnCrossAccountAuthorizations

The operation that you want to perform. Set the value to DescribeVpnCrossAccountAuthorizations.

RegionId String Yes ap-southeast-2

The ID of the region to which the IPsec-VPN connection belongs.

You can call the DescribeRegions operation to query the most recent region list.

VpnConnectionId String Yes vco-p0w2jpkhi2eeop6q6****

The ID of the IPsec-VPN connection.

PageNumber Integer No 1

The number of the page to return. Default value: 1.

PageSize Integer No 10

The number of entries to return on each page. Default value: 10. Valid values: 1 to 50.

ClientToken String No 123e4567-e89b-12d3-a456-4266****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. ClientToken can contain only ASCII characters.

Note If you do not set this parameter, the system automatically uses RequestId as ClientToken. RequestId of each API request may be different.

Response parameters

Parameter Type Example Description
RequestId String DB04E39A-6F0C-36AC-BCA0-B6D371B90062

The ID of the request.

TotalCount Integer 1

The number of entries returned.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 10

The number of entries returned per page.

CrossAccountAuthorizations Array of CrossAccountAuthorization

The cross-account authorization information about the IPsec-VPN connection.

VpnConnectionId String vco-p0w2jpkhi2eeop6q6****

The ID of the IPsec-VPN connection.

BindUid Long 1210123456123456

The ID of the Alibaba Cloud account whose resource the IPsec-VPN connection can be associated with.

BindProduct String CEN

The resource type of the authorization.

The value is set to CEN, which indicates that the IPsec-VPN connection can be associated with a transit router of a Cloud Enterprise Network (CEN) instance that belongs to another Alibaba Cloud account.

BindInstance String cen-vv8h0t3klfpaae****

The ID of the CEN instance.

AliUid Long 1250123456123456

The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.

CreationTime Long 1658201810000

The timestamp when the authorization for the IPsec-VPN connection was created.

This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeVpnCrossAccountAuthorizations
&RegionId=ap-southeast-2
&VpnConnectionId=vco-p0w2jpkhi2eeop6q6****
&PageNumber=1
&PageSize=10
&ClientToken=123e4567-e89b-12d3-a456-4266****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeVpnCrossAccountAuthorizationsResponse>
    <RequestId>DB04E39A-6F0C-36AC-BCA0-B6D371B90062</RequestId>
    <TotalCount>1</TotalCount>
    <PageNumber>1</PageNumber>
    <PageSize>10</PageSize>
    <CrossAccountAuthorizations>
        <VpnConnectionId>vco-p0w2jpkhi2eeop6q6****</VpnConnectionId>
        <BindUid>1210123456123456</BindUid>
        <BindProduct>CEN</BindProduct>
        <BindInstance>cen-vv8h0t3klfpaae****</BindInstance>
        <AliUid>1250123456123456</AliUid>
        <CreationTime>1658201810000</CreationTime>
    </CrossAccountAuthorizations>
</DescribeVpnCrossAccountAuthorizationsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "DB04E39A-6F0C-36AC-BCA0-B6D371B90062",
  "TotalCount" : 1,
  "PageNumber" : 1,
  "PageSize" : 10,
  "CrossAccountAuthorizations" : [ {
    "VpnConnectionId" : "vco-p0w2jpkhi2eeop6q6****",
    "BindUid" : 1210123456123456,
    "BindProduct" : "CEN",
    "BindInstance" : "cen-vv8h0t3klfpaae****",
    "AliUid" : 1250123456123456,
    "CreationTime" : 1658201810000
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.