CreateAutoScalingVmTemplate
CreateAutoScalingVmTemplate
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.
vmInstanceNameStringRequiredThe VM instance name.
vmInstanceDescriptionStringOptional. The detailed description of the VM instance.
vmInstanceOfferingUuidStringRequiredThe instance offering of the VM instance.
imageUuidStringRequiredThe image UUID of the VM instance.
l3NetworkUuidsListRequiredThe L3 networks of the VM instance.
rootDiskOfferingUuidStringOptional. The disk offering of the VM instance root volume.
dataDiskOfferingUuidsListOptional. The disk offerings of the VM instance data volumes.
vmInstanceZoneUuidStringOptional. The zone to which the VM instance belongs.
vmInstanceClusterUuidStringOptional. The cluster to which the VM instance belongs.
hostUuidStringOptional. The host UUID.
primaryStorageUuidForRootVolumeStringOptional. The UUID of the primary storage where the root volume locates.
defaultL3NetworkUuidStringRequiredThe default L3 network of the VM instance.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
typeStringOptional. The template type.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/autoscaling/vmtemplate
/zstack/v1/autoscaling/vmtemplate
Request Example
curl -X POST 'http://{host}/zstack/v1/autoscaling/vmtemplate' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"vmInstanceName":"<vmInstanceName>","vmInstanceDescription":"<vmInstanceDescription>","vmInstanceOfferingUuid":"<vmInstanceOfferingUuid>","imageUuid":"<imageUuid>","l3NetworkUuids":["<l3NetworkUuids>"],"rootDiskOfferingUuid":"<rootDiskOfferingUuid>","dataDiskOfferingUuids":["<dataDiskOfferingUuids>"],"vmInstanceZoneUuid":"<vmInstanceZoneUuid>","vmInstanceClusterUuid":"<vmInstanceClusterUuid>","hostUuid":"<hostUuid>","primaryStorageUuidForRootVolume":"<primaryStorageUuidForRootVolume>","defaultL3NetworkUuid":"<defaultL3NetworkUuid>","name":"<name>","description":"<description>","type":"<type>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "template", "description": "desc", "state": "Enabled" } }Change History
This API has no change history records yet.
