ModifyVpnPbrRouteEntryPriority 操作を呼び出して、ポリシーベースルートの優先度を変更します。
操作説明
- ModifyVpnPbrRouteEntryPriority 操作は非同期です。リクエストを送信すると、システムはリクエスト ID を返しますが、ポリシーベースルートはまだ変更されていません。変更タスクはバックグラウンドで実行中です。 DescribeVpnGateway 操作を呼び出して VPN ゲートウェイインスタンスのステータスをクエリし、ポリシーベースルートの変更ステータスを確認できます。
VPN ゲートウェイインスタンスが updating 状態の場合、ポリシーベースルートは変更中です。
VPN ゲートウェイインスタンスが アクティブな 状態の場合、ポリシーベースルートは変更済みです。
ModifyVpnPbrRouteEntryPriority 操作は、同じ VPN ゲートウェイインスタンスのポリシーベースルートの同時変更をサポートしていません。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:ModifyVpnPbrRouteEntryPriority |
update |
*VpnGateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
VPN ゲートウェイインスタンスのリージョン ID。 DescribeRegions 操作を呼び出して、リージョン ID をクエリできます。 |
cn-henyuan |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。ClientToken パラメーターは ASCII 文字のみをサポートしています。 説明
このパラメーターを指定しない場合、システムは API リクエストの RequestId を ClientToken として使用します。各 API リクエストの RequestId は異なります。 |
d7d24a21-f4ba-4454-9173-b3**** |
| VpnGatewayId |
string |
必須 |
VPN ゲートウェイインスタンスの ID。 |
vpn-bp1a3kqjiiq9legfx**** |
| RouteSource |
string |
必須 |
ポリシーベースルートのソース CIDR ブロック。 |
192.168.1.0/24 |
| RouteDest |
string |
必須 |
ポリシーベースルートの送信先 CIDR ブロック。 |
10.0.0.0/24 |
| NextHop |
string |
必須 |
ポリシーベースルートのネクストホップ。 |
vco-bp15oes1py4i66rmd**** |
| Priority |
integer |
任意 |
ポリシーベースルートの元の優先度。有効な値: 1 ~ 100。 値が小さいほど、優先度が高くなります。 |
5 |
| NewPriority |
integer |
必須 |
ポリシーベースルートの新しい優先度。有効な値: 1 ~ 100。 値が小さいほど、優先度が高くなります。 |
10 |
| Weight |
integer |
必須 |
ポリシーベースルートの重み。 |
100 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答パラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
5BE01CD7-5A50-472D-AC14-CA181C5C03BE |
例
成功レスポンス
JSONJSON
{
"RequestId": "5BE01CD7-5A50-472D-AC14-CA181C5C03BE"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. | |
| 400 | VpnRouteEntry.Conflict | The specified route entry has conflict. | |
| 400 | VpnPbrRouteEntryPriority.NotSupport | Current version of the VPN does not support setting pbr route entry priority. | |
| 400 | VpnRouteEntry.SamePriorityPbrRoutePrefixOverlap | The source CIDR and destination CIDR of Policy-based routes with the same priority cannot overlap. | |
| 400 | VpnRouteEntry.SrcDestConflict | The VPN gateway does not support Policy-based routing with the same source CIDR and destination CIDR. | |
| 400 | VpnRouteEntry.SrcDestWeightConflict | The VPN gateway does not support Policy-based routing with the same source CIDR, destination CIDR and weight. | |
| 400 | VpnPbrRouteEntry.NotSupport | Current version of the VPN does not support pbr route entry. | |
| 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. | |
| 404 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。