{
  "id": "usage_report",
  "title": "Usage report requests",
  "url": "https://redis.io/docs/latest/operate/rs/8.0/references/rest-api/requests/usage_report/",
  "summary": "REST API request to get the database usage report from the cluster.",
  "content": "\n| Method | Path | Description |\n|--------|------|-------------|\n| [GET](#get-usage-report) | `/v1/usage_report` | Get the cluster's database usage report |\n\n## Get usage report {#get-usage-report}\n\n```sh\nGET /v1/usage_report\n```\n\nGets the database usage report from the cluster as Newline Delimited JSON (NDJSON). The response is returned as a gzip file if the request includes the `Accept-Encoding: gzip` header; otherwise, it returns an NDJSON file directly. The final line in the file is the response's MD5 hash.\n\n### Request {#get-request}\n\n#### Example HTTP request\n\n```sh\nGET /v1/usage_report\n```\n\n#### Headers\n\n| Key | Value | Description |\n|-----|-------|-------------|\n| Host | cnm.cluster.fqdn | Domain name |\n| Accept | application/json | Accepted media type |\n| Accept-Encoding | gzip | (Optional) Request gzip compression for the response |\n\n### Response {#get-response}\n\nReturns Newline Delimited JSON (NDJSON), which represents the usage report for every database in the cluster. The response is returned as a gzip file if the request includes the `Accept-Encoding: gzip` header; otherwise, it returns an NDJSON file directly. The final line in the file is the response's MD5 hash.\n\n| Field | Type/Value | Description |\n|-------|------------|-------------|\n| active_active | boolean | Indicates if Active-Active is enabled |\n| api_version | string | API version |\n| backup | boolean | Indicates if backup is enabled |\n| bdb_uid | string | The database's unique ID |\n| cluster_name | string | Cluster name |\n| cluster_uuid | string | Cluster's unique ID |\n| date | string | Date of the report, including time and time zone |\n| \u003cspan class=\"break-all\"\u003edominant_shard_criteria\u003c/span\u003e | \"mem\"\u003cbr /\u003e\"ops\"\u003cbr /\u003e\"rof\" | Dominant criteria for shard selection |\n| type | \"core\"\u003cbr /\u003e\"premium\"\u003cbr /\u003e\"auto_tiering\" | Database type |\n| shard_type | \"micro\"\u003cbr /\u003e\"normal\"\u003cbr /\u003e\"large\"\u003cbr /\u003e\"auto_tiering\" | Shard type |\n| no_eviction | boolean | Indicates if no eviction policy is applied |\n| ops/sec | number | Consolidated ops/sec for the whole database |\n| persistence | boolean | Indicates if persistence is enabled |\n| \u003cspan class=\"break-all\"\u003eprovisioned_memory\u003c/span\u003e | number | Provisioned memory in bytes |\n| replication | boolean | Indicates if replication is enabled |\n| software_version | string | The Redis Software version |\n| used_memory | number | Used memory in bytes |\n| \u003cspan class=\"break-all\"\u003eusing_redis_search\u003c/span\u003e | boolean | Indicates if Redis Search is in use |\n| \u003cspan class=\"break-all\"\u003emaster_shards_count\u003c/span\u003e | number | Amount of primary shards |\n| license | object | License information for the cluster\u003cbr /\u003e \"license\": {\u003cbr /\u003e    \"activation_date\": string,\u003cbr /\u003e    \"expiration_date\": string,\u003cbr /\u003e    \"ram_shards_in_use\": integer,\u003cbr /\u003e    \"ram_shards_limit\": integer,\u003cbr /\u003e    \"flash_shards_in_use\": integer,\u003cbr /\u003e    \"flash_shards_limit\": integer,\u003cbr /\u003e    \"shards_limit\": integer\u003cbr /\u003e}\u003cbr /\u003e**activation_date**: License activation date and time\u003cbr /\u003e**expiration_date**: License expiration date and time\u003cbr /\u003e**ram_shards_in_use**: Amount of RAM shards in use\u003cbr /\u003e**ram_shards_limit**: Amount of RAM shards allowed\u003cbr /\u003e**flash_shards_in_use**: Amount of flash shards in use\u003cbr /\u003e**flash_shards_limit**: Amount of flash shards allowed\u003cbr /\u003e**shards_limit**: Total shards limit |\n\n#### Example response\n\n```json\n{\n \"cluster_name\": \"mycluster.local\",\n \"cluster_uuid\": \"7e9f93c6-825e-4bbb-a067-7f6306b98609\",\n \"date\": \"2024-08-08T13:16:00.000000Z\",\n \"software_version\": \"7.0.0\",\n \"api_version\" \"1\",\n \"bdb_uid\": \"1\",\n \"type\": \"auto_tiering\",\n \"shard_type\": \"auto_tiering\",\n \"dominant_shard_criteria\": \"rof\",\n \"provisioned_memory\": 1073741824,\n \"used_memory\": 5828776,\n \"master_shards_count\": 3,\n \"no_eviction\": false,\n \"persistence\": false,\n \"backup\": false,\n \"using_redis_search\": false,\n \"ops_sec\": 0,\n \"replication\": false,\n \"active_active\": false,\n \"license\": {\n   \"activation_date\": \"2018-12-31T00:00:00Z\",\n   \"expiration_date\": \"2019-12-31T00:00:00Z\",\n   \"ram_shards_in_use\": 0,\n   \"ram_shards_limit\": 300,\n   \"flash_shards_in_use\": 0,\n   \"flash_shards_limit\": 100,\n   \"shards_limit\": 400\n }\n}\n{\n \"cluster_name\": \"mycluster.local\",\n \"cluster_uuid\": \"7e9f93c6-825e-4bbb-a067-7f6306b98609\",\n \"date\": \"2024-08-08T13:17:00.000000Z\",\n \"software_version\": \"7.0.0\",\n \"api_version\" \"1\",\n \"bdb_uid\": \"1\",\n \"type\": \"auto_tiering\",\n \"shard_type\": \"auto_tiering\",\n \"dominant_shard_criteria\": \"rof\",\n \"provisioned_memory\": 1073741824,\n \"used_memory\": 5828776,\n \"master_shards_count\": 3,\n \"no_eviction\": false,\n \"persistence\": false,\n \"backup\": false,\n \"using_redis_search\": false,\n \"ops_sec\": 0,\n \"replication\": false,\n \"active_active\": false,\n \"license\": {\n   \"activation_date\": \"2018-12-31T00:00:00Z\",\n   \"expiration_date\": \"2019-12-31T00:00:00Z\",\n   \"ram_shards_in_use\": 0,\n   \"ram_shards_limit\": 300,\n   \"flash_shards_in_use\": 0,\n   \"flash_shards_limit\": 100,\n   \"shards_limit\": 400\n }\n}\n...\n\u003cMD5 hash of the entire response\u003e\n```\n\n#### Status codes {#get-status-codes}\n\n| Code | Description |\n|------|-------------|\n| [200 OK](https://www.rfc-editor.org/rfc/rfc9110.html#name-200-ok) | No error |\n| [400 Bad Request](https://www.rfc-editor.org/rfc/rfc9110.html#name-400-bad-request) | Invalid date format |\n| [503 Service Unavailable](https://www.rfc-editor.org/rfc/rfc9110.html#name-503-service-unavailable) | Unreachable node |\n",
  "tags": ["docs","operate","rs"],
  "last_updated": "2026-07-23T12:05:56-05:00",
  "children": []
}
