VPS_setRootPasswordV1
Update the root password for a specified virtual machine in Hostinger’s VPS infrastructure. Use this tool to securely modify administrative credentials for VPS instances.
Instructions
Set root password for a specified virtual machine.
Requirements for password are same as in the recreate virtual machine endpoint.
Use this endpoint to update administrator credentials for VPS instances.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
password | Yes | Root password for the virtual machine | |
virtualMachineId | Yes | Virtual Machine ID |
Input Schema (JSON Schema)
{
"properties": {
"password": {
"description": "Root password for the virtual machine",
"type": "string"
},
"virtualMachineId": {
"description": "Virtual Machine ID",
"type": "integer"
}
},
"required": [
"virtualMachineId",
"password"
],
"type": "object"
}