Memanggil CreateEnsRouteEntry untuk membuat entri rute kustom.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateEnsRouteEntry |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RouteTableId |
string |
Yes |
ID tabel rute tempat Anda ingin membuat entri rute kustom. |
vtb-bp1cifr72dioje82lse2j |
| DestinationCidrBlock |
string |
Yes |
Blok CIDR tujuan dari entri rute kustom. Persyaratan berikut harus dipenuhi:
|
120.XXX.XXX.0/24 |
| NextHopType |
string |
No |
Tipe next hop dari entri rute kustom. Nilai yang valid:
|
Instance |
| NextHopId |
string |
Yes |
ID instans next hop dari entri rute kustom. |
i-5vb7leks9z4mxy1ay258 |
| RouteEntryName |
string |
No |
Nama entri rute kustom yang akan dibuat. Nama harus memiliki panjang 1 hingga 128 karakter dan tidak boleh dimulai dengan http:// atau https://. |
test |
| Description |
string |
No |
Deskripsi entri rute kustom. |
example |
| SourceCidrBlock |
string |
No |
Blok CIDR sumber. Parameter ini tersedia ketika Anda mengonfigurasi entri rute untuk tabel rute gateway, tetapi tidak didukung ketika Anda mengonfigurasi entri rute untuk tabel rute vSwitch. |
172.XXX.XXX.0/24 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| RouteEntryId |
string |
ID entri rute. |
rte-5vb5q8sk0lyoscx8539ds |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"RouteEntryId": "rte-5vb5q8sk0lyoscx8539ds"
}
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 | InvalidRouteTableId.NotFound | Specified route table does not exist. | |
| 400 | IncorrectStatus.Network | The status of the network is incorrect. | |
| 400 | InvalidNetworkType.NotSupported | The specified network type does not supported. | |
| 400 | QuotaExceeded | Route entry quota exceeded in this route table. | |
| 400 | InvalidRouteEntry.Duplicate | The route entry already exists. | |
| 400 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 400 | InvalidCidrBlock.Malformed | Specified CIDR block is not valid. | |
| 400 | InvalidSourceCidrBlock.Malformed | Specified Source CIDR Block is not valid. | |
| 400 | InvalidSourceCidrBlock.NotSupported | The route table does not support the source CIDR block parameter. | |
| 400 | InvalidNextHopType.NotSupported | This next hop type is not supported. | |
| 400 | HaVipNotFound | The input parameter haVipId that is not found. | |
| 400 | IncorrectHaVipStatus | The status of the haVip is invalid. | |
| 400 | InstanceNotFound.NetworkPeerConnection | Network peer connection not found, please check the InstanceId. | |
| 400 | IncorrectStatus.NetworkPeerConnection | The status of the network peer connection is incorrect. | |
| 400 | IncorrectNetworkInterfaceStatus | The operation could not be completed because the status of the specified network interface is invalid for this action. | |
| 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.