{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-activity-proxy-schema.json",
  "title": "ActivityProxy",
  "description": "The activity of the proxy.",
  "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/ActivityProxy",
  "type": "object",
  "properties": {
    "externalip": {
      "type": "string",
      "description": "The external IP for the entry."
    },
    "internalip": {
      "type": "string",
      "description": "The internal IP for the entry."
    },
    "policycategories": {
      "$ref": "#/$defs/policycategories"
    },
    "categories": {
      "$ref": "#/$defs/categories"
    },
    "verdict": {
      "$ref": "#/$defs/verdict"
    },
    "timestamp": {
      "$ref": "#/$defs/Timestamp"
    },
    "identities": {
      "$ref": "#/$defs/identities"
    },
    "allapplications": {
      "$ref": "#/$defs/allapplications"
    },
    "allowedapplications": {
      "type": "array",
      "description": "The list of allowed applications for the entry.",
      "items": {
        "$ref": "#/$defs/Application"
      }
    },
    "blockedapplications": {
      "type": "array",
      "description": "The list of blocked applications for the entry.",
      "items": {
        "$ref": "#/$defs/Application"
      }
    },
    "responsefilename": {
      "type": "string",
      "description": "The response filename for the entry."
    },
    "blockedfiletype": {
      "type": "string",
      "description": "The blocked file type for the entry."
    },
    "bundleid": {
      "type": "number",
      "description": "The ID of the bundle type."
    },
    "amp": {
      "$ref": "#/$defs/CiscoAMP"
    },
    "type": {
      "type": "string",
      "description": "The type of the request. A proxy request is always of type 'proxy'."
    },
    "tenantcontrols": {
      "type": "boolean",
      "description": "Specifies whether the request is part of a tenant control policy."
    },
    "port": {
      "type": [
        "number",
        "null"
      ],
      "description": "The port used to make the request."
    },
    "antivirusthreats": {
      "$ref": "#/$defs/AntivirusThreats"
    },
    "policy": {
      "$ref": "#/$defs/Policy"
    },
    "requestmethod": {
      "type": "string",
      "description": "The HTTP request method."
    },
    "responsesize": {
      "type": "number",
      "description": "The response size in bytes."
    },
    "requestsize": {
      "type": "number",
      "description": "The response size in bytes."
    },
    "statuscode": {
      "type": "number",
      "description": "The HTTP status code (`200` or `201`).",
      "enum": [
        200,
        201
      ]
    },
    "useragent": {
      "type": "string",
      "description": "The name of the browser that made the request."
    },
    "referer": {
      "type": "string",
      "description": "The referring domain or URL."
    },
    "warnstatus": {
      "type": "string",
      "description": "The warning status."
    },
    "sha256": {
      "type": "string",
      "description": "The hex digest of the response content."
    },
    "isolated": {
      "$ref": "#/$defs/Isolated"
    },
    "datalossprevention": {
      "$ref": "#/$defs/DataLossPreventionState"
    },
    "securityoverridden": {
      "type": "boolean",
      "description": "Specifies whether security overrides are configured."
    },
    "contenttype": {
      "type": "string",
      "description": "The type of web content, typically text/html."
    },
    "forwardingmethod": {
      "type": "string",
      "description": "The request method (GET, POST, HEAD, etc.)"
    },
    "httperrors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/HttpError"
      },
      "description": "Certificate & TLS Errors"
    },
    "threats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Threat"
      }
    },
    "egress": {
      "$ref": "#/$defs/Egress"
    },
    "datacenter": {
      "$ref": "#/$defs/DataCenter"
    },
    "date": {
      "$ref": "#/$defs/Date"
    },
    "time": {
      "$ref": "#/$defs/Time"
    },
    "destinationip": {
      "$ref": "#/$defs/DestinationIp"
    },
    "url": {
      "type": "string",
      "description": "The URL that was requested."
    }
  },
  "required": [
    "allapplications",
    "allowedapplications",
    "amp",
    "antivirusthreats",
    "blockedapplications",
    "blockedfiletype",
    "bundleid",
    "categories",
    "contenttype",
    "datacenter",
    "datalossprevention",
    "date",
    "destinationip",
    "egress",
    "externalip",
    "forwardingmethod",
    "httperrors",
    "identities",
    "internalip",
    "isolated",
    "policy",
    "policycategories",
    "port",
    "referer",
    "requestsize",
    "responsefilename",
    "responsesize",
    "securityoverridden",
    "sha256",
    "statuscode",
    "tenantcontrols",
    "threats",
    "time",
    "timestamp",
    "type",
    "url",
    "useragent",
    "verdict",
    "warnstatus"
  ],
  "$defs": {
    "AntivirusThreats": {
      "type": "object",
      "description": "The information about the antivirus threats.",
      "properties": {
        "puas": {
          "type": "array",
          "description": "The list of potentially unwanted applications.",
          "items": {
            "type": "object"
          }
        },
        "viruses": {
          "type": "array",
          "description": "The list of viruses.",
          "items": {
            "type": "string"
          }
        },
        "others": {
          "type": "array",
          "description": "The list of other antivirus threats.",
          "items": {
            "type": "object"
          }
        }
      },
      "required": [
        "others",
        "puas",
        "viruses"
      ]
    },
    "Application": {
      "type": "object",
      "description": "The information about the application.",
      "properties": {
        "id": {
          "type": "number",
          "description": "The ID of the application."
        },
        "label": {
          "type": "string",
          "description": "The descriptive label for the application."
        },
        "type": {
          "type": "string",
          "description": "The type of the application: NBAR or AVC.",
          "enum": [
            "NBAR",
            "AVC"
          ]
        },
        "category": {
          "type": "object",
          "description": "The category of the application.",
          "properties": {
            "id": {
              "type": "number",
              "description": "The ID of the application category."
            },
            "label": {
              "type": "string",
              "description": "The label of the application category."
            }
          }
        }
      }
    },
    "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."
        }
      }
    },
    "CiscoAMP": {
      "type": "object",
      "description": "The properties of the AMP disposition and score for the malware.",
      "properties": {
        "score": {
          "type": "number",
          "description": "The AMP score."
        },
        "disposition": {
          "type": "string",
          "description": "The AMP disposition."
        },
        "malware": {
          "type": "string",
          "description": "The AMP malware."
        }
      },
      "required": [
        "disposition",
        "malware",
        "score"
      ]
    },
    "DataCenter": {
      "type": "object",
      "description": "The information about the data center.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID for the data center."
        },
        "label": {
          "type": "string",
          "description": "The name of the data center."
        }
      },
      "required": [
        "id",
        "label"
      ]
    },
    "DataLossPreventionState": {
      "type": "object",
      "description": "The information about the Data Loss Prevention state.",
      "properties": {
        "state": {
          "type": "string",
          "description": "Indicates the status of the DLP. The state is either `blocked` or the empty string (` `).",
          "enum": [
            "blocked",
            ""
          ]
        }
      },
      "required": [
        "state"
      ]
    },
    "Date": {
      "type": "string",
      "description": "The date from the timestamp based on the timezone parameter."
    },
    "DestinationIp": {
      "type": "string",
      "description": "The destination IP for the entry."
    },
    "Egress": {
      "type": "object",
      "description": "The information about the egress IP.",
      "properties": {
        "ip": {
          "type": "string",
          "description": "The egress IP."
        },
        "type": {
          "type": "string",
          "description": "The type of the egress IP."
        }
      },
      "required": [
        "ip",
        "type"
      ]
    },
    "HttpError": {
      "type": "object",
      "description": "The properties of the HTTP error.",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the error, either `CertificateError` or `TLSError`.",
          "enum": [
            "CertificateError",
            "TLSError"
          ]
        },
        "code": {
          "type": "number",
          "description": "The HTTP error code."
        },
        "reason": {
          "type": "string",
          "description": "The name of the error."
        },
        "attributes": {
          "type": "object",
          "description": "The properties of the additional information for the error."
        }
      }
    },
    "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."
        }
      }
    },
    "Isolated": {
      "type": "object",
      "description": "The properties of the isolated file.",
      "properties": {
        "state": {
          "type": "string",
          "description": "The state of the isolated file."
        },
        "fileaction": {
          "type": "string",
          "description": "The action taken for the file."
        }
      },
      "required": [
        "state",
        "fileaction"
      ]
    },
    "Policy": {
      "type": "object",
      "description": "The properties of the rules in the policy.",
      "required": [
        "destinationlistids",
        "ruleid",
        "rulesetid",
        "timebasedrule"
      ],
      "properties": {
        "timebasedrule": {
          "type": "boolean",
          "description": "Specify whether the policy triggered a time-of-day rule."
        },
        "destinationlistids": {
          "type": "array",
          "description": "The list of destination lists that the rules triggered.",
          "items": {
            "type": "number"
          }
        },
        "ruleid": {
          "type": [
            "number",
            "null"
          ],
          "description": "The ID of the rule in the policy."
        },
        "rulesetid": {
          "type": [
            "number",
            "null"
          ],
          "description": "The ID of the ruleset in the policy."
        }
      }
    },
    "Threat": {
      "type": "object",
      "description": "The information about the threat.",
      "properties": {
        "label": {
          "type": "string",
          "description": "The descriptive label for the threat name."
        },
        "type": {
          "type": "string",
          "description": "The type of the threat."
        }
      }
    },
    "Time": {
      "type": "string",
      "description": "The time in 24-hour format based on the timezone parameter."
    },
    "Timestamp": {
      "type": "number",
      "description": "The timestamp represented in milliseconds."
    },
    "allapplications": {
      "type": "array",
      "description": "The list of applications for the entry.",
      "items": {
        "$ref": "#/$defs/Application"
      }
    },
    "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"
      }
    },
    "policycategories": {
      "type": "array",
      "description": "The list of policy categories.",
      "items": {
        "$ref": "#/$defs/Category"
      }
    },
    "verdict": {
      "type": "string",
      "description": "The verdict for the entry.",
      "enum": [
        "allowed",
        "blocked"
      ]
    }
  }
}