全部产品
Search
文档中心

Cloud Enterprise Network:AttachCenChildInstance

更新时间:Dec 14, 2025

Menyambungkan instans jaringan ke instans Cloud Enterprise Network (CEN).

Deskripsi operasi

Cloud Enterprise Network (CEN) memungkinkan Anda menyambungkan instans jaringan yang dimiliki oleh Akun Alibaba Cloud lain ke instans CEN Anda. Sebelum menyambungkan instans jaringan tersebut, CEN harus memiliki izin untuk mengakses instans jaringan milik Akun Alibaba Cloud lain.

  • Untuk informasi selengkapnya tentang cara memberikan izin CEN pada virtual private cloud (VPC) yang dimiliki oleh Akun Alibaba Cloud lain, lihat GrantInstanceToCen.

  • Untuk informasi selengkapnya tentang cara memberikan izin CEN pada instans Cloud Connect Network (CCN) yang dimiliki oleh Akun Alibaba Cloud lain, lihat GrantInstanceToCbn.

  • Secara default, Anda tidak dapat memberikan izin pada virtual border router (VBR) yang dimiliki oleh Akun Alibaba Cloud lain ke instans CEN. Jika Anda memerlukan fitur ini, hubungi account manager Anda.

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:AttachCenChildInstance

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-7qthudw0ll6jmc****

ChildInstanceId

string

Yes

ID instans jaringan yang ingin Anda sambungkan ke instans CEN.

vpc-bp18sth14qii3pnvx****

ChildInstanceType

string

Yes

Tipe instans jaringan. Nilai yang valid:

  • VPC: VPC

  • VBR: VBR

  • CCN: Instans 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 pemilik instans jaringan.

Catatan

Jika instans jaringan dan instans CEN dimiliki oleh Akun Alibaba Cloud yang berbeda, parameter ini wajib diisi.

1688000000000000

Elemen respons

Element

Type

Description

Example

object

RequestId

string

ID permintaan.

A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A

Contoh

Respons sukses

JSONformat

{
  "RequestId": "A278B8A6-A5B8-4FDE-9F70-95F0F6A1D68A"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 Forbbiden.AttachChildInstanceAcrossBid Operation is invalid, please apply for cross-bid attaching.
400 IncorrectStatus.VpcSwitch Operation is failed because some virtual switch is modifying within the same VPC. The error message returned because the status of the vSwitch does not support this operation. Try again later.
400 Forbbiden.CloudBoxVSwitchExist The operation is not allowed because of cloud box vswitch existed. The error message returned because the specified vSwitch is associated with a CloudBox. You cannot associate with the vSwitch.
400 OperationFailed.InvalidVpcStatus Operation is failed because the child-instance is configuring.
400 OperationFailed.InvalidTransitRouter Operation failed because the transit router is not supported. Operation failed because the transit router is not supported.
400 OperationUnsupported.CenFullLevel CEN full level does not support vpn bgp. The error message returned because CEN instances in FULL mode do not support BGP for VPN gateways.
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 InvalidOperation.VbrAttachedToEcr VBR has alreay attached to ECR. VBR has alreay attached to ECR.
400 OperationUnsupported.VpcRoutePropagationSource The operation on this VPC route propagation source is not supported. The operation on this VPC route propagation source is not supported.
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.
400 IncorrectStatus.TransitRouter The status of TransitRouter is incorrect. The error message returned because the status of the transit router does not support this operation. Try again later.
400 IllegalParam.RegionId The specified RegionId is illegal. The error message returned because the specified region is invalid.
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.
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 attached VBR on some access device models are not supported. Please submit a ticket to continue using this VBR on CEN.
404 Bid.NotFound Not found childInstance Bid by specified AliUid. The error message returned because the BID does not exist.
404 Operation.FailedAndTryAgain Fail to get customer label by the specified aliUid.
409 InvalidOperation.ChildInstanceRIAlreadyExist Operation is invalid because the child-instance has already been attached to Express Connect.
409 Forbbiden.AttachChildInstanceAcrossUid Operation is invalid because the child-instance is not authorized to CEN.
409 InvalidOperation.ChildInstanceAlreadyAttached Operation is invalid because the child-instance has already been attached to another CEN.
409 InvalidOperation.CenAlreadyAutoPubilshRouteToInstance Operation is invalid because other cen has already auto published route to this instance. The error message returned because this operation is not supported when one or more other CEN instance can advertise routes to the specified instance.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.