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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | Root password for the virtual machine | |
| virtualMachineId | Yes | Virtual Machine ID |
Implementation Reference
- types.d.ts:2267-2279 (schema)TypeScript interface definition for the 'VPS_setRootPasswordV1' tool schema, specifying input parameters: virtualMachineId (number) and password (string), with any response type."VPS_setRootPasswordV1": { params: { /** * Virtual Machine ID */ virtualMachineId: number; /** * Root password for the virtual machine */ password: string; }; response: any; // Response structure will depend on the API };