Attaches a network instance to a Cloud Enterprise Network (CEN) instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No AttachCenChildInstance

The operation that you want to perform. Set the value to AttachCenChildInstance.

CenId String Yes cen-7qthudw0ll6jmc****

The ID of the CEN instance.

ChildInstanceId String Yes vpc-bp18sth14qii3pnvx****

The ID of the network instance that you want to attach to the CEN instance.

ChildInstanceRegionId String Yes cn-hangzhou

The ID of the region where the network instance is created.

ChildInstanceType String Yes VPC

The type of the network instance. Valid values:

  • VPC: a virtual private cloud (VPC)
  • VBR: a virtual border router (VBR)
  • CCN: a Cloud Connect Network (CCN) instance
ChildInstanceOwnerId Long No 1231579085529123

The UID of the account to which the network instance belongs when the CEN instance and network instance belong to different accounts.

Response parameters

Parameter Type Example Description
RequestId String A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A

The ID of the request.


Sample requests

http(s)://[Endpoint]/? Action=AttachCenChildInstance
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

HttpCode Error code Error message Description
409 Forbbiden.AttachChildInstanceAcrossUid Operation is invalid because the child-instance is not authorized to CEN. The error message returned because the operation is unauthorized. Acquire the permissions to attach the network instance to the CEN instance and try again.
403 Forbidden.AttachChildInstance The attached VBR on some access device models are not supported. Please submit a ticket to continue using this VBR on CEN. The error message returned because the VBR cannot be attached to the CEN instance. To resolve this issue, submit a ticket.
409 InvalidOperation.ChildInstanceAlreadyAttached Operation is invalid because the child-instance has already been attached to another CEN. The error message returned because the network instance is already attached to another CEN instance.

For a list of error codes, visit the API Error Center.