POST
/
get_workergroup_logs
/
get workergroup logs
curl --request POST \
  --url https://run.vast.ai/get_workergroup_logs/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 12345,
  "tail": 1000
}'
{
  "logs": "2023-10-01 12:00:00 - Workergroup started\n2023-10-01 12:01:00 - Instance scaled up"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
integer
default:12345
required

ID of the worker group

Required range: x >= 1
Example:

12345

tail
integer
default:10000

Number of log lines to retrieve from the end

Required range: x >= 1
Example:

1000

Response

200 - application/json

Logs successfully retrieved.

logs
string

The workergroup logs

Example:

"2023-10-01 12:00:00 - Workergroup started\n2023-10-01 12:01:00 - Instance scaled up"