Platform O&M/Automated O&M/XML Hook
PUTXML HookSince 5.2.0SynchronousAuth Required
UpdateVmUserDefinedXmlHookScript
UpdateVmUserDefinedXmlHookScript
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
updatevmuserdefinedxmlhookscriptObjectRequiredupdatevmuserdefinedxmlhookscript request body object.
uuidStringRequiredThe XML Hook UUID.
nameStringOptional. The XML Hook name.
descriptionStringOptional. The detailed information of the XML Hook.
hookScriptStringOptional. The XML Hook content.
startupStrategyStringOptional. Whether reboot associated VM instances immediately.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/vm-instances/xml-hook-script
/zstack/v1/vm-instances/xml-hook-script
Request Example
curl -X PUT 'http://{host}/zstack/v1/vm-instances/xml-hook-script' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatevmuserdefinedxmlhookscript":{"uuid":"<uuid>","name":"<name>","description":"<description>","hookScript":"<hookScript>","startupStrategy":"<startupStrategy>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{}Change History
This API has no change history records yet.
