{"type":"api","title":"Get VM CPU Allocation","meta":{"id":"/apps/pubhub/media/nfvis-api/e3678dda6abe6c2a26c7698d553a4574e3f45071/262737b2-b3c2-32cd-b07b-fdbdcd23918f","info":{"title":"NFVIS API","description":"NFVIS RESTCONF API Documentation","version":"4.14.1"},"x-parser-conf":{"overview":{"markdownPath":"reference/overview.md"}},"swagger":"2.0","basePath":"/{nfvis_ip}/restconf","schemes":["https"],"securityDefinitions":{"basicAuth":{"type":"basic"}}},"spec":{"tags":["Resources Configuration"],"summary":"Get VM CPU Allocation","description":"Get CPUs and VCPUs allocated to a specific VM in the system.","operationId":"data_resources_resources_cpu_info_vnfs_vnf_vnf_name_get","produces":["application/yang-data+json"],"parameters":[{"name":"vnf-name","in":"path","description":"Name of the vnf","required":true,"type":"string","format":"string","$$ref":"#/parameters/vnf-name"},{"name":"content","in":"query","description":"controlling descendant nodes in response","required":false,"type":"string","format":"enumeration","default":"config","enum":["config","nonconfig","all"],"$$ref":"#/parameters/content"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"resources:vnf":{"type":"array","description":"(list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"name":{"description":"VNF name: \u003cdeployment_name\u003e.\u003cvm_group_name\u003e (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"vcpus":{"description":"number of vcpus (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"low-latency":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"cpu":{"type":"array","description":"(list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"vcpu-id":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"socket-id":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"core-id":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"cpu-id":{"description":"(leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"}}}}}}}},"$$ref":"#/definitions/data_resources_resources_cpu-info_vnfs_vnf_vnf-name"}},"204":{"description":"No Content","$$ref":"#/responses/204"},"400":{"description":"Bad Request","$$ref":"#/responses/400"},"401":{"description":"Unauthorized","$$ref":"#/responses/401"},"404":{"description":"Not Found","$$ref":"#/responses/404"},"405":{"description":"Method Not Allowed","$$ref":"#/responses/405"},"409":{"description":"Conflict","$$ref":"#/responses/409"}},"security":[{"basicAuth":[]}],"__originalOperationId":"data_resources_resources_cpu_info_vnfs_vnf_vnf_name_get","consumes":["application/yang-data+json"],"method":"get","path":"/data/resources:resources/cpu-info/vnfs/vnf={vnf-name}"}}