查詢負載均衡器例項轉發策略規則

更新時間:2018-07-19 13:49:47

查詢策略規則資訊。

請求引數

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

操作方法

Region String

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

Offset Integer

記錄偏移量,不指定取 0

Count Integer

記錄數量,不指定為全部

Id.N String

標識

PolicyId.N String

策略 ID

Enabled Boolean

是否啟用

返回引數

名稱 型別 說明
Action String 執行的操作
TaskId String 請求標識
TotalCount Integer 過濾條件下總共記錄數
LBPolicyRuleSet LBPolicyRule list 資訊列表

LBPolicyRule 節點

LBPolicyRule的資料型別

名稱 型別 說明
Id String ID
PolicyId String 策略 ID
Name String 名稱
Enabled Boolean 是否啟用
Type String 型別:MethodPathCookieHeader
Operator String 操作
CaseSensitive Boolean 是否對於大小寫敏感
Key String
Value String
Description String 描述
UserId String 所屬使用者ID

請求示例

http://api.chinac.com/?Action=DescribeLBPolicyRules
&Region=cn-wuxi
&<公共請求引數>

返回示例

{
    "code": 10000,
    "message": "",
    "data": {
        "TaskId": 8uo11520170510151841481",
        "Action": "DescribeLBPolicyRules",
        "TotalCount": 1,
        "LBPolicyRuleSet": [{
            "TotalCount": 0,
            "Id": "lbpr-m79ih4afik24t",
            "PolicyId": "lbp-dl9ih4afan49q",
            "Name": "0xqcg20170510151820",
            "Enabled": true,
            "Type": "Path",
            "Operator": "BeginWith",
            "CaseSensitive": true,
            "Key": null,
            "Value": "/index.html",
            "Description": null,
            "UserId": "18359229",
            "IdLong": "lbpr-m79ih4afik24t-ee2c7c8c-b472-4139-a9a2-8aeee885b220"
        }]
    }
}
*
*