Compute Management/VM Related Interfaces
PUTVM Related InterfacesSince 4.10.18SynchronousAuth Required
Update Virtual Machine Custom Operating System Specification
Update Virtual Machine Custom Operating System Specification
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredUUID of the resource, uniquely identifying the resource
Body Fields
nameStringResource name
descriptionStringDetailed description of the resource
hostnameStringHost Name
rootPasswordStringAdministrator Password
generateSIDBooleanWhether to Generate SID
Responses
Endpoint
PUT/zstack/v1/vm-custom-specifications/{uuid}/actions
/zstack/v1/vm-custom-specifications/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/vm-custom-specifications/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"name":"<name>","description":"<description>","hostname":"<hostname>","rootPassword":"<rootPassword>","generateSID":true,"domainMode":"<domainMode>","domainName":"<domainName>","domainUsername":"<domainUsername>","domainPassword":"<domainPassword>","organization":"<organization>","systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "ff0a9e874342368bb28daaf2c9b3cc00", "vmInstanceUuid": "ff01ec80fd11327cba7519b66119d900", "name": "custom-specification-for-vm-1", "description": "Test", "platform": "Windows", "hostname": "vm-1", "rootPassword": "password", "generateSID": true, "domainMode": "Domain", "domainName": "zsv.test", "domainUsername": "test", "domainPassword": "password", "organization": "OU\u003dzsv,DC\u003dzsv,DC\u003dtest" } }Change History
This API has no change history records yet.
