{"type":"api","title":"Get Allocated Resources of CDG","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/3194186e-3f60-35eb-87c3-db00407b30ab","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/cdg_dynamic_resources_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":"Get Allocated Resources of CDG","summary":"Get Allocated Resources of CDG","operationId":"GetDynamicResources","deprecated":false,"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 getting dynamic resources query","schema":{"title":"GetDynamicResourcesQueryRequest","example":{},"type":"object","properties":{"data":{}},"$$ref":"#/definitions/GetDynamicResourcesQueryRequest"}}],"responses":{"200":{"description":"OK","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"},"examples":{"application/json":{"containers":[{"serviceName":"dg-cli-collector-service","containerName":"cli-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false,"imageTag":"5.0.0_dg50x_1_2023-03-16_17-00-00"},{"serviceName":"dg-gnmi-collector-service","containerName":"gnmi-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false,"imageTag":"5.0.0_dg50x_1_2023-03-16_17-00-00"},{"serviceName":"dg-mdt-collector-service","containerName":"mdt-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false,"imageTag":"5.0.0_dg50x_1_2023-03-16_17-00-00"},{"serviceName":"dg-netconf-collector-service","containerName":"netconf-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false,"imageTag":"5.0.0_dg50x_1_2023-03-16_17-00-00"},{"serviceName":"dg-snmp-collector-service","containerName":"snmp-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false,"imageTag":"5.0.0_dg50x_1_2023-03-16_17-00-00"},{"serviceName":"dg-syslog-collector-service","containerName":"syslog-collector","memoryLimit":"6g","cpuSet":"2-9","cpuQuota":0,"cpuShares":0,"notDeployed":false,"imageTag":"5.0.0_dg50x_1_2023-03-16_17-00-00"}]}},"headers":{}},"500":{"description":"Internal Server Error"}},"__originalOperationId":"GetDynamicResources","security":[{"bearerAuth":[]}],"method":"post","path":"/oam/container/resources/query"}}