{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SearchResult",
  "description": "SearchResult schema from Palo Alto Networks Prisma Cloud CSPM API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-cloud-cspm-api-search-result-schema.json",
  "type": "object",
  "properties": {
    "cloudType": {
      "type": "string",
      "description": "Cloud provider type for the search results."
    },
    "query": {
      "type": "string",
      "description": "RQL query that was executed."
    },
    "data": {
      "type": "object",
      "properties": {
        "totalRows": {
          "type": "integer",
          "description": "Total number of matching resources."
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "cloudType": {
                "type": "string"
              },
              "accountId": {
                "type": "string"
              },
              "accountName": {
                "type": "string"
              },
              "regionId": {
                "type": "string"
              },
              "resourceType": {
                "type": "string"
              },
              "overallPassed": {
                "type": "boolean"
              }
            }
          }
        }
      }
    }
  }
}
