{"type":"api","title":"Get list of HA pools","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/b95772dc6c621d9842faced8610ee58b0cb9cb02/a0304b33-a28f-3f47-a748-9939a45040de","info":{"title":"Crosswork Data Gateway High Availability API","description":" This document contains details of the Crosswork Data Gateway Manager RESTful APIs that can be used for CRUD operations of Data Gateways and HA Pools","version":"7.1.0","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"}},"security":[{"bearerAuth":[]}],"tags":[{"name":"Misc","description":""}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/Deprecated/cdg_ha_api_v1-overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v1","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"description":"Get list of HA Pools.You can specify criteria for the pool e.g. select * from HAPool where HAStatus=HAPool_PROTECTED","summary":"Get list of HA pools","operationId":"GetHApools","deprecated":true,"produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"Content-Type","in":"header","required":true,"type":"string","description":"application/json"},{"name":"Body","in":"body","required":true,"description":"Request payload to get HA pool","schema":{"title":"GetHApoolsRequest","example":{"criteria":"select * from HAPool where HAPool_HAStatus=HAPool_PROTECTED"},"type":"object","properties":{"criteria":{"type":"string"}},"required":["criteria"],"$$ref":"#/definitions/GetHApoolsRequest"}}],"responses":{"200":{"description":"OK","headers":{},"schema":{"title":"GetHAPoolsResponse","example":{"data":[{"name":"HAPool_Sep17","description":"test pool","puuid":"a7c3e0f6-d113-4549-ac4e-6ef5cec0e2d4","ipaddrs":[{"ipaddr":{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.13.0.73","mask":"16"},"gateway":"10.13.0.1","fqdn":"sb73.cdglocal.com."}],"pdg_uuids":["8b15068b-9df7-4dae-b32e-ace89561a955"],"subnetMask":16,"spares":"0","gateway":"10.13.0.1","haStrategy":"VIP_BASAED","enableFqdn":true,"balanced":true}],"totalCount":1},"type":"object","properties":{"data":{"type":"array","items":{"title":"PoolNonGeoResponse","example":{"name":"HAPool_Sep17","description":"test pool","puuid":"a7c3e0f6-d113-4549-ac4e-6ef5cec0e2d4","ipaddrs":[{"ipaddr":{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.13.0.73","mask":"16"},"gateway":"10.13.0.1","fqdn":"sb73.cdglocal.com."}],"pdg_uuids":["8b15068b-9df7-4dae-b32e-ace89561a955"],"subnetMask":16,"spares":"0","gateway":"10.13.0.1","enableFqdn":true,"haStrtegy":"VIP_BASED","balanced":true},"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"puuid":{"type":"string"},"ipaddrs":{"type":"array","items":{"title":"Ipaddr","example":{"ipaddr":{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.13.0.73","mask":"16"},"gateway":"10.13.0.1","fqdn":"sb73.cdglocal.com"},"type":"object","properties":{"ipaddr":{"title":"Ipaddr1","example":{"inet_af":"ROBOT_INET_ADDR_TYPE_v4","inet_addr":"10.13.0.73","mask":"16"},"type":"object","properties":{"inet_af":{"type":"string"},"inet_addr":{"type":"string"},"mask":{"type":"string"}},"required":["inet_af","inet_addr"],"$$ref":"#/definitions/Ipaddr1"},"gateway":{"type":"string"},"fqdn":{"type":"string"}},"required":["ipaddr"],"$$ref":"#/definitions/Ipaddr"}},"pdg_uuids":{"type":"array","items":{"type":"string"}},"subnetMask":{"type":"integer","format":"int32"},"spares":{"type":"string"},"gateway":{"type":"string"},"enableFqdn":{"type":"boolean"},"haStrategy":{"type":"string"},"balanced":{"type":"boolean"}},"required":["name","description","puuid","ipaddrs","pdg_uuids","subnetMask","spares","gateway","haStrategy"],"$$ref":"#/definitions/PoolNonGeoResponse"}},"totalCount":{"type":"integer","format":"int32"}},"required":["data","totalCount"],"$$ref":"#/definitions/GetHAPoolsResponse"}},"500":{"description":"Internal Server Error"}},"security":[],"__originalOperationId":"GetHApools","method":"post","path":"/hapool/query"}}