{"type":"api","title":"Update Flavor","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":["VM Lifecycle Management - Flavor"],"summary":"Update Flavor","description":"Update the existing flavor","operationId":"data_vmlc_vm_lifecycle_flavors_flavor_flavor_name_put","produces":["application/yang-data+json"],"parameters":[{"name":"flavor-name","in":"path","description":"Name of the flavor","required":true,"type":"string","format":"string","$$ref":"#/parameters/flavor-name"},{"name":"flavor","in":"body","description":"List of flavors","required":true,"schema":{"type":"object","properties":{"vmlc:flavor":{"type":"array","description":"List of flavors (list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"name":{"description":"Name of the flavor (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"description":{"description":"A brief description of the flavor (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"vcpus":{"description":"Number of virtual CPUs per VM instance (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"},"sockets":{"description":"Number of sockets per VM instance (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"},"cores":{"description":"Number of cores per VM instance (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"},"threads":{"description":"Number of threads per VM instance (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint16"},"memory_mb":{"description":"Amount of memory in Mega Bytes per VM instance (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"int32"},"root_disk_mb":{"description":"Virtual root disk size in gigabytes. This is an ephemeral disk the\nbase image is copied into. You don't use it when you boot from a persistent volume.\nThe 0 size is a special case that uses the native base image size as the size\nof the ephemeral root volume (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"int32"},"ephemeral_disk_mb":{"description":"Specifies the size of a secondary ephemeral data disk.\nThis is an empty, unformatted disk and exists only for the life of the instance (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"int32"},"swap_disk_mb":{"description":"Optional swap space allocation for the instance. (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"int32"},"properties":{"description":"List of property name/value pairs (non-presence)","type":"object","x-yang":{"type":"container","is_presence":"false"},"properties":{"property":{"type":"array","description":"(list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"name":{"description":"Name/Key of property (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"value":{"description":"Value of property (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"}}}}}}}}}},"$$ref":"#/definitions/data_vmlc_vm_lifecycle_flavors_flavor_flavor-name"},"$$ref":"#/parameters/data_vmlc_vm_lifecycle_flavors_flavor_flavor-name"},{"name":"insert","in":"query","description":"controlling the order when adding new list elements","required":false,"type":"string","format":"enumeration","default":"first","enum":["first","last","before","after"],"$$ref":"#/parameters/insert"},{"name":"point","in":"query","description":"used to specify the insertion point","required":false,"type":"string","format":"string","$$ref":"#/parameters/point"}],"responses":{"201":{"description":"list flavor created or replaced"},"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_vmlc_vm_lifecycle_flavors_flavor_flavor_name_put","consumes":["application/yang-data+json"],"method":"put","path":"/data/vmlc:vm_lifecycle/flavors/flavor={flavor-name}"}}