{"type":"api","title":"Create VM Package","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 Packaging Configuration"],"summary":"Create VM Package","description":"Create a new VM package with the specified configuration","operationId":"data_vm_packaging_vm_packages_post","produces":["application/yang-data+json"],"parameters":[{"name":"vm_packages","in":"body","description":"VM package configurations","required":true,"schema":{"type":"object","properties":{"vm_packaging:vm_package":{"type":"array","description":"(list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"package-name":{"description":"vm package name (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"package-uuid":{"description":"vm package uuid (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"raw-disk-image-names":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"raw disk image file name list (leaf-list)","type":"string","format":"string"}},"vm-image-name":{"description":"vm name (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"vm-type":{"description":"select vm type (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"ROUTER","enum":["ROUTER","FIREWALL","vWAAS","WLC","WAN_OPT","NETWORK_ANALYSIS","VOICEMAIL","OTHER"]},"vm-version":{"description":"vm version (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"sysinfo-support":{"description":"sysinfo support (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"monitored":{"description":"vm monitored (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"optimize":{"description":"dedicated cpu core assignement (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"privileged":{"description":"VM with some privileges (Not supported in this release) (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"bootstrap-filenames":{"type":"array","description":"bootstrap image file name & destination list (list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"bootstrap-filename":{"description":"bootstrap filename (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"destination":{"description":"destination of bootstrap file, default is root(/) and openstack/content (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"}}}},"min_vcpu":{"description":"min vcpu required (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"max_vcpu":{"description":"max vcpu required (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"min_mem_mb":{"description":"min mem required in MB (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint32"},"max_mem_mb":{"description":"max mem required in MB (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint32"},"min_disk_gb":{"description":"min disk required in GB (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"max_disk_gb":{"description":"max disk required in GB (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint32"},"vnic_max":{"description":"max number of VNIC allowed (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"profiles":{"type":"array","description":"profile for the package (list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"name":{"description":"profile name (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"description":{"description":"description of profile (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"cpu":{"description":"number of vcpu required (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"byte"},"memory":{"description":"minimum memory required in MB (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint32"},"disk":{"description":"minimum disk space required in MB (leaf)","x-yang":{"type":"leaf"},"type":"integer","format":"uint32"}}}},"default-profile":{"description":"Name of the default profile (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"leafref"},"sriov-support":{"description":"sriov support enabled/disabled (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"ENABLED","enum":["ENABLED","DISABLED"]},"sriov-list":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"sriov driver list (leaf-list)","type":"string","format":"string"}},"pcie-list":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"Not supported (leaf-list)","type":"string","format":"string"}},"custom-properties":{"type":"array","description":"custom properties list (list)","x-yang":{"type":"list"},"items":{"type":"object","properties":{"custom-property-key":{"description":"name of the variable to be replaced in the bootstrap config file (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"custom-property-value":{"type":"array","x-yang":{"type":"leaf-list"},"items":{"description":"value/s for the variable to be replaced in the bootstrap config file (leaf-list)","type":"string","format":"string"}}}}},"serial-console":{"description":"attach console type serial to vm: true/false (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"raw-disk-file-bus":{"description":"raw disk file bus: virtio/ide (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"VIRTIO","enum":["VIRTIO","IDE"]},"virtual-interface-model":{"description":"virtual interface model: rtl8139/NONE (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"rtl8139","enum":["rtl8139","NONE"]},"thick-disk-provisioning":{"description":"thick disk provisioning: true/false (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"bootstrap-cloud-init-bus":{"description":"bootstrap cloud init bus type: virtio/ide (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"VIRTIO","enum":["VIRTIO","IDE"]},"bootstrap-cloud-init-drive":{"description":"bootstrap cloud init drive type: disk/cdrom (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"DISK","enum":["DISK","CDROM"]},"tablet":{"description":"attach input device of type tablet true/false (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"state":{"description":"Package state: creating/success/error (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"CREATING","enum":["CREATING","COMPLETE","ERROR","UNKNOWN"]},"error-message":{"description":"Description for package creation failure (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"nocloud":{"description":"attach input device of type nocloud true/false (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"boolean"},"meta-data":{"description":"attach meta-data tar file for VM packages (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"string"},"modify":{"description":"Option for VM Repackaging/ Convert (leaf)","x-yang":{"type":"leaf"},"type":"string","format":"enumeration","default":"CONVERT","enum":["CONVERT","REPACKAGE","UNKNOWN"]}}}}},"$$ref":"#/definitions/data_vm_packaging_vm_packages-post"},"$$ref":"#/parameters/data_vm_packaging_vm_packages-post"}],"responses":{"201":{"description":"container vm_packages created"},"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_vm_packaging_vm_packages_post","consumes":["application/yang-data+json"],"method":"post","path":"/data/vm_packaging:vm_packages"}}