curl --request GET \
--url https://console.vast.ai/api/v0/workergroups/ \
--header 'Authorization: Bearer <token>'{
"success": true,
"results": [
{
"id": 123,
"min_load": 1,
"target_util": 0.9,
"cold_mult": 3,
"test_workers": 3,
"template_hash": "abc123def456",
"template_id": 456,
"search_query": "verified=true rentable=true rented=false",
"launch_args": "--env VAR=value",
"gpu_ram": 24,
"endpoint_name": "my_endpoint",
"endpoint_id": 789,
"api_key": "your_api_key_here",
"created_at": "2023-10-01T12:00:00Z",
"user_id": 456
}
]
}Retrieves the list of workergroups associated with the authenticated user.
CLI Usage: vastai show workergroups
curl --request GET \
--url https://console.vast.ai/api/v0/workergroups/ \
--header 'Authorization: Bearer <token>'{
"success": true,
"results": [
{
"id": 123,
"min_load": 1,
"target_util": 0.9,
"cold_mult": 3,
"test_workers": 3,
"template_hash": "abc123def456",
"template_id": 456,
"search_query": "verified=true rentable=true rented=false",
"launch_args": "--env VAR=value",
"gpu_ram": 24,
"endpoint_name": "my_endpoint",
"endpoint_id": 789,
"api_key": "your_api_key_here",
"created_at": "2023-10-01T12:00:00Z",
"user_id": 456
}
]
}API key must be provided in the Authorization header
Success response
true
Show child attributes
123
1
0.9
3
3
"abc123def456"
456
Parsed search parameters as JSON object
"verified=true rentable=true rented=false"
"--env VAR=value"
24
"my_endpoint"
789
"your_api_key_here"
"2023-10-01T12:00:00Z"
456