# VPS resources

`GET /v1/service/@id/resources` · scope `services:read`

Free and used resources (CPU, RAM, disk, IP).

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id/resources` |
| Method | `GET` |
| Scope | `services:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (no body) |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Service ID |

## Example request

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

`$TINO_TOKEN` is a token with the scope `services:read`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.services.get_resources(id)`, Node.js `await client.services.getResources(id);`, PHP `$client->services->getResources($id);`.

## Example response

```json
{
 "limit": {
  "mem": 0,
  "cpu": 0,
  "ips": 0,
  "priv_ips": 0,
  "disk": 0,
  "additional_storage": 0
 },
 "total": {
  "cpu": 1,
  "mem": 1024,
  "ips": 1,
  "priv_ips": 0,
  "disk": 20,
  "additional_storage": 0
 }
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
