CreateVpnPbrRouteEntry
Description
call CreateVpnPbrRouteEntry to create VPN policy route.
Request Method
POST
Request Path
/apsara/route/Vpc/CreateVpnPbrRouteEntry
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RouteDest | BODY | string | Yes | 10.0.0.0/24 | the target network segment of the policy route. |
Description | BODY | string | No | vpnroute1 | description information of policy routing. |
NextHop | BODY | string | Yes | vco-bp15oes1py4i66rmd**** | the next hop of the policy route. |
version | BODY | string | No | 2016-01-01 | version of api |
Weight | BODY | integer | Yes | 0 | the weight value of the policy route, value: 0: low priority. 100: high priority. indicates policy routes for the same target network segment. it is not supported to set the weight value to 100 at the same time. |
OverlayMode | BODY | string | No | Ipsec | override mode. |
VpnGatewayId | BODY | string | Yes | vpn-bp1a3kqjiiq9legfx**** | VPN gateway ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RouteSource | BODY | string | Yes | 192.168.1.0/24 | the source network segment of the policy route. |
PublishVpc | BODY | boolean | Yes | true | whether to publish the policy route to VPC, value: true: the release policy is routed to the VPC. false: Do not publish policy routing to VPC. |
RegionId | BODY | string | Yes | cn-qingdao-env66-d01 | the region ID where the VPN policy route is located. You can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | d7d24a21-f4ba-4454-9173-b3828dae492b | client token, used to ensure the idempotence of the request. The parameter value is generated by the client. It must be unique between different requests, and the maximum value does not exceed 64 ASCII characters. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}