文档中心 > ModifyPolicyRule
ModifyPolicyRule

最近更新时间:2021-12-28

请求方法:PUT

接口描述:修改转发策略规则


请求参数

路径参数

参数名称

类型

是否必须

备注

Action

string

是

要执行的操作   ModifyPolicyRule。

RegionId

string

是

节点ID。

Body

参数名称

类型

是否必须

备注

MatchingValue

string

是

匹配值。

MatchingType

string

是

匹配类型。

MatchingKey

string

是

匹配项。

L7Type

string

是

类型。

L7PolicyId

string

是

策略ID。

Id

string

是

规则ID。


返回参数

参数名称

类型

备注

Code

string

请求结果编码。

Msg

string

请求结果信息。

RequestId

string

请求ID。


示例

请求示例

PUT https://api.unicloud.com/networks/slb?Action=ModifyPolicyRule

&RegionId=HB1-BJMY

&公共请求参数

Body


{

  "L7PolicyId":"796c0d5f12344b1181e1e45bca211ddf",

  "L7Type":"PATH_REG",

  "MatchingKey":"",

  "MatchingType":"CONTAINS",

  "MatchingValue":"unicloud.com"

}

返回示例

{

  "RequestId": "xxxxx",

  "Msg": "修改转发策略规则成功",

  "Code": "Network.Success"

}