Operasi ModifyVpnPbrRouteEntryPriority digunakan untuk mengubah prioritas kebijakan dari entri rute berbasis kebijakan.
Deskripsi operasi
- ModifyVpnPbrRouteEntryPriority adalah operasi asinkron. Setelah permintaan dikirim, sistem akan mengembalikan ID permintaan, namun entri rute berbasis kebijakan belum dimodifikasi karena proses tersebut masih berjalan di latar belakang. Anda dapat memanggil operasi DescribeVpnGateway untuk memeriksa status instans Gateway VPN guna menentukan status modifikasi entri rute berbasis kebijakan:
Jika instans Gateway VPN berada dalam status updating, entri rute berbasis kebijakan sedang dalam proses modifikasi.
Jika instans Gateway VPN berada dalam status active, entri rute berbasis kebijakan telah berhasil dimodifikasi.
ModifyVpnPbrRouteEntryPriority tidak mendukung modifikasi konkuren terhadap entri rute berbasis kebijakan pada 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 dari instans Gateway VPN. Anda dapat memanggil operasi DescribeRegions untuk mengeksekusi ID wilayah. |
cn-henyuan |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat membuat token ini di sisi klien, tetapi harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token klien hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
d7d24a21-f4ba-4454-9173-b3**** |
| VpnGatewayId |
string |
Yes |
ID instans Gateway VPN. |
vpn-bp1a3kqjiiq9legfx**** |
| RouteSource |
string |
Yes |
Blok CIDR sumber dari rute berbasis kebijakan. |
192.168.1.0/24 |
| RouteDest |
string |
Yes |
Blok CIDR tujuan dari rute berbasis kebijakan. |
10.0.0.0/24 |
| NextHop |
string |
Yes |
Lompatan berikutnya dari rute berbasis kebijakan. |
vco-bp15oes1py4i66rmd**** |
| Priority |
integer |
No |
Prioritas kebijakan awal dari entri rute berbasis kebijakan. Nilai yang valid: 1 hingga 100. Nilai yang lebih kecil menunjukkan prioritas kebijakan yang lebih tinggi untuk entri rute tersebut. |
5 |
| NewPriority |
integer |
Yes |
Prioritas kebijakan baru dari entri rute berbasis kebijakan. Nilai yang valid: 1 hingga 100. Nilai yang lebih kecil menunjukkan prioritas kebijakan yang lebih tinggi untuk entri rute tersebut. |
10 |
| Weight |
integer |
Yes |
Bobot dari rute berbasis kebijakan. |
100 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| 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. | Pool IP klien yang ditentukan berkonflik dengan koneksi VPN atau server SSL. |
| 400 | VpnPbrRouteEntryPriority.NotSupport | Current version of the VPN does not support setting pbr route entry priority. | Versi saat ini dari Gateway VPN tidak mendukung pengaturan prioritas entri rute berbasis kebijakan. |
| 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 dengan prioritas yang sama yang memiliki blok CIDR sumber dan tujuan yang tumpang tindih. |
| 400 | VpnRouteEntry.SrcDestConflict | The VPN gateway does not support Policy-based routing with the same source CIDR and destination CIDR. | Gateway VPN dengan dua saluran data tidak mendukung konfigurasi entri rute berbasis kebijakan dengan blok CIDR sumber dan tujuan yang identik. |
| 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 konfigurasi entri rute berbasis kebijakan dengan blok CIDR sumber, blok CIDR tujuan, dan bobot yang identik. |
| 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. | EIP bukan milik pemanggil saat ini. Periksa apakah Anda memiliki izin untuk mengakses EIP ini. |
| 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 berbasis kebijakan yang ditentukan tidak ada. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.