cURL
curl --request GET \ --url https://console.vast.ai/api/v0/machines/ \ --header 'Authorization: Bearer <token>'
{ "machines": [ { "id": "<string>", "name": "<string>" } ] }
Fetches data for multiple machines associated with the authenticated user.
CLI Usage: vastai show machines [--user_id <user_id>]
vastai show machines [--user_id <user_id>]
API key must be provided in the Authorization header
The ID of the user whose machines are being requested.
A list of machines
Show child attributes
The unique identifier for the machine.
The name of the machine.