Controls

Available for user tokens and project keys

Controls

POST https://api.suble.io/projects/:projectId/vm/:vmId/controls/:type

This endpoint allows you to start, stop or reset a virtual machine.

Path Parameters

NameTypeDescription

projectId

string

Unique id for the project

vmId

string

Unique id for the virtual machine

type

string

Enum (start / stop / reset)

Headers

NameTypeDescription

Authorization

string

User token or project key

{
        "_id": ObjectId,
        "user": ObjectId, // nullable
        "apikey": String, // nullable
        "type": String,
        "command": String,
        "vm": String,
        "running": Boolean,
        "progress": Number,
        "date": Number // Date time unix
}

Last updated