Every button sends a real request to the Hostinger API about the lab VPS srv2196542 (ID 2196542), then shows exactly what was sent and what came back. The token stays on the server; you only see its last 4 characters.
These exist and customers can use them, but they're left out here for safety: they would erase or revert the lab VPS, cost money, change logins, expose other servers on the account, or simply don't apply to this VPS. You just need to know they exist. All paths start with /api/vps/v1; details and examples are in the API documentation.
| Method | Operation | Path | Why not here |
|---|---|---|---|
| Virtual machines | |||
| POST | Purchase new virtual machine | /virtual-machines | Costs money / creates a new service |
| Power | |||
| POST | Start virtual machine | /virtual-machines/{virtualMachineId}/start | Power change (left out together with stop) |
| POST | Stop virtual machine | /virtual-machines/{virtualMachineId}/stop | Takes the VPS offline |
| Snapshot | |||
| DELETE | Delete snapshot | /virtual-machines/{virtualMachineId}/snapshot | Deletes the only snapshot |
| POST | Restore snapshot | /virtual-machines/{virtualMachineId}/snapshot/restore | Reverts the whole VPS |
| Backups | |||
| POST | Restore backup | /virtual-machines/{virtualMachineId}/backups/{backupId}/restore | Overwrites everything on the VPS |
| Rebuild and recovery | |||
| DELETE | Stop recovery mode | /virtual-machines/{virtualMachineId}/recovery | Reboots the VPS out of rescue mode |
| POST | Start recovery mode | /virtual-machines/{virtualMachineId}/recovery | Takes the VPS offline into rescue mode |
| POST | Recreate virtual machine | /virtual-machines/{virtualMachineId}/recreate | Erases all data on the VPS |
| POST | Setup purchased virtual machine | /virtual-machines/{virtualMachineId}/setup | Costs money / creates a new service |
| Access | |||
| PUT | Set panel password | /virtual-machines/{virtualMachineId}/panel-password | Changes login credentials |
| PUT | Set root password | /virtual-machines/{virtualMachineId}/root-password | Changes login credentials |
| DELETE | Remove virtual machine SSH keys | /virtual-machines/{virtualMachineId}/ssh-keys | Changes who can log in |
| GET | List virtual machine SSH keys | /virtual-machines/{virtualMachineId}/ssh-keys | Shows who can log in |
| POST | Add virtual machine SSH keys | /virtual-machines/{virtualMachineId}/ssh-keys | Changes who can log in |
| Account SSH public keys | |||
| GET | Get public keys | /public-keys | Shows who can log in |
| POST | Create public key | /public-keys | Changes who can log in |
| DELETE | Delete public key | /public-keys/{publicKeyId} | Changes who can log in |
| Post-install scripts | |||
| GET | Get post-install scripts | /post-install-scripts | Account-wide scripts; can contain secrets |
| POST | Create post-install script | /post-install-scripts | Account-wide; runs as root on new installs |
| DELETE | Delete post-install script | /post-install-scripts/{postInstallScriptId} | Account-wide; runs as root on new installs |
| GET | Get post-install script | /post-install-scripts/{postInstallScriptId} | Account-wide scripts; can contain secrets |
| PUT | Update post-install script | /post-install-scripts/{postInstallScriptId} | Account-wide; runs as root on new installs |
| Network | |||
| DELETE | Reset hostname | /virtual-machines/{virtualMachineId}/hostname | Changes network identity / DNS |
| PUT | Set hostname | /virtual-machines/{virtualMachineId}/hostname | Changes network identity / DNS |
| PUT | Set nameservers | /virtual-machines/{virtualMachineId}/nameservers | Changes network identity / DNS |
| DELETE | Delete PTR record | /virtual-machines/{virtualMachineId}/ptr/{ipAddressId} | Changes network identity / DNS |
| POST | Create PTR record | /virtual-machines/{virtualMachineId}/ptr/{ipAddressId} | Changes network identity / DNS |
| Firewall | |||
| GET | Get firewall list | /firewall | Account-wide: shows other servers' rules |
| POST | Create new firewall | /firewall | Account-wide, can block access |
| DELETE | Delete firewall | /firewall/{firewallId} | Account-wide, can block access |
| GET | Get firewall details | /firewall/{firewallId} | Account-wide: shows other servers' rules |
| POST | Activate firewall | /firewall/{firewallId}/activate/{virtualMachineId} | Account-wide, can block access |
| POST | Deactivate firewall | /firewall/{firewallId}/deactivate/{virtualMachineId} | Account-wide, can block access |
| POST | Create firewall rule | /firewall/{firewallId}/rules | Account-wide, can block access |
| PUT | Replace all firewall rules in group | /firewall/{firewallId}/rules | Account-wide, can block access |
| DELETE | Delete firewall rule | /firewall/{firewallId}/rules/{ruleId} | Account-wide, can block access |
| PUT | Update firewall rule | /firewall/{firewallId}/rules/{ruleId} | Account-wide, can block access |
| POST | Sync firewall to all assigned VMs | /firewall/{firewallId}/sync | Account-wide, can block access |
| POST | Sync firewall | /firewall/{firewallId}/sync/{virtualMachineId} | Account-wide, can block access |
| Docker Manager | |||
| GET | Get project list | /virtual-machines/{virtualMachineId}/docker | Not available: the lab VPS has no Docker |
| POST | Create new project | /virtual-machines/{virtualMachineId}/docker | Not available: the lab VPS has no Docker |
| GET | Get project contents | /virtual-machines/{virtualMachineId}/docker/{projectName} | Not available: the lab VPS has no Docker |
| GET | Get project containers | /virtual-machines/{virtualMachineId}/docker/{projectName}/containers | Not available: the lab VPS has no Docker |
| DELETE | Delete project | /virtual-machines/{virtualMachineId}/docker/{projectName}/down | Not available: the lab VPS has no Docker |
| GET | Get project logs | /virtual-machines/{virtualMachineId}/docker/{projectName}/logs | Not available: the lab VPS has no Docker |
| POST | Restart project | /virtual-machines/{virtualMachineId}/docker/{projectName}/restart | Not available: the lab VPS has no Docker |
| POST | Start project | /virtual-machines/{virtualMachineId}/docker/{projectName}/start | Power change (left out together with stop) |
| POST | Stop project | /virtual-machines/{virtualMachineId}/docker/{projectName}/stop | Takes the VPS offline |
| POST | Update project | /virtual-machines/{virtualMachineId}/docker/{projectName}/update | Not available: the lab VPS has no Docker |
| Monarx malware scanner | |||
| DELETE | Uninstall Monarx | /virtual-machines/{virtualMachineId}/monarx | Installs/removes software on the VPS |
| GET | Get scan metrics | /virtual-machines/{virtualMachineId}/monarx | Kept out to keep the lab focused |
| POST | Install Monarx | /virtual-machines/{virtualMachineId}/monarx | Installs/removes software on the VPS |
| Actions | |||
| GET | Get action details | /virtual-machines/{virtualMachineId}/actions/{actionId} | Kept out to keep the lab focused |
| Catalog info | |||
| GET | Get data center list | /data-centers | Kept out to keep the lab focused |
| GET | Get templates | /templates | Kept out to keep the lab focused |
| GET | Get template details | /templates/{templateId} | Kept out to keep the lab focused |