Skip to main content
Platform O&M/Automated O&M/XML Hook

UpdateVmUserDefinedXmlHookScript

UpdateVmUserDefinedXmlHookScript

PUT/zstack/v1/vm-instances/xml-hook-script

Operation ID

UpdateVmUserDefinedXmlHookScript

Since

5.2.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • uuid
    StringRequired

    The XML Hook UUID.

  • name
    String

    Optional. The XML Hook name.

  • description
    String

    Optional. The detailed information of the XML Hook.

  • hookScript
    String

    Optional. The XML Hook content.

  • startupStrategy
    String

    Optional. Whether reboot associated VM instances immediately.

Responses

200 OK
200 OK

On success, this API returns an empty JSON object {}.