Mengubah prioritas entri rute berbasis kebijakan VPN.
Deskripsi operasi
- Operasi ModifyVpnPbrRouteEntryPriority bersifat asinkron. Sistem mengembalikan ID permintaan, tetapi perutean berbasis kebijakan belum diubah. Node modifikasi masih berjalan di latar belakang. Anda dapat memanggil operasi DescribeVpnGateway untuk mengkueri status instans Gateway VPN dan menentukan status modifikasi perutean berbasis kebijakan:
Jika instans Gateway VPN berada dalam status updating, perutean berbasis kebijakan sedang dimodifikasi.
Jika instans Gateway VPN berada dalam status active, perutean berbasis kebijakan telah dimodifikasi.
Operasi ModifyVpnPbrRouteEntryPriority tidak mendukung modifikasi konkuren perutean berbasis kebijakan di bawah instans Gateway VPN yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ModifyVpnPbrRouteEntryPriority |
update |
*VpnGateway.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans Gateway VPN. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-henyuan |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilai, dan Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. Token klien hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId dari setiap permintaan API bersifat unik. |
d7d24a21-f4ba-4454-9173-b3**** |
| VpnGatewayId |
string |
Yes |
ID instans Gateway VPN. |
vpn-bp1a3kqjiiq9legfx**** |
| RouteSource |
string |
Yes |
Blok CIDR sumber entri rute berbasis kebijakan. |
192.168.1.0/24 |
| RouteDest |
string |
Yes |
Blok CIDR tujuan entri rute berbasis kebijakan. |
10.0.0.0/24 |
| NextHop |
string |
Yes |
Lompatan berikutnya entri rute berbasis kebijakan. |
vco-bp15oes1py4i66rmd**** |
| Priority |
integer |
No |
Prioritas kebijakan asli perutean berbasis kebijakan. Nilai valid: 1 hingga 100. Nilai yang lebih kecil menunjukkan prioritas yang lebih tinggi. |
5 |
| NewPriority |
integer |
Yes |
Prioritas kebijakan baru perutean berbasis kebijakan. Nilai valid: 1 hingga 100. Nilai yang lebih kecil menunjukkan prioritas yang lebih tinggi. |
10 |
| Weight |
integer |
Yes |
Bobot entri rute berbasis kebijakan. |
100 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
5BE01CD7-5A50-472D-AC14-CA181C5C03BE |
Contoh
Respons sukses
JSONformat
{
"RequestId": "5BE01CD7-5A50-472D-AC14-CA181C5C03BE"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Resource.QuotaFull | The quota of resource is full | |
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | VpnGateway.FinancialLocked | The specified service is financial locked. | |
| 400 | VpnRouteEntry.AlreadyExists | The specified route entry is already exist. | Entri rute sudah ada. |
| 400 | VpnRouteEntry.Conflict | The specified route entry has conflict. | Terdapat konflik entri rute. |
| 400 | VpnPbrRouteEntryPriority.NotSupport | Current version of the VPN does not support setting pbr route entry priority. | Versi Gateway VPN saat ini tidak mendukung fitur Prioritas rute. |
| 400 | VpnRouteEntry.SamePriorityPbrRoutePrefixOverlap | The source CIDR and destination CIDR of Policy-based routes with the same priority cannot overlap. | Gateway VPN tidak mendukung beberapa entri rute berbasis kebijakan pada prioritas yang sama yang memiliki blok CIDR sumber dan tujuan yang tumpang tindih secara bersamaan. |
| 400 | VpnRouteEntry.SrcDestConflict | The VPN gateway does not support Policy-based routing with the same source CIDR and destination CIDR. | Gateway VPN tipe dual-saluran data tidak mendukung entri rute berbasis kebijakan yang memiliki blok CIDR sumber dan blok CIDR tujuan yang sama. |
| 400 | VpnRouteEntry.SrcDestWeightConflict | The VPN gateway does not support Policy-based routing with the same source CIDR, destination CIDR and weight. | Gateway VPN tidak mendukung entri rute berbasis kebijakan yang memiliki blok CIDR sumber, blok CIDR tujuan, dan bobot yang sama. |
| 400 | VpnPbrRouteEntry.NotSupport | Current version of the VPN does not support pbr route entry. | Instans VPN saat ini tidak mendukung perutean berbasis kebijakan. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | Anda tidak memiliki izin untuk melakukan operasi pada sumber daya yang ditentukan. Ajukan izin yang diperlukan dan coba lagi. |
| 404 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | |
| 404 | InvalidPbrRouteEntry.NotFound | The specified PBR route entry does not exist. | Entri rute kebijakan yang ditentukan tidak ada. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.