Modify Routing Policy - UpdateRoutePolicy
Overview
Modify Routing Policy
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is UpdateRoutePolicy . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API | Yes |
UGNID | string | UGN Instance ID | Yes |
Policy.PolicyId | string | Routing Policy ID | Yes |
Policy.Name | string | Policy Name, limited to 255 characters | No |
Policy.Direction | string | Policy direction, limited values: "In"/"Out | No |
Policy.Priority | int | Policy priority, range: [1,255], the smaller the value, the higher the priority. In the same direction, policy priorities cannot be duplicated. | No |
Policy.Action | string | Policy execution actions, restricted values: "Permit"/"Deny" | No |
Policy.RoutePriority | int | When the action is "Permit", set the routing priority for the matched routes, range: [1,255], with smaller values indicating higher priority. | No |
SrcRegions.N | string | The array of regions where the routes to be matched by the routing policy are located | No |
SrcNetworkTypes.N | string | The array of network instance types for routes that need to match the routing policy, limited to the value: "VPC | No |
SrcNetworks.N.NetworkId | string | Array of network instance IDs for the routing policy to match | No |
Prefixes.N | string | The array of network segments under the network instance of the route that needs to be matched by the routing policy | No |
DstNetworkTypes.N | string | Array of network instance types that the routing policy needs to apply to, limited to the value: "VPC | No |
DstNetworks.N.NetworkId | string | Array of network instance IDs that the routing policy needs to apply to | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Example
Request Example
https://api.surfercloud.com/?Action=UpdateRoutePolicy
&ProjectId=EQAZLuPL
&UGNID=SKPFqLiQ
&Policy.PolicyId=AVXBdPux
&Policy.Direction=ylmeXuIv
&Policy.Priority=2
&Policy.Action=uuvJNtOH
&Policy.RoutePriority=9
&Policy.SrcRegions.n=7
&Policy.SrcNetworkTypes.n=yuJrxWqH
&Policy.SrcNetworks.n.NetworkId=ZaNqcstG
&Policy.SrcNetworks.n.Prefixes.n=BNHNIAkv
&Policy.DstNetworkTypes.n=nYLLCpvL
&Policy.DstNetworks.n.NetworkId=FRfzTgwJ
&Policy.Name=KCQlOqzq
Response Example
{
"Action": "UpdateRoutePolicyResponse",
"Policies": [
{
"Action": "AwZDVVAZ",
"Direction": "aBjehwSB",
"DstNetworkTypes": [
"RAEkuDrc"
],
"DstNetworks": [
{
"NetworkId": "BemGsZrk",
"Prefixes": [
"xuWLesLI"
]
}
],
"Enabled": false,
"PolicyId": "CJnQwTDh",
"Priority": 3,
"Region": 3,
"RoutePriority": 8,
"SrcNetworkTypes": [
"ySwFhOIV"
],
"SrcNetworks": [
{
"NetworkId": "KZOyuKxH",
"Prefixes": [
"zAYqRNUG"
]
}
],
"SrcRegions": [
5
]
}
],
"RetCode": 0
}