虚拟服务器

虚拟服务器综合IP和端口在池内节点间分配流量可连接虚拟服务器或多池

使用下列操作查看并管理负载平衡器配置虚拟服务器

取回虚拟服务器细节

检索负载平衡器配置的所有虚拟服务器信息,包括配置数据与状态信息

获取/虚拟

操作不接受请求体

响应

{     "data": [         {             "id": "VIP-127.0.0.1-80",             "address": "127.0.0.1",             "addressStatus": "yes",             "appService": null,             "auth": {},             "autoLasthop": "default",             "bwcPolicy": null,             "clonePools": {},             "cmpEnabled": "yes",             "connectionLimit": 0,             "description": null,             "fallbackPersistence": null,             "gtmScore": 0,             "ipForward": "",             "ipProtocol": "tcp",             "lastHopPool": null,             "mask": "255.255.255.255",             "metadata": {},             "mirror": "disabled",             "mobileAppTunnel": "disabled",             "nat64": "disabled",             "partition": "Common",             "persist": {                 "cookie": {                     "default": "yes"                 }             },             "policies": "none",             "pool": {},             "port": {                 "type": "equal",                 "value": 80             },             "profiles": {                 "http": {                     "context": "all"                 },                 "tcp": {                     "context": "all"                 }             },             "rateClass": null,             "rateLimit": "disabled",             "rateLimitDstMask": 0,             "rateLimitMode": "object",             "rateLimitSrcMask": 0,             "relatedRules": null,             "rules": null,             "securityLogProfiles": {},             "source": "0.0.0.0/0",             "sourceAddressTranslation": {                 "pool": "none",                 "type": "none"             },             "sourcePort": "preserve",             "synCookieStatus": "not-activated",             "trafficClasses": {},             "translateAddress": "enabled",             "translatePort": "enabled",             "vlans": {},             "vsIndex": 7         }     ] }

添加虚拟服务器

向负载平衡器添加虚拟服务器配置添加虚拟服务器配置时,不指定IP地址,除非您想对单端口上的现有地址添加配置

POST/虚拟

请求主体

地址 : 172.1.160,源码 : 0.0.0.0\/0,p协议 : tcp,pforward

响应

返回事件信息请求事件ID获取事件状态和输出信息

{数据}{事件ibl2a-0edf-4583-e2c-ab0b54c78193},状态
         
          时间标识:2016-03-18T03:18:35.5077939Z}
         

取回虚拟服务器统计

取回负载平衡器配置的所有虚拟服务器的统计信息

Get/vituals/stats

操作不接受请求体

响应

{     "data": [         {             "clientside": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "cmpEnableMode": "all-cpus",             "cmpEnabled": "enabled",             "csMaxConnDur": 0,             "csMeanConnDur": 0,             "csMinConnDur": 0,             "destination": "127.0.0.1:80",             "ephemeral": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "fiveMinAvgUsageRatio": 0,             "fiveSecAvgUsageRatio": 0,             "id": "VIP-127.0.0.1-80",             "name": "VIP-127.0.0.1-80",             "oneMinAvgUsageRatio": 0,             "status": {                 "availabilityState": "unknown",                 "enabledState": "enabled",                 "statusReason": "The children pool member(s) either don't have service checking enabled, or service check results are not available yet"             },             "syncookie": {                 "accepts": 0,                 "hwAccepts": 0,                 "hwSyncookies": 0,                 "hwsyncookieInstance": 0,                 "rejects": 0,                 "swsyncookieInstance": 0,                 "syncacheCurr": 0,                 "syncacheOver": 0,                 "syncookies": 0             },             "syncookieStatus": "not-activated",             "totRequests": 0         },         {             "clientside": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "cmpEnableMode": "all-cpus",             "cmpEnabled": "enabled",             "csMaxConnDur": 0,             "csMeanConnDur": 0,             "csMinConnDur": 0,             "destination": "127.0.0.1:443",             "ephemeral": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "fiveMinAvgUsageRatio": 0,             "fiveSecAvgUsageRatio": 0,             "id": "TestVip-DONT-DELETE",             "name": "TestVip-DONT-DELETE",             "oneMinAvgUsageRatio": 0,             "status": {                 "availabilityState": "unknown",                 "enabledState": "enabled",                 "statusReason": "The children pool member(s) either don't have service checking enabled, or service check results are not available yet"             },             "syncookie": {                 "accepts": 0,                 "hwAccepts": 0,                 "hwSyncookies": 0,                 "hwsyncookieInstance": 0,                 "rejects": 0,                 "swsyncookieInstance": 0,                 "syncacheCurr": 0,                 "syncacheOver": 0,                 "syncookies": 0             },             "syncookieStatus": "not-activated",             "totRequests": 0         },         {             "clientside": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "cmpEnableMode": "all-cpus",             "cmpEnabled": "enabled",             "csMaxConnDur": 0,             "csMeanConnDur": 0,             "csMinConnDur": 0,             "destination": "127.0.0.1:443",             "ephemeral": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "fiveMinAvgUsageRatio": 0,             "fiveSecAvgUsageRatio": 0,             "id": "VIP-127.0.0.1-443",             "name": "VIP-127.0.0.1-443",             "oneMinAvgUsageRatio": 0,             "status": {                 "availabilityState": "available",                 "enabledState": "enabled",                 "statusReason": "The virtual server is available"             },             "syncookie": {                 "accepts": 0,                 "hwAccepts": 0,                 "hwSyncookies": 0,                 "hwsyncookieInstance": 0,                 "rejects": 0,                 "swsyncookieInstance": 0,                 "syncacheCurr": 0,                 "syncacheOver": 0,                 "syncookies": 0             },             "syncookieStatus": "not-activated",             "totRequests": 0         },         {             "clientside": {                 "bitsIn": 2784874696,                 "bitsOut": 13416053656,                 "curConns": 5,                 "maxConns": 61,                 "pktsIn": 5698557,                 "pktsOut": 1560895,                 "totConns": 1485109             },             "cmpEnableMode": "all-cpus",             "cmpEnabled": "enabled",             "csMaxConnDur": 14319373760,             "csMeanConnDur": 7972,             "csMinConnDur": 56,             "destination": "any:any",             "ephemeral": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "fiveMinAvgUsageRatio": 0,             "fiveSecAvgUsageRatio": 0,             "id": "VS-FORWARDING",             "name": "VS-FORWARDING",             "oneMinAvgUsageRatio": 0,             "status": {                 "availabilityState": "unknown",                 "enabledState": "enabled",                 "statusReason": "The children pool member(s) either don't have service checking enabled, or service check results are not available yet"             },             "syncookie": {                 "accepts": 0,                 "hwAccepts": 0,                 "hwSyncookies": 0,                 "hwsyncookieInstance": 0,                 "rejects": 2,                 "swsyncookieInstance": 0,                 "syncacheCurr": 0,                 "syncacheOver": 0,                 "syncookies": 0             },             "syncookieStatus": "not-activated",             "totRequests": 0         }     ] }

通过ID检索虚拟服务器信息

检索指定虚拟服务器信息

Get/vituals/{vitualId}

操作不接受请求体

响应

{     "data": [         {             "id": "VIP-127.0.0.1-80",             "address": "127.0.0.1",             "addressStatus": "yes",             "appService": "none",             "auth": {},             "autoLasthop": "default",             "bwcPolicy": null,             "clonePools": {},             "cmpEnabled": "yes",             "connectionLimit": 0,             "description": "none",             "fallbackPersistence": null,             "gtmScore": 0,             "ipForward": "",             "ipProtocol": "tcp",             "lastHopPool": null,             "mask": "255.255.255.255",             "metadata": null,             "mirror": "disabled",             "mobileAppTunnel": "disabled",             "nat64": "disabled",             "partition": "Common",             "persist": {                 "cookie": {                     "default": "yes"                 }             },             "policies": {},             "pool": {},             "port": {                 "type": "equal",                 "value": 80             },             "profiles": {                 "http": {                     "context": "all"                 },                 "tcp": {                     "context": "all"                 }             },             "rateClass": null,             "rateLimit": "disabled",             "rateLimitDstMask": 0,             "rateLimitMode": "object",             "rateLimitSrcMask": 0,             "relatedRules": null,             "rules": null,             "securityLogProfiles": {},             "source": "0.0.0.0/0",             "sourceAddressTranslation": {                 "pool": "none",                 "type": "none"             },             "sourcePort": "preserve",             "synCookieStatus": "not-activated",             "trafficClasses": {},             "translateAddress": "enabled",             "translatePort": "enabled",             "vlans": {},             "vsIndex": 7         }     ] }

通过ID更新虚拟服务器

使用虚拟ID更新指定设备虚拟服务器

更新虚拟服务器时,必须指定请求中的地址和端口

PUT/虚拟/{虚拟i

请求主体

地址 : 172.1.160 源码 : 0.0.0.0\/0 ip协议 : tcp,pforward

响应

返回事件信息请求事件ID获取事件状态和输出信息

{数据}{事件b2a-0edf-4583-8e2c-ab0b54c78193}
         
          事件/事件/
          
           时间标识:2016-03-18T03:18:35.5077939Z}
          
         

删除虚拟服务器

从负载平衡器配置中删除指定的虚拟服务器

DELETE/虚拟/{虚拟i

操作不接受请求体

响应

返回事件信息请求事件ID获取事件状态和输出信息

{数据}{事件d
         
          状态处理 资源处理
          
           时间标识: 2016-03-18T03:18:35.5077939Z
           
            }}
           
          
         

取回虚拟服务器持久剖面

检索虚拟服务器配置持久剖面信息简介帮助跟踪和存储会话数据,以确保客户请求在整个会场或后续会场期间面向同一名池成员

GET /virtuals/{virtualId}/persists

操作不接受请求体

响应

{数据>:{{{描述性名: my-cool-perist}}}

更新虚拟服务器持久剖面

更新持久配置虚拟服务器

PUT /virtuals/{virtualId}/persists

请求主体

{名: {hash}}

响应

{数据}{事件d
         
          状态处理 资源处理
          
           时间标识: 2016-03-08T17:22:33.62496Z
           
            }}
           
          
         

创建持久剖面

创建指定虚拟服务器持久配置

POST /virtuals/{virtualId}/persists

操作不接受请求体

请求主体

{名称>:{{源_addr,dest_addr}}

响应

{数据}{事件d
         
          状态处理 资源处理
          
           时间标识: 2016-03-08T17:22:33.62496Z
           
            }}
           
          
         

删除持久剖面

从指定的虚拟服务器删除持久剖面配置

DELETE /virtuals/{virtualId}/persists

操作不接受请求体

响应

{数据}{事件d
         
          状态处理 资源处理
          
           事件/事件/
           
            时间标识:2016-03-18T03:18:35.5077939Z}
           
          
         

通过ID检索虚拟服务器信息

取回负载平衡器配置的指定虚拟服务器统计

GET /virtuals/{virtualId}/stats

操作不接受请求体

响应

取回数据库列表

{     "data": [         {             "clientside": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "cmpEnableMode": "all-cpus",             "cmpEnabled": "enabled",             "csMaxConnDur": 0,             "csMeanConnDur": 0,             "csMinConnDur": 0,             "destination": "127.0.0.1:80",             "ephemeral": {                 "bitsIn": 0,                 "bitsOut": 0,                 "curConns": 0,                 "maxConns": 0,                 "pktsIn": 0,                 "pktsOut": 0,                 "totConns": 0             },             "fiveMinAvgUsageRatio": 0,             "fiveSecAvgUsageRatio": 0,             "id": "VIP-127.0.0.1-80",             "name": "VIP-127.0.0.1-80",             "oneMinAvgUsageRatio": 0,             "status": {                 "availabilityState": "unknown",                 "enabledState": "enabled",                 "statusReason": "The children pool member(s) either don't have service checking enabled, or service check results are not available yet"             },             "syncookie": {                 "accepts": 0,                 "hwAccepts": 0,                 "hwSyncookies": 0,                 "hwsyncookieInstance": 0,                 "rejects": 0,                 "swsyncookieInstance": 0,                 "syncacheCurr": 0,                 "syncacheOver": 0,                 "syncookies": 0             },             "syncookieStatus": "not-activated",             "totRequests": 0         }     ] }

通过虚拟ID取回虚拟池

检索与指定虚拟服务器关联的虚拟池信息

Get/vituals/{vitualId}/

操作不接受请求体

响应

{数据>:{{{名称>:jest_po
Baidu
map