# Danh sách máy ảo

`GET /v1/service/@id/vms` · quyền `services:read`

Các máy ảo của dịch vụ VPS.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id/vms` |
| Method | `GET` |
| Quyền (scope) | `services:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (không có body) |
| Token gọi được | token ứng dụng (`tinoat_`), token API cá nhân (`tinopat_`) |

## Tham số

| Tên | Vị trí | Kiểu | Bắt buộc | Mô tả |
| --- | --- | --- | --- | --- |
| `id` | đường dẫn | string | có | ID dịch vụ |

## Example request

```bash
curl "https://api.tino.vn/v1/service/100001/vms" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` là token có quyền `services:read`. Tham số đường dẫn trong ví dụ là giá trị mẫu.

SDK ([SDK & Ví dụ](/docs/sdk)): Python `client.vms.list(id)`, Node.js `await client.vms.list(id);`, PHP `$client->vms->list($id);`.

## Example response

```json
{
 "vms": {
  "600001": {
   "id": 600001,
   "ha": false,
   "built": true,
   "locked": false,
   "power": true,
   "status": "running",
   "status_lang": "vm_state_running",
   "password": "<redacted>",
   "sshkeys": [
    "ssh-ed25519 AAAA<public-key> user@example.com"
   ],
   "username": "root",
   "memory": 1024,
   "disk": 20,
   "swap": null,
   "additional_storage": [],
   "uptime": 639603,
   "template_id": "template-vm:321/321/base-321-disk-0.raw",
   "template_name": "Ubuntu 26.04",
   "template_data": [],
   "replication": false,
   "cloudinit": true,
   "…": "14 more key(s)"
  }
 }
}
```

Mẫu thật từ tài khoản thử, đã che dữ liệu cá nhân; mảng và chuỗi dài được rút gọn (`… N more item(s)`, `… N more line(s)`).
