All Products
Search
Document Center

Cloud Enterprise Network:CreateCenChildInstanceRouteEntryToAttachment

Last Updated:Jun 10, 2026

Anda dapat memanggil operasi CreateCenChildInstanceRouteEntryToAttachment untuk membuat entri rute bagi instans jaringan yang terhubung ke Router transit Edisi Perusahaan. Lompatan berikutnya dari entri rute mengarah ke Router transit di Wilayah saat ini.

Deskripsi operasi

  • You can create routes only for Virtual Private Cloud (VPC) and virtual border router (VBR) instances that are connected to an Enterprise Edition transit router.

  • The next hop of the route is the transit router connection (the network instance connection) by default and cannot be modified.

  • CreateCenChildInstanceRouteEntryToAttachment is an asynchronous operation. After you send a request, the system returns a RequestId and creates the route in the background. The route is not created immediately. You can call the DescribeRouteEntryList operation for the VPC to query the status of the route.

    • If the route is in the Pending state, it is being created. During this time, you can only query the route and cannot perform other operations.

    • If the route is in the Available state, the route is created.

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

create

*CenInstance

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

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ClientToken

string

No

Token Klien yang digunakan untuk memastikan idempotensi permintaan.

Anda dapat menggunakan Klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII.

Catatan

Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan.

02fb3da4-130e-11e9-8e44-001****

DryRun

boolean

No

Apakah akan menjalankan dry run, tanpa menjalankan permintaan aktual. Dry run memeriksa izin dan status Instans. Nilai valid:

  • false (default): mengirim permintaan normal dan membuat entri rute untuk instans jaringan setelah permintaan lulus pemeriksaan.

  • true: mengirim permintaan dry run untuk memeriksa parameter permintaan. Jika permintaan lulus pemeriksaan, sistem tidak membuat entri rute untuk instans jaringan. Sistem memeriksa parameter yang diperlukan dan format permintaan. Jika permintaan gagal pemeriksaan, Paket kesalahan akan dikembalikan. Jika permintaan lulus pemeriksaan, kode kesalahan DryRunOperation akan dikembalikan.

Catatan

Parameter ini tidak digunakan.

false

CenId

string

Yes

ID Instans CEN.

cen-bp1n6cbxcszp55vxo****

TransitRouterAttachmentId

string

Yes

ID koneksi instans jaringan.

tr-attach-r1qhupkc19iadz****

RouteTableId

string

Yes

ID tabel rute instans jaringan.

vrt-bp1msipdczo9lejup****

DestinationCidrBlock

string

Yes

Blok CIDR tujuan dari entri rute.

10.0.0.0/24

Elemen respons

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

A95A100B-3F3A-56F4-A5DE-19DB7E994807

Contoh

Respons sukses

JSONformat

{
  "RequestId": "A95A100B-3F3A-56F4-A5DE-19DB7E994807"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 Forbidden.VpcAsInternetGateway It’s forbidden that using Vpc as internet gateway for your private IDC.
400 InvalidCIDRBlock.Duplicate Specified CIDR block is already exists. The error message returned because the specified CIDR block already exists.
400 InvalidCidrBlock.Malformed Specified CIDR block is not valid. The error message returned because the specified CIDR block is invalid.
400 OperationFailed.RouteConflict Route conflict exists in routing table. The error message returned because two or more routes in the route table conflict with each other.
400 InvalidOperation.UnsupportnexthopType The specified next hop type is not supported by this operation. The specified next hop type is not supported by this operation.
400 IncorrectStatus.VpcRouteEntry The resource is not in a valid state for the attachment operation. The error message returned because the status of the VPC route entry does not support this operation. Try again later.
400 OperationDenied.RouteTableTypeNotPermitted The operation is not allowed because of RouteTableTypeNotPermitted. The error message returned because this operation is not supported by the specified type of route table.
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 SystemBusy The system is busy. Please try again later. The error message returned because the system is unavailable. Try again later.
400 OperationUnsupported.DestinationCidrBlockOverlapWithVSwitch The destination network segment specified in the route entry overlaps with the vSwitch network segment.
404 InvalidAttachmentId.NotFound The specified AttachmentId is not found. The error message returned because the specified network instance connection ID does not exist.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.