Calls the CreateCloudConnectNetwork operation to create a Cloud Connect Network (CCN) instance.
Operation description
A Cloud Connect Network (CCN) is a device access matrix that consists of Alibaba Cloud distributed access gateways. CCN is another important component of Smart Access Gateway. After you attach Smart Access Gateway to a CCN, Smart Access Gateway can connect your on-premises network to Alibaba Cloud through the CCN via network connectivity. For more information, see Cloud Connect Network overview.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:CreateCloudConnectNetwork |
create |
*CloudConnectNetwork
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the Cloud Connect Network (CCN) instance. |
cn-shanghai |
| Name |
string |
No |
The name of the Cloud Connect Network (CCN) instance. The name must be 2 to 100 characters in length and must start with a letter or a Chinese character. It can contain digits, underscores (_), periods (.), and hyphens (-). |
ccnname |
| Description |
string |
No |
The description of the Cloud Connect Network (CCN) instance. The description must be 2 to 128 characters in length and must start with a letter or a Chinese character. It can contain digits, underscores (_), and hyphens (-). |
ccndesc |
| CidrBlock |
string |
No |
The private CIDR block. |
172.XX.XX.0/24 |
| SnatCidrBlock |
string |
No |
The SNAT private CIDR block. |
172.XX.XX.0/25 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The Cloud Connect Network (CCN) instance information. |
||
| Status |
string |
The instance status of the Cloud Connect Network (CCN). Valid values:
|
Active |
| Description |
string |
The description of the Cloud Connect Network (CCN) instance. |
ccndesc |
| RequestId |
string |
The request ID. |
C48E8EB2-37A4-495B-A95C-29CA1FD26C82 |
| CcnId |
string |
The instance ID of the Cloud Connect Network (CCN). |
ccn-l9340rlu5ens***** |
| CidrBlock |
string |
The private CIDR block. |
172.XX.XX.0/24 |
| SnatCidrBlock |
string |
The SNAT private CIDR block. |
172.XX.XX.0/25 |
| Name |
string |
The name of the Cloud Connect Network (CCN) instance. |
ccnname |
| ResourceGroupId |
string |
The ID of the resource group to which the Cloud Connect Network (CCN) instance belongs. |
rg-acfm2iu4fnc**** |
Examples
Success response
JSON format
{
"Status": "Active",
"Description": "ccndesc",
"RequestId": "C48E8EB2-37A4-495B-A95C-29CA1FD26C82",
"CcnId": "ccn-l9340rlu5ens*****",
"CidrBlock": "172.XX.XX.0/24",
"SnatCidrBlock": "172.XX.XX.0/25",
"Name": "ccnname",
"ResourceGroupId": "rg-acfm2iu4fnc****"
}
Error response
JSON format
{
"Name": "DocTest",
"Status": "Active",
"RequestId": "F0C4D78D-C60E-4A3B-A652-3A2835305C0B",
"CcnId": "ccn-l9340rlu5enstmzj5i"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CCN.CidrAmountLimit | The maximum number of CCN CIDR blocks is exceeded. | The maximum number of CCN CIDR blocks is exceeded. |
| 400 | CCN.CidrEmpty | You must specify the CCN CIDR block. | You must specify the CCN CIDR block. |
| 400 | CCN.InvalidCidr | The specified CCN CIDR block is invalid. | The specified CCN CIDR block is invalid. |
| 400 | CCN.InvalidSnatCidr | The SNAT CIDR block of CCN is invalid. | The SNAT CIDR block of CCN is invalid. |
| 400 | CCN.SnatCidrConflict | The specified SNAT CIDR block is invalid. | The specified SNAT CIDR block is invalid. |
| 403 | InvalidDescription | Description not valid. | The length of the description has exceeded the upper limit. |
| 403 | InvalidName | Name not valid. | The specified name is invalid. |
| 403 | CcnAmountLimit | The CCNs you created has reached the limit, you can raise the limit by application. | The number of CCN instances that you have created has reached the upper limit. You can submit a ticket to request a quota increase. |
| 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.