# space.highport.admin.getQuota

> Published by [lexicons.highport.space](https://lexicon.garden/identity/did:plc:ciygg5hma4q7ah2kxaszkyob)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.getQuota)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.getQuota/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ciygg5hma4q7ah2kxaszkyob/space.highport.admin.getQuota/examples)

## Definitions

### `space.highport.admin.getQuota`

**Type**: `query`

Every quota for one DID: the limit in effect, the deployment default, and any operator override.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `quotas` | `array` | Yes |  |

### `space.highport.admin.getQuota#quotaView`

**Type**: `object`

One quota for one identity.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | Yes | The limit in effect: the override if there is one, otherwise the default. Sites, tiles and spaces are counts; tileBytes, maxBlobBytes and monthlyBandwidthBytes are bytes. |
| `quota` | `string` | Yes |  |
| `setBy` | `string` (did) | No | The operator who set the override. Absent when there is none. |
| `reason` | `string` | No |  |
| `default` | `integer` | Yes | The deployment default, which applies when there is no override. |
| `updatedAt` | `string` (datetime) | No |  |
| `overridden` | `boolean` | Yes |  |

## Raw Schema

```json
{
  "id": "space.highport.admin.getQuota",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "quotas"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            },
            "quotas": {
              "type": "array",
              "items": {
                "ref": "#quotaView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "did"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did"
          }
        }
      },
      "description": "Every quota for one DID: the limit in effect, the deployment default, and any operator override."
    },
    "quotaView": {
      "type": "object",
      "required": [
        "quota",
        "limit",
        "default",
        "overridden"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "minimum": 0,
          "description": "The limit in effect: the override if there is one, otherwise the default. Sites, tiles and spaces are counts; tileBytes, maxBlobBytes and monthlyBandwidthBytes are bytes."
        },
        "quota": {
          "type": "string",
          "knownValues": [
            "sites",
            "tiles",
            "tileBytes",
            "spaces",
            "maxBlobBytes",
            "monthlyBandwidthBytes"
          ]
        },
        "setBy": {
          "type": "string",
          "format": "did",
          "description": "The operator who set the override. Absent when there is none."
        },
        "reason": {
          "type": "string",
          "maxLength": 1000
        },
        "default": {
          "type": "integer",
          "minimum": 0,
          "description": "The deployment default, which applies when there is no override."
        },
        "updatedAt": {
          "type": "string",
          "format": "datetime"
        },
        "overridden": {
          "type": "boolean"
        }
      },
      "description": "One quota for one identity."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
