{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/main/json-schema/palo-alto-networks-applications-schema.json",
  "title": "applications",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/palo-alto-networks-applications-api-openapi.yml#/components/schemas/applications",
  "type": "object",
  "required": [
    "name",
    "category",
    "risk"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The UUID of the application",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "format": "^[ a-zA-Z\\d._-]+$",
      "maxLength": 31,
      "description": "The name of the application"
    },
    "default": {
      "type": "object",
      "oneOf": [
        {
          "type": "object",
          "title": "port",
          "properties": {
            "port": {
              "type": "array",
              "items": {
                "type": "string",
                "description": "protocol port specification : {tcp|udp}/{dynamic|port range list} (e.g. tcp/8080, tcp/80,443, tcp/0-1024,10000, udp/dynamic)",
                "maxLength": 63
              }
            }
          }
        },
        {
          "type": "object",
          "title": "ident_by_ip_protocol",
          "properties": {
            "ident_by_ip_protocol": {
              "type": "string",
              "x-maximum": 255,
              "x-minimum": 0
            }
          }
        },
        {
          "type": "object",
          "title": "ident_by_icmp_type",
          "properties": {
            "ident_by_icmp_type": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "x-maximum": 255,
                  "x-minimum": 0
                },
                "code": {
                  "type": "string",
                  "x-maximum": 255,
                  "x-minimum": 0
                }
              },
              "required": [
                "type"
              ]
            }
          }
        },
        {
          "type": "object",
          "title": "ident_by_icmp6_type",
          "properties": {
            "ident_by_icmp6_type": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "x-maximum": 255,
                  "x-minimum": 0
                },
                "code": {
                  "type": "string",
                  "x-maximum": 255,
                  "x-minimum": 0
                }
              },
              "required": [
                "type"
              ]
            }
          }
        }
      ]
    },
    "category": {
      "type": "string",
      "x-panMemberOf": [
        {
          "location": "shared",
          "schema": "content-preview/application-type/category",
          "subPath": "name"
        }
      ]
    },
    "subcategory": {
      "type": "string",
      "maxLength": 63
    },
    "technology": {
      "type": "string",
      "maxLength": 63,
      "x-panMemberOf": [
        {
          "location": "shared",
          "schema": "content-preview/application-type/technology",
          "subPath": "name"
        }
      ]
    },
    "description": {
      "type": "string",
      "maxLength": 8192
    },
    "timeout": {
      "type": "integer",
      "description": "timeout in seconds",
      "minimum": 0,
      "maximum": 604800
    },
    "tcp_timeout": {
      "type": "integer",
      "description": "timeout in seconds",
      "minimum": 0,
      "maximum": 604800
    },
    "udp_timeout": {
      "type": "integer",
      "description": "timeout in seconds",
      "minimum": 0,
      "maximum": 604800
    },
    "tcp_half_closed_timeout": {
      "type": "integer",
      "description": "timeout for half-close session in seconds",
      "minimum": 1,
      "maximum": 604800
    },
    "tcp_time_wait_timeout": {
      "type": "integer",
      "description": "timeout for session in time_wait state in seconds",
      "minimum": 1,
      "maximum": 600
    },
    "risk": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ]
    },
    "evasive_behavior": {
      "type": "boolean"
    },
    "consume_big_bandwidth": {
      "type": "boolean"
    },
    "used_by_malware": {
      "type": "boolean"
    },
    "able_to_transfer_file": {
      "type": "boolean"
    },
    "has_known_vulnerability": {
      "type": "boolean"
    },
    "tunnel_other_application": {
      "type": "boolean"
    },
    "tunnel_applications": {
      "type": "boolean"
    },
    "prone_to_misuse": {
      "type": "boolean"
    },
    "pervasive_use": {
      "type": "boolean"
    },
    "file_type_ident": {
      "type": "boolean"
    },
    "virus_ident": {
      "type": "boolean"
    },
    "data_ident": {
      "type": "boolean"
    },
    "no_appid_caching": {
      "type": "boolean"
    },
    "alg_disable_capability": {
      "type": "string",
      "maxLength": 127,
      "x-panMemberOf": [
        {
          "location": "shared",
          "schema": "content-preview/application",
          "subPath": "name"
        }
      ]
    },
    "parent_app": {
      "type": "string",
      "maxLength": 127,
      "x-panMemberOf": [
        {
          "location": "shared",
          "schema": "content-preview/application",
          "subPath": "name"
        }
      ]
    },
    "signature": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Alphanumeric string [ 0-9a-zA-Z._-]",
            "maxLength": 31
          },
          "comment": {
            "type": "string",
            "maxLength": 256
          },
          "scope": {
            "enum": [
              "protocol-data-unit",
              "session"
            ],
            "default": "protocol-data-unit"
          },
          "order_free": {
            "type": "boolean",
            "default": false
          },
          "and_condition": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Alphanumeric string [ 0-9a-zA-Z._-]",
                  "maxLength": 31
                },
                "or_condition": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Alphanumeric string [ 0-9a-zA-Z._-]",
                        "maxLength": 31
                      },
                      "operator": {
                        "type": "object",
                        "oneOf": [
                          {
                            "type": "object",
                            "title": "pattern_match",
                            "properties": {
                              "pattern_match": {
                                "type": "object",
                                "properties": {
                                  "context": {
                                    "type": "string",
                                    "maxLength": 127
                                  },
                                  "pattern": {
                                    "type": "string",
                                    "maxLength": 127
                                  },
                                  "qualifier": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "Alphanumeric string [ 0-9a-zA-Z._-]",
                                          "maxLength": 31
                                        },
                                        "value": {
                                          "type": "string",
                                          "x-panMultiple": [
                                            {
                                              "type": "string"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "value"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "context",
                                  "pattern"
                                ]
                              }
                            }
                          },
                          {
                            "type": "object",
                            "title": "greater_than",
                            "properties": {
                              "greater_than": {
                                "type": "object",
                                "properties": {
                                  "context": {
                                    "type": "string",
                                    "maxLength": 127
                                  },
                                  "value": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 4294967295
                                  },
                                  "qualifier": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "Alphanumeric string [ 0-9a-zA-Z._-]",
                                          "maxLength": 31
                                        },
                                        "value": {
                                          "type": "string",
                                          "x-panMultiple": [
                                            {
                                              "type": "string"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "value"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "context",
                                  "value"
                                ]
                              }
                            }
                          },
                          {
                            "type": "object",
                            "title": "less_than",
                            "properties": {
                              "less_than": {
                                "type": "object",
                                "properties": {
                                  "context": {
                                    "type": "string",
                                    "maxLength": 127
                                  },
                                  "value": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 4294967295
                                  },
                                  "qualifier": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "description": "Alphanumeric string [ 0-9a-zA-Z._-]",
                                          "maxLength": 31
                                        },
                                        "value": {
                                          "type": "string",
                                          "x-panMultiple": [
                                            {
                                              "type": "string"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "value"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "context",
                                  "value"
                                ]
                              }
                            }
                          },
                          {
                            "type": "object",
                            "title": "equal_to",
                            "properties": {
                              "equal_to": {
                                "type": "object",
                                "properties": {
                                  "context": {
                                    "type": "string",
                                    "x-panMultiple": [
                                      {
                                        "type": "string",
                                        "maxLength": 127
                                      },
                                      {
                                        "enum": [
                                          "unknown-req-tcp",
                                          "unknown-rsp-tcp",
                                          "unknown-req-udp",
                                          "unknown-rsp-udp"
                                        ],
                                        "type": "string"
                                      }
                                    ]
                                  },
                                  "position": {
                                    "type": "string",
                                    "maxLength": 127
                                  },
                                  "mask": {
                                    "type": "string",
                                    "description": "4-byte hex value",
                                    "pattern": "^[0][xX][0-9A-Fa-f]{8}$",
                                    "maxLength": 10
                                  },
                                  "value": {
                                    "type": "string",
                                    "maxLength": 10
                                  }
                                },
                                "required": [
                                  "context",
                                  "value"
                                ]
                              }
                            }
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "operator"
                    ]
                  }
                }
              },
              "required": [
                "name"
              ]
            }
          }
        },
        "required": [
          "name"
        ]
      }
    }
  },
  "oneOf": [
    {
      "type": "object",
      "title": "folder",
      "properties": {
        "folder": {
          "type": "string",
          "pattern": "^[a-zA-Z\\d\\-_\\. ]+$",
          "maxLength": 64,
          "description": "The folder in which the resource is defined"
        }
      },
      "required": [
        "folder"
      ]
    },
    {
      "type": "object",
      "title": "snippet",
      "properties": {
        "snippet": {
          "type": "string",
          "pattern": "^[a-zA-Z\\d\\-_\\. ]+$",
          "maxLength": 64,
          "description": "The snippet in which the resource is defined"
        }
      },
      "required": [
        "snippet"
      ]
    },
    {
      "type": "object",
      "title": "device",
      "properties": {
        "device": {
          "type": "string",
          "pattern": "^[a-zA-Z\\d\\-_\\. ]+$",
          "maxLength": 64,
          "description": "The device in which the resource is defined"
        }
      },
      "required": [
        "device"
      ]
    }
  ]
}