Detaches a network instance from a Cloud Enterprise Network (CEN) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cen:DetachCenChildInstance | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CenId | string | Yes | The ID of the CEN instance. | cen-7qthudw0ll6jmx**** |
ChildInstanceId | string | Yes | The ID of the network instance that you want to detach from the CEN instance. | vpc-bp18sth14qii3pnvx**** |
ChildInstanceType | string | Yes | The type of the network instance. Valid values:
| VPC |
ChildInstanceRegionId | string | Yes | The ID of the region where the network instance is deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
ChildInstanceOwnerId | long | No | The ID of the Alibaba Cloud account to which the network instance belongs. | 1699000000000000 |
CenOwnerId | long | No | The ID of the Alibaba Cloud account to which the CEN instance belongs. | 1688000000000000 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | OperationFailed.AttachmentReferencedVpcRouteEntryExisted | Operation is failed because there is at least one route entry which next hop is the specified attachment. | The error message returned because this operation is not supported when a route points to an attachment. |
400 | Forbidden.OptimizationCCNExisted | Operation Forbidden. CCN with optimization is on, please turn it off firstly. | - |
400 | Forbidden.PrivatezoneRouteExisted | Operation Forbidden. There is a Privatezone Route associated with the instance, please dessociate it firstly. | The error message returned because the PrivateZone route already exists. Delete the route and relevant configurations and try again. |
400 | Forbidden.TypeInvalid | The specified ChildInstanceType or TransitRouterType is not supported by this operation. | The error message returned because the ChildInstanceType or TransitRouterType parameter does not support this operation. |
400 | IncorrectStatus.Vpc | The resource is not in a valid state for the operation. | The error message returned because the status of the VPC does not support this operation. Try again later. |
400 | OperationFailed.VbrAttachedVbrHa | The operation is failed because of VbrAttachedVbrHa. | - |
400 | OperationFailed.RIInstanceExist | Operation is failed because RI exists. | The error message returned because this operation is not supported when an RI instance exists. |
400 | IncorrectStatus.VpcRouteTable | The VPC route table is not in a desired state. | The error message returned because the VPC route table is in an unstable state. Try again later. |
400 | OperationFailed.CenReferencedVpcRouteEntryExisted | Operation is failed because there is at least one route entry which next hop is the specified cen. | - |
400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
404 | Bid.NotFound | Not found Bid by specified AliUid. | The error message returned because the BID does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-10 | The Error code has changed | View Change Details |
2023-08-04 | The Error code has changed | View Change Details |
2023-03-21 | The Error code has changed | View Change Details |
2022-12-22 | The Error code has changed | View Change Details |