All Products
Search
Document Center

Cloud Enterprise Network:ListTransitRouterRouteTables

Last Updated:Jun 10, 2026

Mengkueri tabel entri rute yang terkait dengan Router transit Edisi Perusahaan.

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

get

TransitRouterRouteTable

acs:cen:*:{#accountId}:centransitrouterroutetable/{#centransitrouterroutetableId}

TransitRouterRouteTable

acs:cen:*:{#accountId}:centransitrouterroutetable/*

TransitRouter

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

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

MaxResults

integer

No

Jumlah entri yang akan ditampilkan di setiap halaman. Nilai valid: 1 hingga 100. Nilai default: 20.

20

NextToken

string

No

Token yang digunakan untuk kueri berikutnya. Nilai valid:

  • Jika ini adalah kueri pertama Anda atau tidak ada kueri berikutnya yang akan dikirim, jangan tentukan parameter ini.

  • Jika kueri berikutnya akan dikirim, atur nilainya ke nilai NextToken yang ditampilkan dari panggilan API terakhir.

dd20****

TransitRouterRouteTableType

string

No

Tipe tabel entri rute. Nilai valid:

  • Custom: tabel entri rute kustom.

  • System: tabel entri rute default.

Custom

TransitRouterId

string

No

ID Router transit Edisi Perusahaan.

tr-uf654ttymmljlvh2x****

TransitRouterRouteTableStatus

string

No

Status tabel entri rute. Nilai valid:

  • Creating: Tabel entri rute sedang dibuat.

  • Deleting: Tabel entri rute sedang dihapus.

  • Active: Tabel entri rute tersedia.

Active

TransitRouterRouteTableNames

array

No

Nama tabel entri rute.

Anda dapat mengkueri beberapa tabel entri rute dalam satu pengatur waktu. Nilai maksimum N adalah 20.

Catatan

Jika Anda mengkueri tabel entri rute menggunakan TransitRouterRouteTableNames.N dan TransitRouterRouteTableIds.N, pastikan nama dan ID-nya cocok.

testname

string

No

The name of the route table.

You can query multiple route tables at a time. The maximum value of N is 20.

Catatan

If you query route tables using both TransitRouterRouteTableNames.N and TransitRouterRouteTableIds.N, make sure that the names and IDs match.

testname

TransitRouterRouteTableIds

array

No

ID tabel entri rute.

Anda dapat mengkueri beberapa tabel entri rute dalam satu pengatur waktu. Nilai maksimum N adalah 20.

vtb-bp1l8awdb4iuo9uwu****

string

No

The ID of the route table.

You can query multiple route tables at a time. The maximum value of N is 20.

vtb-bp1dudbh2d5na6b50****

Tag

array<object>

No

Tag.

Anda dapat menentukan hingga 20 tag.

object

No

Key

string

No

The tag key.

The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot start with aliyun or acs:. It cannot contain http:// or https:// .

You can specify up to 20 tag keys.

test

Value

string

No

The tag value.

The tag value can be an empty string or a string of up to 128 characters. It cannot start with aliyun or acs:, and cannot contain http:// or https:// .

Each tag key must have a corresponding tag value. You can specify up to 20 tag values.

test

RouteTableOptions

object

No

Fitur tabel entri rute.

MultiRegionECMP

string

No

The multi-region equal-cost multi-path (ECMP) routing feature. Valid values:

  • disable: Disables multi-region ECMP routing. After this feature is disabled, for routes that are learned from different regions and have the same prefix and other attributes, the system selects the transit router with the smallest region ID as the next hop. Region IDs are sorted in alphabetical order. This changes the latency and bandwidth consumption between different regions. Make sure that you fully evaluate the impact before you disable the feature.

  • enable: Enables multi-region ECMP routing. After this feature is enabled, for routes that are learned from different regions and have the same prefix and other attributes, ECMP routing is formed. This changes the latency and bandwidth consumption between different regions. Make sure that you fully evaluate the impact before you enable the feature.

Valid values:

  • disable :

    disable

  • enable :

    enable

disable

Elemen respons

Element

Type

Description

Example

object

The response that was returned.

NextToken

string

The token that is used for the next query. Valid values:

  • If NextToken is empty, it indicates that no next query is to be sent.

  • If a value is returned for NextToken, the value is the token that is used for the next query.

dd20****

RequestId

string

The request ID.

82678F4A-C9F7-4CC1-8BF0-D619A63BFC57

TotalCount

integer

The total number of entries returned.

1

MaxResults

integer

The number of entries returned per page.

20

TransitRouterRouteTables

array<object>

The list of route tables.

array<object>

TransitRouterRouteTableStatus

string

The status of the route table.

  • Creating: The route table is being created.

  • Deleting: The route table is being deleted.

  • Active: The route table is available.

Active

TransitRouterRouteTableType

string

The type of the route table.

  • Custom: a custom route table.

  • System: the default route table.

System

CreateTime

string

The time when the route table was created.

The time is displayed in the YYYY-MM-DDThh:mmZ format in UTC.

2021-03-15T09:39Z

TransitRouterRouteTableId

string

The route table ID.

vtb-bp1dudbh2d5na6b50****

TransitRouterRouteTableName

string

The name of the route table.

testname

TransitRouterRouteTableDescription

string

The description of the route table.

testdesc

Tags

array<object>

The list of tags.

object

Key

string

The tag key.

test

Value

string

The tag value.

test

RouteTableOptions

object

The features of the route table.

MultiRegionECMP

string

The multi-region ECMP routing feature. Valid values:

  • disable: Disables multi-region ECMP routing. After this feature is disabled, for routes that are learned from different regions and have the same prefix and other attributes, the system selects the transit router with the smallest region ID as the next hop. Region IDs are sorted in alphabetical order. This changes the latency and bandwidth consumption between different regions. Make sure that you fully evaluate the impact before you disable the feature.

  • enable: Enables multi-region ECMP routing. After this feature is enabled, for routes that are learned from different regions and have the same prefix and other attributes, ECMP routing is formed. This changes the latency and bandwidth consumption between different regions. Make sure that you fully evaluate the impact before you enable the feature.

Valid values:

  • disable :

    disable

  • enable :

    enable

disable

RegionId

string

The ID of the region where the Enterprise Edition transit router is deployed.

cn-beijing

TransitRouterId

string

The ID of the transit router.

tr-8vb8bie2koduo5awz****

Contoh

Respons sukses

JSONformat

{
  "NextToken": "dd20****",
  "RequestId": "82678F4A-C9F7-4CC1-8BF0-D619A63BFC57",
  "TotalCount": 1,
  "MaxResults": 20,
  "TransitRouterRouteTables": [
    {
      "TransitRouterRouteTableStatus": "Active",
      "TransitRouterRouteTableType": "System",
      "CreateTime": "2021-03-15T09:39Z",
      "TransitRouterRouteTableId": "vtb-bp1dudbh2d5na6b50****",
      "TransitRouterRouteTableName": "testname",
      "TransitRouterRouteTableDescription": "testdesc",
      "Tags": [
        {
          "Key": "test",
          "Value": "test"
        }
      ],
      "RouteTableOptions": {
        "MultiRegionECMP": "disable"
      },
      "RegionId": "cn-beijing",
      "TransitRouterId": "tr-8vb8bie2koduo5awz****"
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 IllegalParam.NextToken NextToken is illegal The error message returned because the NextToken parameter is set to an invalid value.
400 InvalidTransitRouterId.NotFound TransitRouterId is not found. The error message returned because the ID of the transit router does not exist.
400 IllegalParam.TagValue The tag values are not valid. The error message returned because the specified tag value is invalid.
400 IllegalParam.TagKey The tag keys are not valid. The error message returned because the specified tag key is invalid.
400 MissingParam.TransitRouterIdOrTransitRouterRouteTables Either TransitRouterId or TransitRouterRouteTables must be specified. The error message returned because you must set at least one of the TransitRouterId and TransitRouterRouteTables parameters.
400 InvalidName Name is invalid. The error message returned because the specified name 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.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.