{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-paginated-activation-instance-list-schema.json",
  "title": "PaginatedActivationInstanceList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-activation-instances-api-openapi.yml#/components/schemas/PaginatedActivationInstanceList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "page_size": {
      "type": [
        "integer",
        "null"
      ]
    },
    "page": {
      "type": [
        "integer",
        "null"
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ActivationInstance"
      }
    }
  },
  "$defs": {
    "ActivationInstance": {
      "type": "object",
      "description": "Serializer for the Activation Instance model.",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/StatusEnum"
        },
        "git_hash": {
          "type": "string"
        },
        "status_message": {
          "type": [
            "string",
            "null"
          ]
        },
        "activation_id": {
          "type": [
            "integer",
            "null"
          ],
          "readOnly": true
        },
        "organization_id": {
          "type": "integer",
          "readOnly": true
        },
        "started_at": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "ended_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "readOnly": true
        },
        "queue_name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        }
      },
      "required": [
        "activation_id",
        "ended_at",
        "id",
        "organization_id",
        "queue_name",
        "started_at"
      ]
    },
    "StatusEnum": {
      "enum": [
        "starting",
        "running",
        "pending",
        "failed",
        "stopping",
        "stopped",
        "deleting",
        "completed",
        "unresponsive",
        "error",
        "workers offline"
      ],
      "type": "string",
      "description": "* `starting` - starting\n* `running` - running\n* `pending` - pending\n* `failed` - failed\n* `stopping` - stopping\n* `stopped` - stopped\n* `deleting` - deleting\n* `completed` - completed\n* `unresponsive` - unresponsive\n* `error` - error\n* `workers offline` - workers offline"
    }
  }
}