Resource Center/Resource Pool/Auto-Scaling Group Operations
PUTAuto-Scaling Group OperationsSince 3.9.0SynchronousAuth Required
UpdateAutoScalingVmTemplate
UpdateAutoScalingVmTemplate
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe VM template UUID.
Body Fields
updateautoscalingvmtemplateObjectRequiredupdateautoscalingvmtemplate request body object.
nameStringOptional. The template name.
descriptionStringOptional. The detailed description.
vmInstanceNameStringOptional. The name of the VM instance.
vmInstanceDescriptionStringOptional. The description of the VM instance.
vmInstanceOfferingUuidStringOptional. The instance offering UUID of the VM instance.
imageUuidStringOptional. The UUID of the VM image.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/autoscaling/vmtemplate/{uuid}/actions
/zstack/v1/autoscaling/vmtemplate/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/autoscaling/vmtemplate/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updateautoscalingvmtemplate":{"name":"<name>","description":"<description>","vmInstanceName":"<vmInstanceName>","vmInstanceDescription":"<vmInstanceDescription>","vmInstanceOfferingUuid":"<vmInstanceOfferingUuid>","imageUuid":"<imageUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "name": "template", "description": "desc", "state": "Enabled" } }Change History
This API has no change history records yet.
