The process-template command starts a template operation for the instance.

JSON Input Data Format
{
    "id": string,
    "operation": string
}
id * Specifies the ID of the instance.
operation * Specifies the template operation that will be initiated, which includes:
  • template
    This operation will stop the virtual machine and designate it as a template machine, which can be used to create linked (instant) clones.
  • machine
    This operation will convert the template machine back to a virtual machine. IMPORTANT: All linked clones will be deleted.
  • lock
    This operation will enable maintenance mode and start the template machine. IMPORTANT: All linked clones will be stopped and disabled.
  • unlock
    This operation will disable maintenance mode and stop the template machine. All linked clones will be reinitialized with the updated template and enabled.
  • * Indicates a mandatory field.

    Code Snippets
    Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


    Successful Response
    {
        "result": "OK",
        "payload": "The process was successfully completed"
    ]
    }

    Failed Response
    {
        "result": "ERR",
        "message": "Error message ..."
    }