---
search:
  tags:
    - Tenants
    - GET
seo:
  description: >-
    Returns a tenant: the version it runs, its settings, the limits that hold
    for it, its… Reference for the GET /_luna/tenants/{tenant} endpoint in the
    Luna API.
sidebar:
  label: Get a tenant
  badge: GET
title: Get a tenant
type: openapi-operation
---
Returns a tenant: the version it runs, its settings, the limits that hold for it, its usage counters and the luna types its code defines.

`GET /_luna/tenants/{tenant}`

**Responses**

- `200` — The tenant.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "tenant": "string",
  "url": "string",
  "routesUrl": "string",
  "version": 0,
  "running": true,
  "config": {
    "quotas": {
      "cpuPercent": null,
      "requestsPerSecond": null,
      "sandboxes": null,
      "storageBytes": null
    },
    "hostnames": [],
    "grants": {},
    "outbound": null,
    "retentionDays": null,
    "historyDays": null,
    "otlp": null,
    "labels": {},
    "hostLabel": null
  },
  "ceilings": {
    "lunaMemoryMib": 0,
    "lunaCpu": 0,
    "tenantMemoryMib": 0,
    "lunaDefaultMemoryMib": 0,
    "lunaDefaultCpu": 0,
    "lunaReserve": true,
    "historyDays": 0
  },
  "usage": {
    "requests": 0,
    "storageBytes": 0,
    "outboundRequests": 0,
    "outboundBytes": 0
  },
  "lunaTypes": [
    {
      "name": "string",
      "index": true,
      "language": "string",
      "package": "string",
      "visibility": "string",
      "key": [
        "string"
      ],
      "handlers": 0,
      "handlerNames": [
        "string"
      ],
      "crons": 0,
      "streams": 0,
      "memoryMib": 0,
      "cpu": 0,
      "reserve": true,
      "size": {
        "memoryMib": 0,
        "cpu": 0
      },
      "definition": {
        "key": [
          {}
        ],
        "visibility": "string",
        "idleTimeoutMs": 0,
        "handlers": [
          {}
        ],
        "tables": [
          {}
        ],
        "sandboxes": {},
        "buckets": {},
        "isolates": {},
        "streams": {},
        "schedules": [
          {}
        ],
        "listen": [
          {}
        ],
        "index": true
      }
    }
  ],
  "wakes": {
    "nextWake": 0,
    "types": [
      {}
    ]
  }
}
```
