{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/strata-cloud-manager-api-security-rule-request-structure.json",
  "name": "SecurityRuleRequest",
  "description": "SecurityRuleRequest schema from Palo Alto Networks Strata Cloud Manager API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "from": {
      "type": "array",
      "default": [
        "any"
      ],
      "items": {
        "type": "string"
      }
    },
    "to": {
      "type": "array",
      "default": [
        "any"
      ],
      "items": {
        "type": "string"
      }
    },
    "source": {
      "type": "array",
      "default": [
        "any"
      ],
      "items": {
        "type": "string"
      }
    },
    "destination": {
      "type": "array",
      "default": [
        "any"
      ],
      "items": {
        "type": "string"
      }
    },
    "source_user": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "application": {
      "type": "array",
      "default": [
        "any"
      ],
      "items": {
        "type": "string"
      }
    },
    "service": {
      "type": "array",
      "default": [
        "application-default"
      ],
      "items": {
        "type": "string"
      }
    },
    "category": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "action": {
      "type": "string",
      "enum": [
        "allow",
        "deny",
        "drop",
        "reset-client",
        "reset-server",
        "reset-both"
      ]
    },
    "log_setting": {
      "type": "string"
    },
    "profile_setting": {
      "type": "object",
      "properties": {
        "group": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "disabled": {
      "type": "boolean",
      "default": false
    },
    "description": {
      "type": "string"
    },
    "tag": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "name",
    "action"
  ]
}
