Panggil DescribeEnsRouteEntryList untuk meminta daftar entri rute.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeEnsRouteEntryList |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RouteTableId |
string |
No |
ID tabel rute yang akan ditanyakan. |
vtb-hp3wdhynneo7fsclox8hs |
| RouteEntryId |
string |
No |
ID entri rute yang akan ditanyakan. |
rte-8vbdw66evgv44u2u7v3hx |
| DestinationCidrBlock |
string |
No |
Blok CIDR tujuan dari entri rute. |
11.0.0.0/16 |
| RouteEntryType |
string |
No |
Tipe entri rute. Nilai yang valid:
|
Custom |
| NextHopType |
string |
No |
Tipe hop berikutnya untuk entri rute kustom. Nilai yang valid:
|
Instance |
| NextHopId |
string |
No |
ID instans hop berikutnya. |
i-2zecshuv3axtr2gc4noa |
| RouteEntryName |
string |
No |
Nama entri rute. |
test0 |
| PageNumber |
integer |
No |
Nomor halaman daftar yang akan ditanyakan. Nilai yang valid: >0. Default: halaman 1. |
1 |
| PageSize |
integer |
No |
Jumlah baris per halaman yang ditetapkan untuk kueri paginasi. Default: 10. Nilai yang valid: 10 hingga 100. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| RouteEntrys |
array<object> |
Informasi tentang entri rute. |
|
|
array<object> |
Informasi tentang entri rute. |
||
| Status |
string |
Status entri rute. |
Available |
| Type |
string |
Tipe entri rute. |
Custom |
| Description |
string |
Deskripsi entri rute. |
测试 |
| RouteEntryName |
string |
Nama entri rute. |
test0 |
| DestinationCidrBlock |
string |
Blok CIDR tujuan dari entri rute. |
101.0.45.0/24 |
| RouteEntryId |
string |
ID entri rute. |
rte-2zeksx7h436f5unk349m1 |
| RouteTableId |
string |
ID tabel rute. |
vtb-uf62p9o5cn35fi8xgurnm |
| NextHops |
array<object> |
Informasi tentang hop berikutnya. |
|
|
object |
Hop berikutnya. |
||
| NextHopId |
string |
The ID of the next hop. |
i-bp1111yup9991890woxq |
| NextHopType |
string |
The type of the next hop. Valid values: |
Instance |
| NextHopName |
string |
The instance ID of the next hop. |
testInstance |
| SourceCidrBlock |
string |
Blok CIDR sumber. Digunakan saat mengonfigurasi entri rute di tabel rute gateway. Tidak didukung di tabel rute vSwitch. |
10.XXX.XXX.0/24 |
| CreationTime |
string |
Waktu pembuatan, dalam UTC. |
2023-02-16T03:50:05Z |
| PageNumber |
integer |
Nomor halaman kueri saat ini. |
1 |
| PageSize |
integer |
Jumlah baris per halaman untuk kueri paginasi. |
10 |
| TotalCount |
integer |
Jumlah total item dalam daftar. |
7 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"RouteEntrys": [
{
"Status": "Available",
"Type": "Custom",
"Description": "测试",
"RouteEntryName": "test0",
"DestinationCidrBlock": "101.0.45.0/24",
"RouteEntryId": "rte-2zeksx7h436f5unk349m1",
"RouteTableId": "vtb-uf62p9o5cn35fi8xgurnm",
"NextHops": [
{
"NextHopId": "i-bp1111yup9991890woxq",
"NextHopType": "Instance",
"NextHopName": "testInstance"
}
],
"SourceCidrBlock": "10.XXX.XXX.0/24",
"CreationTime": "2023-02-16T03:50:05Z"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 7
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | ens.interface.error | Failed to call API. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.