Mengubah nama, deskripsi, dan lompatan berikutnya dari entri rute kustom.
Deskripsi operasi
Operasi ModifyRouteEntry tidak mendukung modifikasi konkuren pada nama dan deskripsi entri rute kustom yang sama.
Operasi ModifyRouteEntry dapat mengembalikan kode kesalahan TaskConflict dalam skenario konkuren. Lakukan percobaan ulang jika diperlukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyRouteEntry |
update |
*RouteTable
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah entri rute. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| RouteEntryName |
string |
No |
Nama entri rute. Panjang nama harus 1 hingga 128 karakter dan tidak boleh dimulai dengan |
EntryName |
| RouteEntryId |
string |
No |
ID entri rute kustom. |
rte-acfvgfsghfdd**** |
| Description |
string |
No |
Deskripsi entri rute. Panjang deskripsi harus 1 hingga 256 karakter dan tidak boleh dimulai dengan |
EntryDescription |
| NewNextHopType |
string |
No |
Tipe lompatan berikutnya baru dari entri rute. Nilai valid:
Valid values:
|
NetworkInterface |
| NewNextHopId |
string |
No |
ID instans lompatan berikutnya baru dari entri rute. |
eni-bp17y37ytsenqyim**** |
| RouteTableId |
string |
No |
ID tabel entri rute. |
vtb-bp1nk7zk65du3pni8z9td |
| DestinationCidrBlock |
string |
No |
Blok CIDR IPv4 entri rute. Blok CIDR IPv4 dan IPv6 didukung. Catatan
Jika parameter RouteEntryId tidak ditentukan, parameter DestinationCidrBlock dan RouteTableId wajib diisi. Untuk mengubah blok CIDR IPv4 rute menjadi daftar awalan, Anda harus menentukan parameter RouteEntryId. Parameter DestinationCidrBlock tidak mendukung blok CIDR daftar awalan atau ID instans daftar awalan. |
192.168.0.0/24 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid: true: Menjalankan dry run tanpa memodifikasi entri rute. Sistem memeriksa apakah Pasangan Kunci Akses valid, apakah pengguna Resource Access Management (RAM) memiliki otorisasi yang diperlukan, dan apakah parameter yang diperlukan telah ditentukan. Jika pemeriksaan gagal, error yang sesuai akan dikembalikan. Jika pemeriksaan berhasil, kode kesalahan false (default): Mengirim permintaan normal. Jika pemeriksaan berhasil, kode status HTTP 2xx akan dikembalikan dan entri rute dimodifikasi. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
861E6630-AEC0-4B2D-B214-6CB5E44B7F04 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "861E6630-AEC0-4B2D-B214-6CB5E44B7F04"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRouteEntryId.NotFound | Specified RouteEntryId does not exist. | Entri rute yang ditentukan tidak ada. |
| 400 | InvalidRouteEntryName.Malformed | Specified RouteEntry name is not valid. | Modifikasi gagal karena nama entri rute yang ditentukan tidak valid. |
| 400 | OperationDenied.ModifyManagedRouteEntry | The operation is not allowed because of route entry is managed. | Entri rute terkelola tidak dapat diubah. |
| 400 | OperationDenied.RouteTableTypeNotPermitted | The operation is not allowed because the type of route table is not permitted. | Pembuatan entri rute di tipe tabel rute yang ditentukan tidak diizinkan. |
| 400 | MissingParam.NewNextHopId | The parameter NewNextHopId is mandatory. | ID instans lompatan berikutnya dari entri rute yang akan dimodifikasi tidak ada. |
| 400 | IllegealParam.NextHopType | The parameter NewNextHopType is illegal. | Tipe lompatan berikutnya dari entri rute tidak valid. |
| 400 | UnsupportedFeature.NormalTypeNatGateway | Normal nat gateways do not support modifying the next hop of the route. | Entri rute yang mengarah ke gateway NAT Jenis Penyimpanan Standar tidak mendukung pengubahan lompatan berikutnya. |
| 400 | UnsupportedFeature.NextHopType | The route type does not support modifying the next hop of the route. | Operasi tidak diizinkan karena tipe lompatan berikutnya entri rute diubah dari tipe Local. |
| 400 | InvalidRouteTable.NotFound | The specified routetable does not exist. | Tabel rute yang ditentukan tidak ditemukan. |
| 400 | InvalidNetworkInterface.NotFound | The specified network interface does not exist. | ID instans lompatan berikutnya untuk tipe ENI yang ditentukan tidak ada. |
| 400 | OperationDenied.NextHopExist | The operation is not allowed because the nexthop already exists. | Lompatan berikutnya dari entri rute target yang ingin Anda ubah sudah ada. |
| 400 | MissingParam.NewNextHopType | The parameter NewNextHopType is mandatory. | Tipe instans lompatan berikutnya dari entri rute yang akan dimodifikasi tidak ada. |
| 400 | UnsupportedFeature.ModifyRouteEntryNextHop | The current region does not support the function of modifying the route next hop. | Wilayah saat ini tidak mendukung pengubahan lompatan berikutnya dari entri rute. |
| 400 | IncorrectRouteEntryStatus | Some route entry status blocked this operation. | |
| 400 | ResourceNotFound.VSwitch | The vSwitch where the specified networkinterface is located does not exist. | vSwitch yang terkait dengan pengontrol antarmuka jaringan (NIC) tidak ada. |
| 400 | MissingParam.RouteEntryId | The param of %s is missing. | Parameter yang diperlukan hilang. |
| 400 | IllegalParam.RouteEntryName | The param of %s is illegal. | Nama entri rute yang ditentukan tidak valid. |
| 400 | OperationDenied.LocalRouteEntryModified | The next hop of a local route is modified. | Saat memodifikasi lompatan berikutnya dari entri rute lokal di tabel rute kustom, blok CIDR tujuan dari entri rute lokal sama dengan blok CIDR dari vSwitch yang terikat ke tabel rute. |
| 400 | OperationDenied.IllegalNewNextHopType | When modifying the next hop of a route of the local type, a new next hop type that is not supported is passed in. | Tipe lompatan berikutnya yang tidak didukung ditentukan saat memodifikasi lompatan berikutnya dari entri rute lokal. |
| 400 | UnsupportedFeature.VpcAdvancedFeature | The VPC does not support some advanced features. | VPC tidak mendukung beberapa fitur lanjutan. Kirim tiket untuk bantuan. |
| 400 | UnsupportedRegion | The feature is not supported in current region. | Wilayah saat ini tidak mendukung fitur ini. |
| 400 | OperationFailed.NotSupportIPV6 | The specified next hop does not support IPv6. | Antarmuka router tidak mendukung IPv6. |
| 400 | UnsupportedFeature.ModifyIpv6RouteEntryNextHop | The current region does not support the feature of modifying the IPv6 route next hop. | Operasi gagal karena wilayah saat ini tidak mendukung pengubahan lompatan berikutnya dari entri rute IPv6. |
| 400 | OperationDenied.NewNextHopNotSupportPublish | New nexthop is not supported for published route entry. | Entri rute telah dipublikasikan ke komponen lain. Tipe lompatan berikutnya yang ditentukan tidak mendukung pengumuman rute. |
| 400 | IllegalParam.DestCidrBlock | The destCidrBlock is invalid. | Alamat tujuan yang ditentukan tidak valid. |
| 400 | IllegalParamFormat.DstCidrBlock | The format of the specified destination CIDR block is invalid. | Format parameter blok CIDR tujuan tidak valid. |
| 400 | MissingParam.RouteEntryIdOrRouteTableDstCidr | The request is missing required parameters. You must provide either the RouteEntryId or the combination of RouteTableId and DestinationCidrBlock to proceed. Please ensure that one of these parameter sets is included in your request. | Parameter yang diperlukan tidak ada. Anda harus menyediakan RouteEntryId, atau kedua parameter RouteTableId dan DestinationCidrBlock. |
| 400 | MissingParam.ParameterMustNotNull | %s, %s. | Parameter yang diperlukan hilang. |
| 400 | ResourceNotFound.RouteTable | The specified resource gatewayRouteTable is not found. | Tabel rute gerbang tidak ada. |
| 400 | OperationDenied.UpdateGatewayRouteEntry | The operation is not allowed because of need switch to local first. | Gagal memodifikasi entri rute gerbang. Lompatan berikutnya harus terlebih dahulu diubah menjadi rute lokal sebelum lompatan berikutnya kustom dapat ditentukan. |
| 400 | ResourceNotFound.RouteEntry | The specified resource routeEntry is not found. | Entri rute yang ditentukan tidak ada. |
| 400 | IncorrectStatus.RouteEntry | The status of %s [%s] is incorrect. | Entri rute berada dalam status sementara. |
| 400 | IncorrectStatus.Vswitch | The status of %s [%s] is incorrect. | |
| 400 | ResourceNotFound.Instance | The specified resource nextHop is not found. | Sumber daya yang dapat diikat tidak ada. |
| 400 | IncorrectStatus.NextHop | The status of %s [%s] is incorrect. | Sumber daya lompatan berikutnya yang ditentukan berada dalam status sementara. |
| 400 | OperationDenied.NextHopTypeNonsupport | The operation is not allowed because of nextHopType is nonsupport. | Tipe Sumber daya yang ditentukan tidak didukung sebagai lompatan berikutnya. |
| 400 | OperationDenied.LocalEntryCanOnlyModifyNextHop | Only the nextHop parameter can be modified for a local route entry. | Hanya atribut lompatan berikutnya dari entri rute lokal yang dapat dimodifikasi. |
| 400 | ExclusiveParam.NextHopTypeAndNextHopId | The param of nextHopType and nextHopId are mutually exclusive. | Tipe lompatan berikutnya tidak cocok dengan instans lompatan berikutnya. |
| 400 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our record. | |
| 400 | OperationUnsupported.OnlySupportNormalNetworkInterface | Next hop only supports binding normal network Interface. | Lompatan berikutnya hanya mendukung standard elastic network interfaces (ENI) yang disambungkan sebagai antarmuka jaringan. |
| 400 | UnsupportedFeature.Ipv6GatewayRouteTable | The feature of %s is not supported. | Tabel rute gerbang yang ditentukan tidak mendukung pengikatan ke instans gerbang ini. |
| 400 | OperationDenied.TrAttachmentIpv6Disabled | The operation is not allowed because tr attachment Ipv6 is disabled. | Lampiran TR tidak mengaktifkan IPv6. |
| 400 | InvalidAttachment.NotFound | The attachment is not found. | Koneksi tidak ada. |
| 400 | OperationDenied.LocalRouteEntryInSystemRouteTable | The Local Route Entry In System Route Table Can Not Be Modify. | Memodifikasi entri rute lokal di tabel rute sistem dilarang. |
| 400 | OperationDenied.LocalRouteEntryBoundToVSwitch | The VSwitch to which the local route you modified belongs is bound to the current routing table. You are not allowed to modify its next hop. | vSwitch yang dikaitkan dengan entri rute lokal yang Anda modifikasi terikat ke tabel rute saat ini. Memodifikasi lompatan berikutnya dilarang. |
| 400 | OperationFailed.ModifyEcmpRoute | Operation is failed because ecmp route can not modify. | |
| 400 | InvalidRouteEntry.NotFound | vpc route entry not exist. | Entri rute tabel rute VPC tidak ada. |
| 400 | OperationDenied.IllegalRouteTargetGroupMemberType | This operation does not support route target groups with NAT gateway members. | Operasi saat ini tidak mendukung kelompok target entri rute dengan anggota tipe gerbang NAT. |
| 400 | OperationUnsupported.Ipv6EntryOnPrimaryNetworkInterface | You cannot create IPv6 route entries on a primary network interface. | Pembuatan rute IPv6 dengan ENI primer sebagai lompatan berikutnya tidak diizinkan. |
| 400 | IncorrectStatus.Vpc | Vpc incorrect status. | VPC yang ditentukan tidak berada dalam status stabil. |
| 403 | Forbbiden | User not authorized to operate on the specified resource. | Pengguna tidak memiliki izin untuk mengoperasikan sumber daya yang ditentukan. |
| 404 | ResourceNotFound.NatGateway | The specific NAT gateway is not found. | Sumber daya gerbang NAT yang ditentukan tidak ditemukan saat membuat atau mengubah kelompok target entri rute. |
| 404 | ResourceNotFound.GatewayLoadBalancerEndpoint | GatewayLoadBalancerEndpoint instance not found. | Instans GatewayLoadBalancerEndpoint tidak dapat ditemukan. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.