Resource Center/Resource Pool/VM Instance Operations
POSTVM Instance OperationsSince 4.4.6SynchronousAuth Required
ParseOvf
ParseOvf
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
xmlBase64StringRequiredThe Base64-encoded OVF file.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/ovf/parse
/zstack/v1/ovf/parse
Request Example
curl -X POST 'http://{host}/zstack/v1/ovf/parse' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"xmlBase64":"<xmlBase64>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "ovfInfo": { "disks": [ { "index": 0.0, "diskId": "system", "fileRef": "file1", "fileName": "system.vmdk", "format": "vmdk", "populatedSize": 1.688600576E9, "capacity": 6.442450944E10 } ], "networks": [ { "name": "red-net" } ], "cpu": { "instanceId": "2", "quantity": 4.0, "coresPerSocket": 4.0 }, "memory": { "instanceId": "3", "quantity": 4.294967296E9 }, "vmName": "VM-1", "os": { "id": 107.0, "version": "7", "osType": "centos", "description": "CentOS 7" }, "systemInfo": { "virtualSystemType": "vmx-18" }, "nics": [ { "networkName": "red-net", "nicModel": "E1000", "nicName": "nic-1", "autoAllocation": true } ], "cdDrivers": [ { "autoAllocation": true, "driverType": "SATA", "subType": "vmware.cdrom.remotepassthrough", "name": "CD" } ], "volumes": [ { "name": "System Volume", "diskId": "system", "driverType": "IDE" } ] } }Change History
This API has no change history records yet.
