# Chi tiết máy ảo

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

Thông tin một máy ảo: trạng thái, tài nguyên, mẫu hệ điều hành, khoá SSH.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id/vms/@vmid` |
| 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ụ |
| `vmid` | đường dẫn | string | có | ID máy ảo |

## Example request

```bash
curl "https://api.tino.vn/v1/service/100001/vms/600001" \
  -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.get(id, vmid)`, Node.js `await client.vms.get(id, vmid);`, PHP `$client->vms->get($id, $vmid);`.

## Example response

```json
{
 "vm": {
  "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": 639639,
  "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)`).
