{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linode/json-schema/linode-paginated-object-storage-key-list-schema.json",
  "title": "PaginatedObjectStorageKeyList",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linode-object-storage-api-openapi.yml#/components/schemas/PaginatedObjectStorageKeyList",
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ObjectStorageKey"
          }
        }
      }
    }
  ],
  "$defs": {
    "ObjectStorageKey": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "The unique ID of this key."
        },
        "label": {
          "type": "string",
          "description": "The label for this key."
        },
        "access_key": {
          "type": "string",
          "description": "The access key for S3-compatible requests."
        },
        "secret_key": {
          "type": "string",
          "description": "The secret key. Only returned at creation time."
        },
        "limited": {
          "type": "boolean",
          "description": "Whether this key has limited bucket access."
        },
        "bucket_access": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "region": {
                "type": "string",
                "description": "The region of the bucket."
              },
              "bucket_name": {
                "type": "string",
                "description": "The name of the bucket."
              },
              "permissions": {
                "type": "string",
                "enum": [
                  "read_only",
                  "read_write"
                ],
                "description": "The permission level."
              }
            }
          },
          "description": "Specific bucket access permissions for this key."
        }
      }
    },
    "Pagination": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer",
          "description": "The current page number."
        },
        "pages": {
          "type": "integer",
          "description": "The total number of pages."
        },
        "results": {
          "type": "integer",
          "description": "The total number of results."
        }
      }
    }
  }
}