Deletes a Cloud Enterprise Network (CEN) instance.
Usage notes
DeleteCen is an asynchronous operation. After you send a request, the request ID is returned but the operation is still being performed in the system background. You can call DescribeCens to query the status of a CEN instance.
- If a CEN instance is in the Deleting state, the CEN instance is being deleted. In this case, you can query the CEN instance but cannot perform other operations.
- If a CEN instance cannot be found, the CEN instance is deleted.
Prerequisites
The CEN instance that you want to delete is not associated with a bandwidth plan, and the transit router associated with the CEN instance does not have a network instance connection or a custom route table.
- For more information about how to detach a network instance, see the following topics:
- DeleteTransitRouterVpcAttachment
- DeleteTransitRouterVbrAttachment
- DeleteTransitRouterVpnAttachment
-
DeleteTransitRouterPeerAttachmentNote For more information about how to detach network instances from a Basic Edition transit router, see DetachCenChildInstance.
- For more information about how to delete a custom route table, see DeleteTransitRouterRouteTable.
- For more information about how to disassociate a bandwidth plan from a CEN instance, see UnassociateCenBandwidthPackage.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DeleteCen |
The operation that you want to perform. Set the value to DeleteCen. |
| CenId | String | Yes | cen-7qthudw0ll6jmc**** |
The ID of the CEN instance. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 5903EE99-D542-4E14-BC65-AAC1CB2D3D03 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteCen
&CenId=cen-7qthudw0ll6jmc****
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteCenResponse>
<RequestId>5903EE99-D542-4E14-BC65-AAC1CB2D3D03</RequestId>
</DeleteCenResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "5903EE99-D542-4E14-BC65-AAC1CB2D3D03"
}
Error codes
| HttpCode | Error codes | Error message | Description |
|---|---|---|---|
| 400 | OperationFailed.DeleteCenWithCustomRouteTable | Operation failed because you are not allowed to delete the CEN with the custom transit router route table. | The error message returned because you are not allowed to delete the CEN instance when custom route tables are created on the CEN instance. |
| 400 | OperationFailed.DeleteCenWithRouteEntry | Operation failed because you are not allowed to delete the CEN with the transit router route entry. | The error message returned because you are not allowed to delete the CEN instance when custom route entries are created on the CEN instance. |
For a list of error codes, visit the API Error Center.