Retrieves 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 is located. | cn-shanghai |
Name | string | No | The name of the CCN. The name must be 2 to 100 characters long, 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. | ccn-l9340rlu5enst***** |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. Maximum value: 50. | 10 |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
| Tag | array<object> | No | The tags to filter CCN instances. | DescribeCloudConnectNetworks |
object | No | A tag, which consists of a key-value pair. | ||
Key | string | No | The tag key. | test |
Value | string | No | The tag value. | test |
Response elements
Element | Type | Description | Example |
object | The query result. | ||
| CloudConnectNetworks | object | ||
| CloudConnectNetwork | array<object> | A list of CCN instances. | |
array<object> | The details of the CCN instance. | ||
CreateTime | integer | The timestamp that indicates when the CCN instance was created. | 1523618639000 |
AssociatedCenOwnerId | string | The account ID of the associated Cloud Enterprise Network (CEN) instance. | 168800000000**** |
AssociatedCloudBoxCount | string | The number of Smart Access Gateway (SAG) instances bound to the Cloud Connect Network instance. | 1 |
| Tags | object | ||
| Tag | array<object> | The tags that are attached to the instance. | |
object | The details of a tag. | ||
Key | string | The key of the tag. | test |
Value | string | The value of the tag. | test |
InterworkingStatus | string | Specifies whether interworking is enabled among SAG instances that are bound to the same CCN instance.
| enable |
CcnId | string | The ID of the Cloud Connect Network instance. | ccn-l9340rlu5enst****** |
AvailableCloudBoxCount | string | The number of bound SAG instances that are in the available state. | 1 |
CidrBlock | string | The CIDR block of the instance. | 10.10.10.0/24 |
Description | string | The description of the CCN instance. | ccndesc |
SnatCidrBlock | string | The source network address translation (SNAT) CIDR block. | 10.10.10.0/25 |
AssociatedCenId | string | The ID of the bound CEN instance. | cen-0jtu0bcbika5b5**** |
Name | string | The name of the CEN instance. | ccnname |
ResourceGroupId | string | The ID of the resource group to which the Cloud Connect Network instance belongs. | rg-acfm2iu4fnc**** |
NewAgw | boolean | Specifies whether the CCN instance supports new AGWs. | true |
Subnet | string | The subnet used for interworking between the CCN and CEN. | 192.168.20.0/24 |
TotalCount | integer | The total number of entries that match the query. | 3 |
PageSize | integer | The number of entries 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****",
"NewAgw": true,
"Subnet": "192.168.20.0/24"
}
]
},
"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.