池子dlbv3

池子可定制容器配置负载平衡器以具体说明后端设备(节点)管理网络流量每一池可含零节点或更多节点,称为池成员可绑定池数虚拟服务器

使用下列操作查看和管理池

取回池

取回当前负载平衡器中创建的所有池的信息

Get/po

操作不接受请求体

响应

{     "data": [         {             "id": "POOL-127.0.0.1-80",             "allowNat": "yes",             "allowSnat": "yes",             "appService": null,             "gatewayFailsafeDevice": null,             "ignorePersistedWeight": "disabled",             "ipTosToClient": "pass-through",             "ipTosToServer": "pass-through",             "linkQosToClient": "pass-through",             "linkQosToServer": "pass-through",             "loadBalancingMode": "round-robin",             "metadata": [],             "minActiveMembers": 0,             "minUpMembers": 0,             "minUpMembersAction": "failover",             "minUpMembersChecking": "disabled",             "partition": "Common",             "profiles": null,             "queueDepthLimit": 0,             "queueOnConnectionLimit": "disabled",             "queueTimeLimit": 0,             "reselectTries": 0,             "serviceDownAction": null,             "slowRampTime": 10,             "description": null,             "members": {},             "monitorRule": {}         }     ] }

取回池统计

取回负载平衡器内所有关联池统计

Get/pool/stats

操作不接受请求体

响应

取回数据库列表

{   "data": [     {       "id": "POOL-127.0.0.1-80",       "activeMemberCnt": 1,       "connq": {         "ageEdm": 0,         "ageEma": 0,         "ageHead": 0,         "ageMax": 0,         "depth": 0,         "serviced": 0       },       "connqAll": {         "ageEdm": 0,         "ageEma": 0,         "ageHead": 0,         "ageMax": 0,         "depth": 0,         "serviced": 0       },       "curSessions": 0,       "minActiveMembers": 0,       "monitorRule": {         "monitors": [           "MON-TCP-80"         ],         "minimum": "all"       },       "name": "POOL-127.0.0.1-80",       "totRequests": 0,       "serverside": {         "bitsIn": 0,         "bitsOut": 0,         "curConns": 0,         "maxConns": 0,         "pktsIn": 0,         "pktsOut": 0,         "totConns": 0       },       "status": {         "availabilityState": "available",         "enabledState": "enabled",         "statusReason": "The pool is available"       }     }   ] }

通过ID取回池

使用池号检索指定池的信息取水池运维

获取/pools/{apolId}

操作不接受请求体

响应

取回指定的池

{     "data": [         {             "id": "POOL-127.0.0.1-80",             "allowNat": "yes",             "allowSnat": "yes",             "appService": null,             "gatewayFailsafeDevice": null,             "ignorePersistedWeight": "disabled",             "ipTosToClient": "pass-through",             "ipTosToServer": "pass-through",             "linkQosToClient": "pass-through",             "linkQosToServer": "pass-through",             "loadBalancingMode": "round-robin",             "metadata": [],             "minActiveMembers": 0,             "minUpMembers": 0,             "minUpMembersAction": "failover",             "minUpMembersChecking": "disabled",             "partition": "Common",             "profiles": null,             "queueDepthLimit": 0,             "queueOnConnectionLimit": "disabled",             "queueTimeLimit": 0,             "reselectTries": 0,             "serviceDownAction": null,             "slowRampTime": 10,             "description": "none",             "members": {},             "monitor": {},             "monitorRule": {                 "minimum": 1,                 "names": [                     "tcp"                 ]             }         }     ] }

更新池

更新指定池配置

PUT/pools/{apolId}

操作不接受请求体

请求主体

{     "allowNat": "yes",     "allowSnat": "yes",     "appService": null,     "description": null,     "gatewayFailsafeDevice": null,     "ignorePersistedWeight": "disabled",     "ipTosToClient": "pass-through",     "ipTosToServer": "pass-through",     "linkQosToClient": "pass-through",     "linkQosToServer": "pass-through",     "loadBalancingMode": "round-robin",     "minActiveMembers": 0,     "minUpMembers": 0,     "minUpMembersAction": "failover",     "minUpMembersChecking": "disabled",     "profiles": null,     "queueDepthLimit": 0,     "queueOnConnectionLimit": "disabled",     "queueTimeLimit": 0,     "reselectTries": 0,     "serviceDownAction": null,     "slowRampTime": 10 }

响应

{数据}{事件d
         
          状态处理 资源处理
          
           时间标识 : 2016-03-24T10:41:08.61946Z
           
            }}
           
          
         

删除池

从负载平衡器配置删除指定的池

DELETE/pools/{spolId}

操作不接受请求体

响应

删除用poolID指定的池

{数据}{事件d
         
          状态处理 资源处理
          
           事件/事件/
           
            时间标识:2016-03-24T10:41:08.6194067Z}
           
          
         

取回监控池规则

取回与指定池相联的监视规则

GET /pools/{poolId}/monitor-rule

操作不接受请求体

响应

取回指定的监视规则

{     "data": [         {             "names": [                 "https_443",                 "real_server",                 "tcp_echo"             ],             "minimum": 1         }     ] }

更新监控规则池

更新监控规则应用到指定的池检索监视器用池识别操作查找监视器规则名

PUT /pools/{poolId}/monitor-rule

请求主体

{名:s

响应

{数据}{事件d
         
          时间标识:2016-03-16T17:09:53.1059638Z
          
           }}
          
         

添加监视规则池

添加监视规则到指定的池查找可用监视器名称时提交GET监视器请求

POST /pools/{poolId}/monitor-rule

请求主体

{名:s

响应

{数据}{事件d
         
          状态号 支持标定时间号 2016-03-18T03:18
          
           事件/事件/
           
            }}
           
          
         

从池中删除监视规则

删除指定池监视规则

系统删除所有与池相联的显示器

DELETE /pools/{poolId}/monitor-rule

操作不接受请求体

响应

{数据}{事件d
         
          时间标识:2016-03-16T17:09:53.1059638Z
          
           }}
          
         

取回池成员统计

取回特定池中每个池成员的统计数据,包括配置设置、可用性和监测状态响应中包括访问成员详细视图链接

Get/pools/{poolId}/stats

操作不接受请求体

响应

{    "data": [       {          "id": "test1:80",          "activeMemberCnt": 0,          "address": "127.0.0.1",          "connq": {              "ageEdm": 0,              "ageEma": 0,              "ageHead": 0,              "ageMax": 0,              "depth": 0,              "serviced": 0           },          "connqAll": {               "ageEdm": 0,               "ageEma": 0,               "ageHead": 0,               "ageMax": 0,               "depth": 0,               "serviced": 0          },          "curSessions": 0,          "minActiveMembers": 0,          "monitorRule": {              "monitors": [              "default"              ],              "minimum": "all"          },          "name": "test1:80",          "serverside": {              "bitsIn": 0,              "bitsOut": 0,              "curConns": 0,              "maxConns": 0,              "pktsIn": 0,              "pktsOut": 0,              "totConns": 0          },          "status": {              "availabilityState": "unknown",              "enabledState": "enabled",              "statusReason": "Pool member does not have service checking enabled"          },          "totRequests": 0       }    ] }
Baidu
map