Modifies the name and description of a Cloud Connect Network (CCN) instance.

Debug

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

Request parameters

Parameter Type Required? Example value Description
CcnId String Yes ccn-l9340rlu5ens*****

The ID of the CCN instance.

RegionId String Yes cn-hangzhou

The area to which the CCN instance belongs.

Action String No ModifyCloudConnectNetwork

The name of this action.

Value: ModifyCloudConnectNetwork

CidrBlock String No 10.10.10.0/24

The private CIDR block.

Description String No ccn description

The description of the CCN instance.

The description must be 2 to 256 characters in length. It must start with a letter and cannot start with http:// or https://.

Name String No ccn name

The name of the CCN instance.

The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter. It cannot start with http:// or https://.

SnatCidrBlock String No 10.10.10.5/24

The SNAT CIDR block.

Response parameters

Parameter Type Example value Description
RequestId String 0BAAF2B9-88B8-4574-BDBE-102A90EE3FEE

The ID of the request.

Examples

Request example


https://smartag.cn-shanghai.aliyuncs.com/?Action=ModifyCloudConnectNetwork
&RegionId=cn-shanghai
&CcnId=ccn-l9340rlu5enstmzj5
&Description=ConnectChina
&CommonParameters

Response examples

XML format

<ModifyCloudConnectNetworkResponse>
  <RequestId>0BAAF2B9-88B8-4574-BDBE-102A90EE3FEE</RequestId>
</ModifyCloudConnectNetworkResponse>

JSON format

{
	"RequestId":"0BAAF2B9-88B8-4574-BDBE-102A90EE3FEE"
}

Error codes

HTTP status code Error code Error message  Description
403 MissingParameter The input parameter is missing, please check your input. The required parameters are missing.
403 InvalidId.CCN Invalid cloud connect network id. The specified CCN instance ID is invalid.
403 UpdateError.CCN Update cloud connect network error. An error occurred while the CCN instance is being updated.
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to operate on this resource.

See common error codes.