建立負載均衡器例項轉發策略規則

更新時間:2018-07-23 16:42:45

建立監聽器策略規則。

Operator值說明:
運算子 說明
BeginWith 字串,以...開頭
EndWith 字串,以...結束
EqualToStr 字串,等於
Contain 字串,包含
RegExp 字串,匹配正則表示式
EqualToInt 數字,等於
GreaterThan 數字,大於
LessThan 數字,小於
Range 數字,範圍,格式 num1|num2

請求引數

引數名引數型別是否必填引數說明
Action String

操作方法

Region String

機房標識,取值參見地域列表

PolicyId String

策略標識

Enabled String

是否啟用

Type String

型別:MethodPathCookieHeader

Operator String

操作

Value String

Name String

名稱

CaseSensitive String

是否對於大小寫敏感

Key String

Description String

描述

返回引數

名稱 型別 說明
Action String 執行的操作
TaskId String 請求標識
LBPolicyId String 策略 ID

請求示例

{
    "code": 10000,
    "message": "",
    "data": http://api.chinac.com/?Action=CreateLBPolicyRule
    &Region=cn-wuxi
    &PolicyId=lbp-adfafdsd
    &Name=adad
    &Enabled=true
    &Type=Method
    &Operator=BeginWith
    &Value=a
    &<公共請求引數>
}
*
*
*
*
*
*
*