Menghapus entri rute berbasis kebijakan.
Deskripsi operasi
- Operasi DeleteVpnPbrRouteEntry bersifat asinkron. Sistem mengembalikan ID permintaan, tetapi perutean berbasis kebijakan tidak langsung dihapus. Node penghapusan berlanjut di latar belakang. Anda dapat memanggil operasi DescribeVpnGateway untuk mengkueri status instans Gateway VPN dan menentukan status penghapusan perutean berbasis kebijakan:
Jika instans Gateway VPN berada dalam status updating, perutean berbasis kebijakan sedang dihapus.
Jika instans Gateway VPN berada dalam status active, perutean berbasis kebijakan telah dihapus.
Operasi DeleteVpnPbrRouteEntry tidak mendukung penghapusan konkuren perutean berbasis kebijakan pada instans Gateway VPN yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteVpnPbrRouteEntry |
delete |
*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-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Buat nilai untuk parameter ini di klien Anda untuk memastikan nilai tersebut unik di berbagai permintaan. Token klien hanya mendukung karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId setiap permintaan API berbeda. |
123e4567-e89b-12d3-a456-4266**** |
| 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**** |
| Weight |
integer |
Yes |
Bobot entri rute berbasis kebijakan. Anda dapat memanggil operasi DescribeVpnPbrRouteEntries untuk mengkueri Bobot entri rute berbasis kebijakan. |
0 |
| OverlayMode |
string |
No |
Protokol teknik tunneling. Nilai valid: Ipsec (Terowongan IPsec). |
Ipsec |
| Priority |
integer |
No |
Prioritas kebijakan rute berbasis kebijakan.
|
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil yang dikembalikan. |
||
| 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 | VpnRouteEntry.Configuring | The specified route entry is configuring. | Entri rute yang ditentukan sedang dikonfigurasi. |
| 400 | InvalidRouteEntry.NotFound | The specified route entry does not exist. | Entri rute yang ditentukan tidak ada. Periksa apakah entri rute sudah benar. |
| 400 | TaskConflict | The operation is too frequent, please wait a moment and try again. | Operasi EIP terlalu sering. |
| 400 | VpnTask.CONFLICT | Vpn task has conflict. | Terjadi konflik operasi VPN. Coba lagi nanti. |
| 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.