Queries created Cloud Connect Network (CCN) instances.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameters Type Required? Example value Description
RegionId String Yes cn-hangzhou

The region to which the CCN instance belongs.

Action String No DescribeCloudConnectNetworks

The name of this action.

Value: DescribeCloudConnectNetworks

CcnId String No ccn-l9340rlu5enst*****

The ID of the CCN instance.

Name String No ccn name

The name of the CCN instance.

PageNumber String No 4

The number of pages to return. Default value: 1.

PageSize String No 4

The number of rows per page. Maximum value: 50. Default value: 10.

Tag.N.Key String No 2

The key of the nth tag.

Tag.n.Value String ]No 2

The value of the nth tag.

Response parameters

Parameter Type Example value Description
CloudConnectNetworks

A list of CCN instances.

└AssociatedCenId String ccn-l9340rlu5enst******

The ID of the CEN instance attached to the CCN instance.

└AssociatedCenOwnerId String 1954105122583124

The account ID of the CEN instance.

└AssociatedCloudBoxCount String 3

The number of Smart Access Gateway instances attached to the CCN instance.

└AvailableCloudBoxCount String 2

The number of available Smart Access Gateway instances attached to the CCN instance.

└CcnId String ccn-l9340rlu5enst******

The ID of the CCN instance.

└CidrBlock String 10.10.10.0/24

The private CIDR block.

└CreateTime Long 1523618639000

The time when the CCN instance was created.

└Description String ccn description

The description of the CCN instance.

└IsDefault Boolean false

Indicates whether the CCN instance is created by default.

If you do not have an attached CCN instance, a CCN instance is created for you by default.

└Name String ccn name

The name of the CCN instance.

└SnatCidrBlock String 10.10.10.5/24

The SNAT CIDR block.

└ Tags

A list of tags.

└Key String 2

The key of the nth tag.

└Value String 2

The value of the nth tag.

PageNumber Integer 1

The current page number.

PageSize Integer   2

The number of entries on the current page.

RequestId String 3F2A0B80-D6D1-4764-8D77-38067DBBA345

The ID of the request.

TotalCount Integer 2

The number of queried entries.

Examples

Request example


https://smartag.cn-shanghai.aliyuncs.com/?Action=DescribeCloudConnectNetworks
&CommonParameters

Response examples

XML format

<DescribeCloudConnectNetworksResponse>
  <CloudConnectNetworks>
    <CloudConnectNetwork>
      <Name>DocTest</Name>
      <AvailableCloudBoxCount>2</AvailableCloudBoxCount>
      <AssociatedCenOwnerId>1954105122583124</AssociatedCenOwnerId>
      <IsDefault>false</IsDefault>
      <AssociatedCloudBoxCount>3</AssociatedCloudBoxCount>
      <CreateTime>1523618639000</CreateTime>
      <CcnId>ccn-l9340rlu5enstmzj5i</CcnId>
    </CloudConnectNetwork>
    <CloudConnectNetwork>
      <Name>CEN test</Name>
      <Description/>
      <AvailableCloudBoxCount>0</AvailableCloudBoxCount>
      <AssociatedCenOwnerId>1954105122583124</AssociatedCenOwnerId>
      <IsDefault>false</IsDefault>
      <AssociatedCloudBoxCount>0</AssociatedCloudBoxCount>
      <CreateTime>1523190009000</CreateTime>
      <CcnId>ccn-oa5ftyg6t48gnhb61k</CcnId>
    </CloudConnectNetwork>
  </CloudConnectNetworks>
  <PageNumber>1</PageNumber>
  <TotalCount>3</TotalCount>
  <PageSize>10</PageSize>
  <RequestId>3F2A0B80-D6D1-4764-8D77-38067DBBA345</RequestId>
</DescribeCloudConnectNetworksResponse>

JSON format

{
	"PageNumber":1,
	"CloudConnectNetworks": {
		"CloudConnectNetwork": [
			{
				"Name": "DocTest",
				"AvailableCloudBoxCount": 2,
				"AssociatedCenOwnerId": "1954105122583124",
				"AssociatedCloudBoxCount": 3,
				"IsDefault": false,
				"CreateTime": 1523618639000,
				"CcnId": "ccn-l9340rlu5enstmzj5i"
			},
			{
				"Name": "CEN test",
				"Description": "",
				"AvailableCloudBoxCount": 0,
				"AssociatedCenOwnerId": "1954105122583124",
				"AssociatedCloudBoxCount": 0,
				"IsDefault": false,
				"CreateTime": 1523190009000,
				"CcnId": "ccn-oa5ftyg6t48gnhb61k"
			}
		]
	},
	"TotalCount":3,
	"PageSize":10,
	"RequestId": "3F2A0B80-D6D1-4764-8D77-38067DBBA345"
}

Error codes

HTTP status code Error code Error message  Description
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource.
400 InvalidTagKey The specified RegionId is invalid. The specified tag key is invalid.
400 InvalidTagValue The specified UserName is invalid. The specified tag value is invalid.

See common error codes.