{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-changelog-schema.json",
  "title": "Changelog",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-changelogs-api-openapi.yml#/components/schemas/Changelog",
  "properties": {
    "entityName": {
      "description": "The name of the device, manager or service to which the Change Log refers.",
      "type": "string"
    },
    "entityUid": {
      "description": "The unique identifier, represented as a UUID, of the device, manager or service to which the Change Log refers.",
      "format": "uuid",
      "type": "string"
    },
    "events": {
      "description": "The events recorded in this Change Log.",
      "items": {
        "$ref": "#/$defs/Event"
      },
      "type": "array"
    },
    "lastEventDate": {
      "description": "The time (UTC; represented using the RFC-3339 standard) at which the last event in the changelog occurred. You can perform range queries on this endpoint using the syntax `[lastEventDate:YYYY-MM-ddTHH:mm:ssZ TO lastEventDate:YYYY-MM-ddTHH:mm:ssZ]`: please note that this will need to be URL-encoded.",
      "format": "date-time",
      "type": "string"
    },
    "status": {
      "description": "The status of the Change Log.",
      "enum": [
        "ACTIVE",
        "COMPLETED",
        "UNKNOWN"
      ],
      "type": "string"
    },
    "uid": {
      "description": "The unique identifier, represented as a UUID, of the Change Log.",
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "uid"
  ],
  "type": "object",
  "$defs": {
    "Event": {
      "properties": {
        "action": {
          "description": "The action performed.",
          "enum": [
            "CREATE",
            "UPDATE",
            "DELETE",
            "ERROR",
            "UNKNOWN"
          ],
          "type": "string"
        },
        "changeRequestName": {
          "description": "The name of the Change Request associated with the Change Log event.",
          "type": "string"
        },
        "changeRequestUid": {
          "description": "The unique identifier, represented as a UUID, of the Change Request associated with the Change Log event.",
          "format": "uuid",
          "type": "string"
        },
        "commands": {
          "description": "The commands executed, if any, by the Change Log event.",
          "type": "string"
        },
        "date": {
          "description": "The time (UTC; represented using the RFC-3339 standard) at which the Change Log Event occurred.",
          "format": "date-time",
          "type": "string"
        },
        "description": {
          "description": "A human-readable description of the Change Log event.",
          "type": "string"
        },
        "diff": {
          "description": "A textual Diff representation of the changes made to the configuration.",
          "type": "string"
        },
        "username": {
          "description": "The username of the user that triggered the Change Log event.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}