全部产品
Search
文档中心

Cloud Enterprise Network:DetachCenChildInstance

更新时间:Dec 14, 2025

Melepas instance jaringan dari router transit Cloud Enterprise Network (CEN).

Deskripsi operasi

Router transit harus merupakan Router transit Edisi Dasar.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cen:DetachCenChildInstance

update

*CenInstance

acs:cen:*:{#accountId}:ceninstance/{#ceninstanceId}

*virtualborderrouter

acs:vpc:*:{#accountId}:virtualborderrouter/{#virtualborderrouterId}

*VPC

acs:vpc:*:{#accountId}:vpc/{#vpcId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

CenId

string

Yes

ID instans CEN.

cen-7qthudw0ll6jmx****

ChildInstanceId

string

Yes

ID instans jaringan yang ingin Anda lepas dari instans CEN.

vpc-bp18sth14qii3pnvx****

ChildInstanceType

string

Yes

Tipe instans jaringan. Nilai yang valid:

  • VPC: virtual private cloud (VPC)

  • VBR: Virtual Border Router (VBR)

  • CCN: Instans Cloud Connect Network (CCN)

VPC

ChildInstanceRegionId

string

Yes

ID wilayah tempat instans jaringan ditempatkan.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru.

cn-hangzhou

ChildInstanceOwnerId

integer

No

ID Akun Alibaba Cloud tempat instans jaringan berada.

1699000000000000

CenOwnerId

integer

No

ID Akun Alibaba Cloud tempat instans CEN berada.

1688000000000000

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan.

0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50

Contoh

Respons sukses

JSONformat

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

Kode kesalahan

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 InvalidOperation.BondVbrAssociated Illegal operation due to associated BondVBR. Illegal operation due to associated BondVBR.
400 OperationFailed.VbrWithAllowPrefixes Operation failed because allow prefixes referenced by vbr exists. A route prefix on the VBR is assigned the Allow action, which causes the operation to fail.
400 InvalidOperation.CustomRegionDomainRouteEntryExist Operation is invalid because custom region-domain route entry exist. Operation is invalid because custom region-domain route entry exist.
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.
400 OperationNotPermitted.AttachmentManagedByCloudService The specified Attachment managed by cloud service can only be deleted through cloud service.
400 InvalidStatus.ResourceStatus The resource is not in a valid state for the attachment operation. The error message returned because the status of the specified resource does not support this operation. Try again later.
404 Bid.NotFound Not found Bid by specified AliUid. The error message returned because the BID does not exist.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.