Resource Center/Resource Pool/VM Instance Operations
POSTVM Instance OperationsSince 3.3.0SynchronousAuth Required
CreateVmCdRom
CreateVmCdRom
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe resource name.
vmInstanceUuidStringRequiredThe VM instance UUID.
isoUuidStringOptional. The ISO image UUID.
descriptionStringOptional. The detailed description of the resource.
resourceUuidStringOptional. The resource UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/vm-instances/cdroms
/zstack/v1/vm-instances/cdroms
Request Example
curl -X POST 'http://{host}/zstack/v1/vm-instances/cdroms' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","vmInstanceUuid":"<vmInstanceUuid>","isoUuid":"<isoUuid>","description":"<description>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "vmInstanceUuid": "47286977f0c530168fdbb1dfbfc167e8", "deviceId": 0.0, "isoUuid": "1712d13459ec3637be1020936e76e5a3", "name": "cd-1", "createDate": "Nov 14, 2017 10:20:57 PM", "lastOpDate": "Nov 14, 2017 10:20:57 PM" } }Change History
This API has no change history records yet.
