Skip to main content
POST
Power virtual machine

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <credential> to https://customer-api.mountthor.com. People use the session that mthr login stores (a token starting mt_session_, valid for up to 12 hours). Automation uses a service-account credential (starting mt_sa_v1_, valid for 90 days) from Create credential. Each operation names the permission it needs. Service accounts hold permissions through custom roles, and some operations refuse them; those operations say so.

Path Parameters

name
string
required

Body

application/json
operation
enum<string>
required
Available options:
POWER_OPERATION_ON,
POWER_OPERATION_OFF,
POWER_OPERATION_REBOOT,
POWER_OPERATION_RESUME,
POWER_OPERATION_KILL

Response

The power operation was accepted.

powerOperationId
string

Identifies the requested power operation.