Manage a service (power, console, usage, lifecycle, backups)
Control a provisioned service: power signals, console access, usage stats, suspend/unsuspend, reinstall, resize, reset-password, backups and termination.
managepowerconsolesuspendresizebackupsterminate
Once a service exists, you drive its whole lifecycle through /services/{id}/... endpoints. The same actions map to the panel tabs (Console, Backups, Settings, etc.) your customers would otherwise use manually.
Power signals
Send start / stop / restart / kill via POST /services/{id}/power.
# Get a short-lived console/websocket token for a live terminal
curl https://control.victuscloud.com/api/reseller/v1/services/$SID/console \
-H "Authorization: Bearer $VICTUS_KEY"
# Send a single command to the running service
curl -X POST https://control.victuscloud.com/api/reseller/v1/services/$SID/command \
-H "Authorization: Bearer $VICTUS_KEY" \
-H "Content-Type: application/json" \
-d '{ "command": "say Restarting in 30s" }'
Live usage stats
bash
curl https://control.victuscloud.com/api/reseller/v1/services/$SID/usage \
-H "Authorization: Bearer $VICTUS_KEY"
# returns CPU %, memory, disk and network for the service
Suspend, unsuspend and terminate
Suspend a service when a customer stops paying you; unsuspend when they return. Terminate deletes it and stops all future charges.
DELETE is irreversible — the service, its files and any VPS disk are removed. Take a backup or snapshot first if you might need the data, and confirm on your side before calling it.
Reinstall, resize and reset password
bash
# Reinstall / rebuild from a template or egg (wipes the service)
curl -X POST https://control.victuscloud.com/api/reseller/v1/services/$SID/reinstall \
-H "Authorization: Bearer $VICTUS_KEY"
# Resize to a different plan (upgrade / downgrade); credit cost adjusts
curl -X POST https://control.victuscloud.com/api/reseller/v1/services/$SID/resize \
-H "Authorization: Bearer $VICTUS_KEY" \
-H "Content-Type: application/json" \
-d '{ "code": "vps-4c-8g" }'
# Reset the root / service password (returns or emails the new one)
curl -X POST https://control.victuscloud.com/api/reseller/v1/services/$SID/reset-password \
-H "Authorization: Bearer $VICTUS_KEY"
Reinstall wipes the service
Reinstall rebuilds from scratch and erases current data. Warn the customer and back up first. Resize may require a short reboot; a VPS downsize can be blocked if current disk usage exceeds the smaller plan.
Backups
bash
# List backups
curl https://control.victuscloud.com/api/reseller/v1/services/$SID/backups \
-H "Authorization: Bearer $VICTUS_KEY"
# Create a backup / snapshot now
curl -X POST https://control.victuscloud.com/api/reseller/v1/services/$SID/backups \
-H "Authorization: Bearer $VICTUS_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "pre-reinstall" }'
Actions are queued
Lifecycle actions (reinstall, resize, backup) return 202 and run in the background. Watch the service status or the matching webhook event instead of assuming instant completion.