{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beyond-identity/json-schema/beyond-identity-list-realms-response-schema.json",
  "title": "List Realms Response",
  "description": "Response for ListRealms.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beyond-identity-realms-api-openapi.yml#/components/schemas/ListRealmsResponse",
  "type": "object",
  "properties": {
    "realms": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Realm"
      },
      "maxItems": 200,
      "description": "An unordered array of realms corresponding to the request."
    },
    "total_size": {
      "type": "integer",
      "format": "uint32",
      "description": "Total number of results returned by the operation. This value may be larger than the number of resources returned, such as when returning a single page where multiple pages are available.\n"
    },
    "next_page_token": {
      "type": "string",
      "description": "Token used to fetch the next set of results. If this field is omitted, there are no subsequent pages.\n"
    }
  },
  "required": [
    "realms",
    "total_size"
  ],
  "$defs": {
    "Realm": {
      "title": "Realm",
      "type": "object",
      "description": "A realm is a unique administrative domain within a tenant. Realms may be used to define multiple development environments or for isolated administrative domains.\n",
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the realm. This is automatically generated on creation. This field is immutable and read-only. This field is unique within the tenant.\n",
          "readOnly": true
        },
        "tenant_id": {
          "type": "string",
          "description": "A unique identifier of the realm's tenant. This is automatically set on creation. This field is immutable and read-only.\n",
          "readOnly": true
        },
        "display_name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^[^{}[\\]<>;:?\\\\/|*^%$#=~`!]*$",
          "description": "A human-readable name for the realm. This name is used for display purposes.\n"
        },
        "classification": {
          "type": "string",
          "description": "Classification of the realm. Can be either SECURE_WORFORCE or SECURE_CUSTOMER"
        },
        "create_time": {
          "type": "string",
          "format": "date-time",
          "description": "A time value given in ISO8601 combined date and time format that represents when the realm was created. This is automatically generated on creation. This field is read-only.\n",
          "readOnly": true
        },
        "update_time": {
          "type": "string",
          "format": "date-time",
          "description": "A time value given in ISO8601 combined date and time format that represents when the realm was last updated. This is automatically updated when the realm is updated. This field is read-only.\n",
          "readOnly": true
        }
      }
    }
  }
}