{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-structure/prisma-cloud-cspm-api-policy-input-structure.json",
  "name": "PolicyInput",
  "description": "PolicyInput schema from Palo Alto Networks Prisma Cloud CSPM API",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "policyType": {
      "type": "string"
    },
    "severity": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "recommendation": {
      "type": "string"
    },
    "cloudType": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "rule": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "criteria": {
          "type": "string",
          "description": "RQL query for the policy rule."
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "criteria",
        "type"
      ]
    }
  },
  "required": [
    "name",
    "policyType",
    "severity",
    "rule"
  ]
}
