All Products
Search
Document Center

Cloud Enterprise Network:DetachCenChildInstance

Last Updated:Mar 01, 2024

Detaches a network instance from a Cloud Enterprise Network (CEN) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
cen:DetachCenChildInstanceWrite
  • CenInstance
    acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}
  • virtualborderrouter
    acs:vpc:*:{#accountId}:virtualborderrouter/{#virtualborderrouterId}
  • VPC
    acs:vpc:*:{#accountId}:vpc/{#vpcId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
CenIdstringYes

The ID of the CEN instance.

cen-7qthudw0ll6jmx****
ChildInstanceIdstringYes

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

vpc-bp18sth14qii3pnvx****
ChildInstanceTypestringYes

The type of the network instance. Valid values:

  • VPC: virtual private cloud (VPC)
  • VBR: virtual border router (VBR)
  • CCN: Cloud Connect Network (CCN) instance
VPC
ChildInstanceRegionIdstringYes

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
ChildInstanceOwnerIdlongNo

The ID of the Alibaba Cloud account to which the network instance belongs.

1699000000000000
CenOwnerIdlongNo

The ID of the Alibaba Cloud account to which the CEN instance belongs.

1688000000000000

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50

Examples

Sample success responses

JSONformat

{
  "RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}

Error codes

HTTP status codeError codeError messageDescription
400OperationFailed.AttachmentReferencedVpcRouteEntryExistedOperation 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.
400Forbidden.OptimizationCCNExistedOperation Forbidden. CCN with optimization is on, please turn it off firstly.-
400Forbidden.PrivatezoneRouteExistedOperation 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.
400Forbidden.TypeInvalidThe 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.
400IncorrectStatus.VpcThe 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.
400OperationFailed.VbrAttachedVbrHa The operation is failed because of VbrAttachedVbrHa.-
400OperationFailed.RIInstanceExistOperation is failed because RI exists.The error message returned because this operation is not supported when an RI instance exists.
400IncorrectStatus.VpcRouteTableThe 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.
400OperationFailed.CenReferencedVpcRouteEntryExistedOperation is failed because there is at least one route entry which next hop is the specified cen.-
400InvalidParameterInvalid parameter.The error message returned because the parameter is set to an invalid value.
400UnauthorizedThe AccessKeyId is unauthorized.The error message returned because you do not have the permissions to perform this operation.
404Bid.NotFoundNot 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 timeSummary of changesOperation
2023-08-04The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    delete Error Codes: 404
2023-03-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    delete Error Codes: 404
2022-12-22The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    delete Error Codes: 404