> ## Documentation Index > Fetch the complete documentation index at: https://bunny.net/docs/llms.txt > Use this file to discover all available pages before exploring further. # Live metrics of databases > Where each database named in the body is loaded: on a primary (with the regions serving it), on replicas only, or nowhere. A database is left out when the account does not own it, when its group's metrics could not be read, or when the cluster names a primary region the API does not know; the databases of a group whose liveness could not be checked answer Offline. A key granted named databases sees those only. ### Permission `Database.Read` on the database collection. ## OpenAPI ````yaml https://api.bunny.net/database/docs/private/api.json post /v3/live/live_db openapi: 3.1.0 info: title: Bunny Database Backend API description: '' contact: name: EdgeScripting Team url: https://bunny.net/ email: support@bunny.net version: 0.0.157 servers: - url: https://api.bunny.net/database security: [] tags: - name: Database description: >- A database of the account: created, read, updated and deleted here, with its usage and statistics, and the tokens its clients connect with. Where it is hosted, and its primary and replicas, are managed by Bunny. - name: Live Metrics description: |- Where databases are loaded right now: on a primary, on replicas only, or nowhere. - name: Configuration description: |- General requests to get the actual configuration of the Environment. paths: /v3/live/live_db: post: tags: - Live Metrics summary: Live metrics of databases description: >- Where each database named in the body is loaded: on a primary (with the regions serving it), on replicas only, or nowhere. A database is left out when the account does not own it, when its group's metrics could not be read, or when the cluster names a primary region the API does not know; the databases of a group whose liveness could not be checked answer Offline. A key granted named databases sees those only. ### Permission `Database.Read` on the database collection. requestBody: description: The databases to ask about. content: application/json: schema: $ref: '#/components/schemas/LiveMetricsDatabasesV3Payload' required: true responses: '200': description: The live status of each database asked for. content: application/json: schema: $ref: '#/components/schemas/LiveMetricsDatabasesV3Response' '400': description: >- A body that is not JSON, names an unknown key, or carries a value of the wrong type (an id that is not `db_` and a ULID); or `DbIds` empty or over 250 ids. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '401': description: >- Credentials missing or not accepted (an unknown, expired or revoked key or token), or an account the product is not enabled for. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '403': description: >- An API key granted permissions, but not `Database.Read` on the database collection, or called from an address outside its allowlist; or a subuser without the `SubuserManage` role. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '429': description: The account's request rate is over its limit; retry later. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' '500': description: The server failed; the detail names no cause. content: application/problem+json: schema: $ref: '#/components/schemas/Problem' security: - Bearer: [] - AccessKey: - Database.Read components: schemas: LiveMetricsDatabasesV3Payload: description: The databases to ask about. type: object properties: DbIds: description: One to 250 database ids. type: array items: $ref: '#/components/schemas/DatabaseId' additionalProperties: false required: - DbIds LiveMetricsDatabasesV3Response: description: The live status of each database asked for. type: object properties: LiveMetrics: description: >- By id; ids not owned, not named by the key, or unreadable are absent. type: object additionalProperties: $ref: '#/components/schemas/LiveStatusV3' required: - LiveMetrics Problem: description: A problem details body (RFC 9457). type: object properties: title: description: The status's reason phrase, else `Error`. type: string type: description: 'The problem type: `about:blank`, the status says it all.' type: string status: description: The HTTP status. type: integer format: uint16 minimum: 0 maximum: 65535 detail: description: What went wrong in this occurrence. type: string nullable: true instance: description: The request path. type: string nullable: true details: description: 'Extension: structured detail the route attached.' required: - type - title - status DatabaseId: description: 'A database id: `db_` and a ULID.' type: string LiveStatusV3: description: Where a database is loaded right now. oneOf: - description: Loaded on a primary, and on its replicas. type: object properties: State: type: string const: Live Metadata: type: object properties: Main: $ref: '#/components/schemas/PossibleRegion' description: The primary's region. Replicas: description: The replicas' regions the API knows. type: array items: $ref: '#/components/schemas/PossibleRegion' required: - Main - Replicas required: - State - Metadata - description: 'Loaded on replicas only: no primary answers.' type: object properties: State: type: string const: ReplicaOnly required: - State - description: Loaded nowhere, or the group's liveness could not be checked. type: object properties: State: type: string const: Offline required: - State PossibleRegion: description: Define a Region for Bunny. type: string enum: - AMS - ASB - AT - BE - BO - BR - BU - CA - CO - CZ - DE - DEN - DK - ES - FR - GA - GR - HK - HR - ID - IL - ISR - IT - JH - JP - LA - MI - MX - MY - NG - NY - PH - PL - SE - SG - SIL - SYD - TH - TR - TX - UK - WA securitySchemes: Bearer: type: apiKey in: header name: Authorization description: A JWT Token linked to your account. AccessKey: type: apiKey in: header name: AccessKey description: >- The account API key, or an API key granted the permission an operation names as the scope of its `AccessKey` requirement (and under "Permission"). Permissions: `Database.Create`, `Database.Delete`, `Database.Read`, `Database.Statistics`, `Database.Update`. ```` This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.