---
title: "Get current resource usage"
method: GET
path: "/v1/databases/{databaseID}/metrics/summary"
tags: ["Metrics & Events"]
---

# Get current resource usage

`GET /v1/databases/{databaseID}/metrics/summary`

## Request

- Base URL: `https://api.liara.ir`
- URL: `https://api.liara.ir/v1/databases/{databaseID}/metrics/summary`
- Auth: HTTP bearer

Returns the database's current CPU, memory and disk usage. Team permission: `view`, `operate` or `manage`.

## Path parameters

- `databaseID` string, required: 24-character hexadecimal ID.

## Query parameters

- `teamID` string: 24-character hexadecimal ID.

## Response `200`

Current usage.

- object
  - `cpuUsage` InstantMetric[]: CPU usage as a fraction of the database's CPU limit.
    - `applet` string: The instance the value belongs to.
    - `value` unknown[]: `[timestamp, value]`. The timestamp is in Unix seconds; the value is a string.
      - unknown
  - `memoryUsage` InstantMetric[]: Memory usage in bytes.
    - `applet` string: The instance the value belongs to.
    - `value` unknown[]: `[timestamp, value]`. The timestamp is in Unix seconds; the value is a string.
      - unknown
  - `diskUsage` object
    - `size` string
    - `usage` string: Used space, in percent.
    - `reportedAt` number: When the usage was measured, in Unix seconds.

## Other responses

- `400`: `teamID` isn't a valid ID.
- `401`: The API token is missing, invalid or expired.
- `403`: With `teamID`: you aren't a member of the team (`team_not_found`), or you don't have the required permission on this database (`no_permission`).
- `404`: The database doesn't exist.
- `503`: The data is temporarily unavailable. Try again later.

---

[API](https://skmtc.dev/liara-cloud/apis/dbaas.md) - [All operations](https://skmtc.dev/liara-cloud/apis/dbaas/llms.txt) - [OpenAPI document](https://skmtc.dev/liara-cloud/apis/dbaas/revisions/f6f78c6f05c6?raw)
