The DescribeCloudConnectNetworks operation queries the details of Cloud Connect Network (CCN) instances in a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:DescribeCloudConnectNetworks |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the CCN instance is deployed. |
cn-shanghai |
| Name |
string |
No |
The name of the CCN instance. The name must be 2 to 100 characters in length, start with a letter or a Chinese character, and can contain digits, underscores (_), periods (.), and hyphens (-). |
ccnname |
| CcnId |
string |
No |
The ID of the CCN instance. |
ccn-l9340rlu5enst***** |
| PageSize |
integer |
No |
The number of entries to return on each page. The default value is 10. The maximum value is 50. |
10 |
| PageNumber |
integer |
No |
The page number. The default value is 1. |
1 |
| Tag |
array<object> |
No |
The tags of the CCN instances. |
|
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. |
test |
| Value |
string |
No |
The tag value. |
test |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The response. |
||
| CloudConnectNetworks |
object |
||
| CloudConnectNetwork |
array<object> |
A list of CCN instances. |
|
|
object |
The information about the CCN instance. |
||
| CreateTime |
integer |
The UNIX timestamp that indicates when the CCN instance was created. |
1523618639000 |
| AssociatedCenOwnerId |
string |
The ID of the Alibaba Cloud account to which the associated Cloud Enterprise Network (CEN) instance belongs. |
168800000000**** |
| AssociatedCloudBoxCount |
string |
The number of Smart Access Gateway instances that are attached to the CCN instance. |
1 |
| Tags |
object |
||
| Tag |
array<object> |
A list of tags. |
|
|
object |
The tag. |
||
| Key |
string |
The tag key. |
test |
| Value |
string |
The tag value. |
test |
| InterworkingStatus |
string |
Indicates whether intercommunication is enabled for Smart Access Gateway instances that are attached to the same CCN instance.
|
enable |
| CcnId |
string |
The ID of the CCN instance. |
ccn-l9340rlu5enst****** |
| AvailableCloudBoxCount |
string |
The number of active Smart Access Gateway instances that are attached to the CCN instance. |
1 |
| CidrBlock |
string |
The private CIDR block. |
10.10.10.0/24 |
| Description |
string |
The description of the CCN instance. |
ccndesc |
| SnatCidrBlock |
string |
The SNAT CIDR block. |
10.10.10.0/25 |
| AssociatedCenId |
string |
The ID of the CEN instance that is attached to the CCN instance. |
cen-0jtu0bcbika5b5**** |
| Name |
string |
The name of the CCN instance. |
ccnname |
| ResourceGroupId |
string |
The ID of the resource group to which the CCN instance belongs. |
rg-acfm2iu4fnc**** |
| TotalCount |
integer |
The total number of entries. |
3 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| RequestId |
string |
The request ID. |
3F2A0B80-D6D1-4764-8D77-38067DBBA345 |
| PageNumber |
integer |
The page number. |
1 |
Examples
Success response
JSON format
{
"CloudConnectNetworks": {
"CloudConnectNetwork": [
{
"CreateTime": 1523618639000,
"AssociatedCenOwnerId": "168800000000****",
"AssociatedCloudBoxCount": "1",
"Tags": {
"Tag": [
{
"Key": "test",
"Value": "test"
}
]
},
"InterworkingStatus": "enable",
"CcnId": "ccn-l9340rlu5enst******",
"AvailableCloudBoxCount": "1",
"CidrBlock": "10.10.10.0/24",
"Description": "ccndesc",
"SnatCidrBlock": "10.10.10.0/25",
"AssociatedCenId": "cen-0jtu0bcbika5b5****",
"Name": "ccnname",
"ResourceGroupId": "rg-acfm2iu4fnc****"
}
]
},
"TotalCount": 3,
"PageSize": 10,
"RequestId": "3F2A0B80-D6D1-4764-8D77-38067DBBA345",
"PageNumber": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidTagKey | The specified tag key is invalid. | The tag key is invalid. |
| 400 | InvalidTagValue | The specified tag value is invalid. | The specified tag value is invalid. |
| 400 | SizeLimitExceeded.TagNum | The maximum number of tags is exceeded. | The specified number of tag keys has exceeded the upper limit. |
| 400 | SizeLimitExceeded.ResourceId | The maximum number of resource IDs is exceeded. | The specified number of resource IDs has exceeded the upper limit. |
| 400 | Forbidden.TagKey.Duplicated | The specified tag key already exists. | The specified tag key already exists. |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have permissions to manage the specified resource. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.