Compute Management/VM Related Interfaces
POSTVM Related InterfacesSince 4.10.18SynchronousAuth Required
Create Virtual Machine Custom Specification
Create Virtual Machine Custom Specification
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredResource name
descriptionStringDetailed description of the resource
platformStringRequiredVirtual Machine Operating System Platform Type
hostnameStringHost Name
rootPasswordStringAdministrator Password
Responses
Endpoint
POST/zstack/v1/vm-custom-specifications
/zstack/v1/vm-custom-specifications
Request Example
curl -X POST 'http://{host}/zstack/v1/vm-custom-specifications' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"name":"<name>","description":"<description>","platform":"<platform>","hostname":"<hostname>","rootPassword":"<rootPassword>","generateSID":true,"domainMode":"<domainMode>","domainName":"<domainName>","domainUsername":"<domainUsername>","domainPassword":"<domainPassword>","organization":"<organization>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"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.
