POST
/
get_workergroup_workers
/
get workergroup workers
curl --request POST \
  --url https://run.vast.ai/get_workergroup_workers/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 12345
}'
{
  "workers": [
    {
      "id": 67890,
      "status": "running",
      "url": "http://192.168.1.10:8000",
      "created_at": "2023-10-01T12:00:00Z"
    }
  ]
}

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 workergroup to monitor

Required range: x >= 1
Example:

12345

Response

200 - application/json

Workers successfully retrieved.

workers
object[]

List of workers in this workergroup