Hi Martin,
You can create and attach vdisks with Prism Central API. Here the steps you have to follow:
- Do a GET for the VM you want to update
- From the JSON payload, remove the status key completely
- In the spec key, look for disk_list and add an additional item to that list (the new disk). The format is:
{
"device_properties": {
"device_type": "DISK",
"disk_address": {
"adapter_type": "SCSI",
"device_index": 3
}
},
"disk_size_bytes": 3221225472,
"storage_config": {
"storage_container_reference": {
"kind": "storage_container",
"uuid": "c03cd780-32fa-4292-9eab-ab2f9c311328",
"name": "default-container-151523"
}
}
}
- Send a PUT with this payload.
Please let me know if you find any issue.