{"type":"api","title":"Update Allocated Resources of CDG","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/cd4ff3cf-36c7-3717-ac43-7b3335b5bc14","info":{"title":"Crosswork Data Gateway Dynamic Resources API","description":"This document details Crosswork Data Gateway APIs you can use to update the allocated resources to collector","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":"Custome file operations","description":"Get/Set Custom files to CDG"}],"x-parser-conf":{"overview":{"markdownPath":"reference/CDG/Deprecated/cdg_dynamic_resources_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":"Update Allocated Resources of CDG. The Request should include the notDeployed parameter with its current value. This will prevent the the parameter from being overridden with default boolean value of false.","summary":"Update Allocated Resources of CDG","operationId":"UpdateDynamicResources","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 for updating dynamic resources","schema":{"title":"DynamicResources","example":{"containers":[{"serviceName":"dg-cli-collector-service","containerName":"cli-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-gnmi-collector-service","containerName":"gnmi-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-mdt-collector-service","containerName":"mdt-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-netconf-collector-service","containerName":"netconf-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-snmp-collector-service","containerName":"snmp-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-syslog-collector-service","containerName":"syslog-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false}]},"type":"object","properties":{"containers":{"type":"array","items":{"title":"ResourcesData","example":{"serviceName":"dg-cli-collector-service","containerName":"cli-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},"type":"object","properties":{"serviceName":{"type":"string"},"containerName":{"type":"string"},"memoryLimit":{"type":"string"},"cpuSet":{"type":"string"},"cpuQuota":{"type":"integer"},"cpuShares":{"type":"integer"},"notDeployed":{"type":"boolean"}},"required":["serviceName","containerName","notDeployed"],"$$ref":"#/definitions/ResourcesData"}}},"$$ref":"#/definitions/DynamicResources"}}],"responses":{"200":{"description":"OK. The request was successful.","schema":{"title":"DynamicResources","example":{"containers":[{"serviceName":"dg-cli-collector-service","containerName":"cli-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-gnmi-collector-service","containerName":"gnmi-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-mdt-collector-service","containerName":"mdt-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-netconf-collector-service","containerName":"netconf-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-snmp-collector-service","containerName":"snmp-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},{"serviceName":"dg-syslog-collector-service","containerName":"syslog-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false}]},"type":"object","properties":{"containers":{"type":"array","items":{"title":"ResourcesData","example":{"serviceName":"dg-cli-collector-service","containerName":"cli-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false},"type":"object","properties":{"serviceName":{"type":"string"},"containerName":{"type":"string"},"memoryLimit":{"type":"string"},"cpuSet":{"type":"string"},"cpuQuota":{"type":"integer"},"cpuShares":{"type":"integer"},"notDeployed":{"type":"boolean"}},"required":["serviceName","containerName","notDeployed"],"$$ref":"#/definitions/ResourcesData"}}},"$$ref":"#/definitions/DynamicResources"}},"400":{"description":"Bad Request. The client made a request for a resource that does not exist."}},"security":[],"__originalOperationId":"UpdateDynamicResources","method":"post","path":"/oam/container/resources"}}