All Products
Search
Document Center

Cloud Enterprise Network:DeleteTransitRouter

Last Updated:Jun 10, 2026

Menghapus Router transit.

Deskripsi operasi

DeleteTransitRouter is an asynchronous operation. After you send a request, the request ID is returned but the operation is still being performed in the system background. You can call ListTransitRouters to query the status of a transit router.

  • If a transit router is in the Deleting state, the transit router is being deleted. In this case, you can query the transit router but cannot perform other operations.

  • If a transit router cannot be found, the transit router is deleted.

Prerequisites

Before you delete a transit router, make sure that the following prerequisites are met:

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

delete

*TransitRouter

acs:cen:*:{#accountId}:centransitrouter/{#centransitrouterId}

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 nilai, tetapi Anda harus memastikan nilai tersebut unik di antara permintaan yang berbeda. ClientToken hanya boleh berisi karakter ASCII.

Catatan

Jika Anda tidak menetapkan parameter ini, ClientToken ditetapkan ke nilai RequestId. Nilai RequestId mungkin berbeda untuk setiap permintaan API.

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

DryRun

boolean

No

Apakah akan hanya melakukan pemeriksaan awal pada permintaan. Sistem memeriksa item seperti izin dan status Router transit. Nilai valid:

  • false (default): mengirim permintaan. Jika permintaan lolos pemeriksaan awal, Router transit dihapus.

  • true: melakukan pemeriksaan awal pada permintaan tetapi tidak menghapus Router transit. Jika Anda menggunakan nilai ini, sistem memeriksa parameter yang diperlukan dan sintaks permintaan. Jika permintaan gagal pada pemeriksaan awal, Paket kesalahan dikembalikan. Jika permintaan lolos pemeriksaan awal, kode kesalahan DryRunOperation dikembalikan.

false

TransitRouterId

string

Yes

ID Router transit.

tr-uf654ttymmljlvh2x****

Elemen respons

Element

Type

Description

Example

object

RequestId

string

The ID of the request.

6DE3EE92-39C8-4BBD-A3AD-F568D74741BB

Contoh

Respons sukses

JSONformat

{
  "RequestId": "6DE3EE92-39C8-4BBD-A3AD-F568D74741BB"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 OperationFailed.DeleteTransitRouter Operation failed because TransitRouterRouteTable or TransitRouterRouteEntry or BandwidthTransitRegion exists. The error message returned because this operation is not supported when a custom route or a custom route table exists, or bandwidth multiplexing is enabled. Delete the custom route table and route, disable bandwidth multiplexing, and then try again.
400 IncorrectStatus.TransitRouterInstance The status of TransitRouter is incorrect. The error message returned because the transit router is in an invalid state.
400 OperationFailed.CCNAttached Can not delete transit router because CCN still attached. The error message returned because the transit router cannot be deleted when it is connected to a CCN instance.
400 OperationFailed.BandwidthLimitExist Operation is invalid because a bandwidth limit exist. Please delete all cross region bandwidth limits associated with current TR and try again.
400 IncorrectStatus.CenInstance The status of CenInstance is incorrect. The error message returned because the status of the CEN instance to which the transit router is connected does not support this operation. Wait until the CEN instance is in a stable state.
400 OperationFailed.TrafficMarkingPolicyExist Operation is invalid because traffic marking policy exists. The error message returned because the transit router is associated with a traffic marking policy. Disassociate the transit router from the traffic marking policy before you delete the transit router.
400 OperationFailed.MulticastDomainExist Operation is invalid because multicast domain exists. The error message returned because the transit router is associated with a multicast domain. Disassociate the transit router from the multicast domain before you delete the transit router.
400 OperationFailed.PrefixListExist Operation is invalid because prefix list exists. The error message returned because this operation is not supported when a prefix list exists. Delete the prefix list and try again.
400 OperationFailed.TrafficQosPolicyExist Operation is invalid because traffic qos policy exists. The error message returned because this operation is not supported when a QoS policy exists. Delete the QoS policy and try again.
400 OperationFailed.CloudRouteExist Operation is invalid because cloud route exists.
400 OperationFailed.FlowLogExistOrNisOpened Operation failed because FlowLog exists or Nis opened. The error message returned because this operation is not supported when a flow log exists or the NIS service is activated.
400 OperationFailed.AggregationRouteExist Operation failed because TransitRouterRouteAggregation exists. Operation failed because TransitRouterRouteAggregation exists.
400 InvalidOperation.BondVbrExist The operation failed due to BondVbr exists. The operation failed because the BondVbr exists.
400 InvalidTransitRouterInstance.NotFound The Transit Router instance is not found. The Transit Router instance is not found.
400 OperationFailed.FlowLogExist Flow log configurations exist. Delete the flow log configurations and retry the operation. Flow log configurations exist. Delete the flow log configurations and retry the operation.
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 InvalidOperation.RelatedEcrExists Operation is invalid due to related ECR exists.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.