Operasi ModifyRouteEntry digunakan untuk mengubah nama, deskripsi, dan lompatan berikutnya dari entri rute kustom.
Deskripsi operasi
Operasi ModifyRouteEntry tidak mendukung modifikasi konkuren terhadap nama dan deskripsi entri rute kustom yang sama.
Operasi ModifyRouteEntry dapat mengembalikan kode kesalahan TaskConflict dalam skenario konkuren. Ulangi operasi 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 dari entri rute. Anda dapat memanggil operasi DescribeRegions untuk menanyakan ID wilayah. |
cn-hangzhou |
| RouteEntryName |
string |
No |
Nama entri rute. Nama harus terdiri dari 1 hingga 128 karakter dan tidak boleh diawali dengan |
EntryName |
| RouteEntryId |
string |
No |
ID entri rute kustom. |
rte-acfvgfsghfdd**** |
| Description |
string |
No |
Deskripsi entri rute. Deskripsi harus terdiri dari 1 hingga 256 karakter dan tidak boleh diawali dengan |
EntryDescription |
| NewNextHopType |
string |
No |
Tipe lompatan berikutnya baru dari entri rute. Nilai yang valid:
Valid values:
|
NetworkInterface |
| NewNextHopId |
string |
No |
ID instans dari lompatan berikutnya baru entri rute. |
eni-bp17y37ytsenqyim**** |
| RouteTableId |
string |
No |
ID tabel rute. |
vtb-bp1nk7zk65du3pni8z9td |
| DestinationCidrBlock |
string |
No |
Blok CIDR IPv4 dari 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 prefix list, 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 |
Menentukan apakah akan melakukan dry run. Nilai yang valid: true: Melakukan dry run tanpa mengubah rute. Sistem memeriksa pasangan Kunci Akses, otorisasi pengguna Resource Access Management (RAM), dan parameter yang diperlukan. Jika pemeriksaan gagal, kesalahan yang sesuai dikembalikan. Jika pemeriksaan berhasil, kode kesalahan false (default): Mengirim permintaan normal. Jika pemeriksaan berhasil, kode status HTTP 2xx dikembalikan dan rute dimodifikasi. |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| 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 yang dikelola tidak dapat diubah. |
| 400 | OperationDenied.RouteTableTypeNotPermitted | The operation is not allowed because the type of route table is not permitted. | Tipe tabel rute yang ditentukan tidak memungkinkan Anda membuat entri rute. |
| 400 | MissingParam.NewNextHopId | The parameter NewNextHopId is mandatory. | ID instans lompatan berikutnya dari entri rute yang akan diubah hilang. |
| 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 NAT gateway reguler tidak mendukung pengubahan lompatan berikutnya. |
| 400 | UnsupportedFeature.NextHopType | The route type does not support modifying the next hop of the route. | Entri rute saat ini tidak mendukung pengubahan lompatan berikutnya. |
| 400 | InvalidRouteTable.NotFound | The specified routetable does not exist. | Instans tabel rute tidak ada. |
| 400 | InvalidNetworkInterface.NotFound | The specified network interface does not exist. | Antarmuka jaringan elastis (ENI) pada penyambungan tidak ada. |
| 400 | OperationDenied.NextHopExist | The operation is not allowed because the nexthop already exists. | Lompatan berikutnya target dari entri rute yang akan diubah sudah ada. |
| 400 | MissingParam.NewNextHopType | The parameter NewNextHopType is mandatory. | Tipe instans lompatan berikutnya dari entri rute yang akan diubah hilang. |
| 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 sebuah 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. | Instans vSwitch yang ditentukan tidak ada. |
| 400 | MissingParam.RouteEntryId | The param of %s is missing. | Parameter yang diperlukan tidak ada. |
| 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. | Lompatan berikutnya dari entri rute Local telah dimodifikasi. |
| 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 Anda mencoba memodifikasi lompatan berikutnya dari entri rute Local. |
| 400 | UnsupportedFeature.VpcAdvancedFeature | The VPC does not support some advanced features. | VPC tempat vSwitch yang ditentukan berada tidak mendukung fitur lanjutan. Gunakan vSwitch lain dan coba lagi. |
| 400 | UnsupportedRegion | The feature is not supported in current region. | Wilayah saat ini tidak mendukung operasi pada entri rute daftar awalan. |
| 400 | OperationFailed.NotSupportIPV6 | The specified next hop does not support IPv6. | Lompatan berikutnya yang ditentukan 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 modifikasi lompatan berikutnya untuk entri rute IPv6. |
| 400 | OperationDenied.NewNextHopNotSupportPublish | New nexthop is not supported for published route entry. | Entri rute sudah diterbitkan ke komponen lain. Tipe lompatan berikutnya yang ditentukan tidak mendukung penerbitan 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 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. | Permintaan kehilangan parameter yang diperlukan. Anda harus menyediakan RouteEntryId, atau kedua parameter RouteTableId dan DestinationCidrBlock. |
| 400 | MissingParam.ParameterMustNotNull | %s, %s. | Parameter yang diperlukan tidak ada. |
| 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 diubah terlebih dahulu 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 keadaan transien. |
| 400 | IncorrectStatus.Vswitch | The status of %s [%s] is incorrect. | |
| 400 | ResourceNotFound.Instance | The specified resource nextHop is not found. | Instans lompatan berikutnya tidak ada. |
| 400 | IncorrectStatus.NextHop | The status of %s [%s] is incorrect. | Sumber daya lompatan berikutnya yang ditentukan berada dalam keadaan transien. |
| 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 diubah. |
| 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 antarmuka jaringan elastis (ENI) umum untuk menyambungkan sebagai pengontrol antarmuka jaringan (NIC). |
| 400 | UnsupportedFeature.Ipv6GatewayRouteTable | The feature of %s is not supported. | Tabel rute gerbang yang ditentukan tidak mendukung pengikatan dengan instans gerbang ini. |
| 400 | OperationDenied.TrAttachmentIpv6Disabled | The operation is not allowed because tr attachment Ipv6 is disabled. | Lampiran TR tidak memiliki IPv6 yang diaktifkan. |
| 400 | InvalidAttachment.NotFound | The attachment is not found. | Penyambungan tidak ada. |
| 400 | OperationDenied.LocalRouteEntryInSystemRouteTable | The Local Route Entry In System Route Table Can Not Be Modify. | Mengubah entri rute Local di tabel rute sistem tidak diizinkan. |
| 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 tempat entri rute Local berada terkait dengan tabel rute saat ini. Mengubah lompatan berikutnya tidak diizinkan. |
| 400 | OperationFailed.ModifyEcmpRoute | Operation is failed because ecmp route can not modify. | Operasi gagal karena entri rute ECMP tidak mendukung modifikasi atribut seperti lompatan berikutnya. |
| 400 | InvalidRouteEntry.NotFound | vpc route entry not exist. | Entri rute tidak ada. Periksa apakah entri rute benar. |
| 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 bertipe gerbang NAT. |
| 400 | OperationUnsupported.Ipv6EntryOnPrimaryNetworkInterface | You cannot create IPv6 route entries on a primary network interface. | Pembuatan entri rute IPv6 dengan ENI primer sebagai lompatan berikutnya tidak diizinkan. |
| 400 | IncorrectStatus.Vpc | Vpc incorrect status. | Status instans saat ini tidak stabil. |
| 403 | Forbbiden | User not authorized to operate on the specified resource. | EIP bukan milik pemanggil saat ini. Periksa apakah Anda memiliki izin untuk mengakses EIP ini. |
| 404 | ResourceNotFound.NatGateway | The specific NAT gateway is not found. | Gateway NAT tidak ada. |
| 404 | ResourceNotFound.GatewayLoadBalancerEndpoint | GatewayLoadBalancerEndpoint instance not found. | Instans GatewayLoadBalancerEndpoint tidak ditemukan. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.