{"type":"api","title":"Update HA pool","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/21eb1d117a633ad17a20da730c09f519133958a8/6a2f2e27-2148-36d0-aa99-acbe63ee5246","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":"Miscellaneous"}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/cdg_ha_api_overview.md"}},"swagger":"2.0","basePath":"/crosswork/dg-manager/v2","schemes":["https"],"securityDefinitions":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","description":"Bearer Auth Token"}}},"spec":{"description":"Update HA pool with uuid specified in the payload\n 1) you can update number of spares\n 2) number of ips in pool\n 3) number of assigned data gateways in pool\n Make sure you satisfy the criteria such that Number of IPs in pool \u003c= Physical data gateway uuids \u003c= (Number of IPs in pool + Spares)","summary":"Update HA pool","operationId":"UpdateV2HApool","deprecated":false,"produces":["application/json"],"consumes":["application/json"],"parameters":[{"name":"Content-Type","in":"header","required":true,"type":"string","description":"Content Type for Header"},{"name":"Body","in":"body","required":true,"description":"Body of the Request","schema":{"title":"UpdateHApoolRequest","example":{"pools":[{"name":"HAPool_Update","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_BASED","enableFqdn":true}]},"type":"object","properties":{"pools":{"type":"array","items":{"title":"Pool1","example":{"name":"HAPool_Update","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},"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"}},"required":["name","description","puuid","ipaddrs","pdg_uuids","subnetMask","spares","gateway"],"$$ref":"#/definitions/Pool1"}}},"required":["pools"],"$$ref":"#/definitions/UpdateHApoolRequest"}}],"responses":{"204":{"description":"This Request has no response data available","headers":{}},"500":{"description":"Internal Server Error","schema":{"title":"HAPoolErrorResponse","example":{"error":"HA pool with id a7c3e0f6-d113-4549-ac4e-6ef5cec0e2d4 not found in cache"},"type":"object","properties":{"error":{"type":"string"}},"$$ref":"#/definitions/HAPoolErrorResponse"}}},"security":[],"__originalOperationId":"UpdateV2HApool","method":"put","path":"/hapool"}}