{
  "$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-activation-instance-schema.json",
  "title": "ActivationInstance",
  "description": "Serializer for the Activation Instance model.",
  "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/ActivationInstance",
  "type": "object",
  "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"
  ],
  "$defs": {
    "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"
    }
  }
}