{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-activity-firewall-schema.json",
  "title": "ActivityFirewall",
  "description": "The information about the firewall activity.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-activity-api-openapi.yml#/components/schemas/ActivityFirewall",
  "type": "object",
  "properties": {
    "date": {
      "$ref": "#/$defs/Date"
    },
    "destinationip": {
      "$ref": "#/$defs/DestinationIp"
    },
    "sourceip": {
      "$ref": "#/$defs/SourceIp"
    },
    "sourceport": {
      "$ref": "#/$defs/SourcePort"
    },
    "destinationport": {
      "$ref": "#/$defs/DestinationPort"
    },
    "categories": {
      "$ref": "#/$defs/categories"
    },
    "verdict": {
      "$ref": "#/$defs/verdict"
    },
    "time": {
      "$ref": "#/$defs/Time"
    },
    "timestamp": {
      "$ref": "#/$defs/Timestamp"
    },
    "identities": {
      "$ref": "#/$defs/identities"
    },
    "protocol": {
      "$ref": "#/$defs/Protocol"
    },
    "rule": {
      "$ref": "#/$defs/Rule"
    },
    "type": {
      "type": "string",
      "description": "The type of the request. A firewall request always has type firewall."
    },
    "allapplications": {
      "type": "array",
      "description": "A list of firewall applications",
      "items": {
        "$ref": "#/$defs/FirewallApplication"
      }
    },
    "applicationprotocols": {
      "type": "array",
      "description": "A list of firewall application protocols.",
      "items": {
        "$ref": "#/$defs/FirewallApplication"
      }
    },
    "direction": {
      "type": "string",
      "description": "The direction of the packet. It is destined either towards the internet or to the customer's network."
    },
    "packetsize": {
      "type": "number",
      "description": "The size of the packet that was received."
    }
  },
  "required": [
    "allapplications",
    "applicationprotocols",
    "date",
    "destinationip",
    "destinationport",
    "direction",
    "identities",
    "packetsize",
    "protocol",
    "rule",
    "sourceip",
    "sourceport",
    "time",
    "timestamp",
    "type",
    "verdict"
  ],
  "$defs": {
    "Category": {
      "type": "object",
      "description": "The properties of the category.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the category."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the category."
        },
        "type": {
          "type": "string",
          "description": "The type of the category."
        },
        "integration": {
          "type": "boolean",
          "description": "Specifies whether the category is an integration."
        },
        "deprecated": {
          "type": "boolean",
          "description": "Specifies whether the category is a legacy category."
        }
      }
    },
    "Date": {
      "type": "string",
      "description": "The date from the timestamp based on the timezone parameter."
    },
    "DestinationIp": {
      "type": "string",
      "description": "The destination IP for the entry."
    },
    "DestinationPort": {
      "type": "number",
      "description": "The destination port for entry."
    },
    "FirewallApplication": {
      "type": "object",
      "description": "The information about the applications managed by the firewall.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the application or protocol."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the application or protocol."
        },
        "app": {
          "type": "string",
          "description": "The information about the app type."
        }
      }
    },
    "Identity": {
      "type": "object",
      "description": "The information about the identity.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the identity."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the identity."
        },
        "type": {
          "$ref": "#/$defs/IdentityType"
        },
        "deleted": {
          "type": "boolean",
          "description": "Indicates whether the identity was deleted."
        }
      },
      "required": [
        "id",
        "label",
        "type",
        "deleted"
      ]
    },
    "IdentityType": {
      "type": "object",
      "description": "The information about the identity including the type.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the origin type for the identity."
        },
        "label": {
          "type": "string",
          "description": "The label of the origin type for the identity."
        },
        "type": {
          "type": "string",
          "description": "The name of the origin type for the identity."
        }
      }
    },
    "PrivateApplicationGroup": {
      "type": "object",
      "description": "The private application group.",
      "properties": {
        "id": {
          "type": [
            "number",
            "null"
          ],
          "description": "The ID of application group."
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "The name of the application group."
        }
      }
    },
    "Protocol": {
      "type": "object",
      "description": "The properties of the protocol.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of protocol."
        },
        "label": {
          "type": "string",
          "description": "The name of the protocol."
        }
      },
      "required": [
        "id",
        "label"
      ]
    },
    "Rule": {
      "type": "object",
      "description": "The properties of the firewall rule.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the rule."
        },
        "label": {
          "type": "string",
          "description": "The name of the rule."
        },
        "privateapplicationgroup": {
          "$ref": "#/$defs/PrivateApplicationGroup"
        }
      },
      "required": [
        "id",
        "label"
      ]
    },
    "SourceIp": {
      "type": "string",
      "description": "The source IP for the entry."
    },
    "SourcePort": {
      "type": "number",
      "description": "The source port for the entry."
    },
    "Time": {
      "type": "string",
      "description": "The time in 24-hour format based on the timezone parameter."
    },
    "Timestamp": {
      "type": "number",
      "description": "The timestamp represented in milliseconds."
    },
    "categories": {
      "type": "array",
      "description": "The list of categories.",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "identities": {
      "type": "array",
      "description": "The list of identities for the entry.",
      "items": {
        "$ref": "#/$defs/Identity"
      }
    },
    "verdict": {
      "type": "string",
      "description": "The verdict for the entry.",
      "enum": [
        "allowed",
        "blocked"
      ]
    }
  }
}