更新内容转发规则-UpdatePolicy

更新内容转发规则,包括转发规则后的服务节点

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域Yes
ProjectIdstring项目IDYes
ULBIdstring需要添加内容转发策略的负载均衡实例IDYes
VServerIdstring需要添加内容转发策略的VServer实例IDYes
PolicyIdstring转发规则的IDYes
BackendId.nstring内容转发策略应用的后端资源实例的ID,来源于 AllocateBackend 返回的 BackendIdYes
Typestring内容转发匹配字段的类型No
Matchstring内容转发匹配字段Yes

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
PolicyIdstring转发规则的IDNo

Request Example

http(s)://api.ucloud.cn/?Action=UpdatePolicy
&Region=cn-bj2
&ProjectId=org-0axxmd
&PolicyId=0a074d02-b7c9-4a5d-9acf-414081f1b85f
&Match=ok
&ULBId=ulb-kix54p
&VServerId=vserver-9b646b
&BackendId.0=backend-67a442

Response Example

{
    "Action": "CreatePolicyResponse",
    "PolicyId": "0a074d02-b7c9-4a5d-9acf-414081f1b85f",
    "RetCode": 0
}