Palo Alto Networks · JSON Structure

Prisma Cloud Code Security Api Code Error Structure

CodeError schema from Palo Alto Networks Prisma Cloud Code Security API

Type: object Properties: 15
Cloud SecurityCybersecurityFirewallNetwork SecuritySASESOARThreat IntelligenceXDR

CodeError is a JSON Structure definition published by Palo Alto Networks, describing 15 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

errorId policyId policyName severity category status resourceName resourceType filePath fileLineRange repositoryId branch guideline firstDetected lastDetected

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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-code-security-api-code-error-structure.json",
  "name": "CodeError",
  "description": "CodeError schema from Palo Alto Networks Prisma Cloud Code Security API",
  "type": "object",
  "properties": {
    "errorId": {
      "type": "string",
      "description": "Unique error identifier."
    },
    "policyId": {
      "type": "string",
      "description": "Checkov policy ID that triggered the error (e.g., CKV_AWS_18)."
    },
    "policyName": {
      "type": "string",
      "description": "Human-readable name of the violated policy."
    },
    "severity": {
      "type": "string",
      "description": "Error severity level.",
      "enum": [
        "CRITICAL",
        "HIGH",
        "MEDIUM",
        "LOW",
        "INFO"
      ]
    },
    "category": {
      "type": "string",
      "description": "Error category based on the type of scan that detected it.",
      "enum": [
        "IAC",
        "SCA",
        "SECRETS",
        "CICD"
      ]
    },
    "status": {
      "type": "string",
      "description": "Current status of the error.",
      "enum": [
        "OPEN",
        "SUPPRESSED",
        "FIXED"
      ]
    },
    "resourceName": {
      "type": "string",
      "description": "Name of the IaC resource where the error was detected."
    },
    "resourceType": {
      "type": "string",
      "description": "Type of the IaC resource."
    },
    "filePath": {
      "type": "string",
      "description": "Relative path to the file containing the error."
    },
    "fileLineRange": {
      "type": "array",
      "description": "Start and end line numbers of the affected code block.",
      "items": {
        "type": "int32"
      },
      "minItems": 2,
      "maxItems": 2
    },
    "repositoryId": {
      "type": "string",
      "description": "Repository where the error was found."
    },
    "branch": {
      "type": "string",
      "description": "Branch where the error was detected."
    },
    "guideline": {
      "type": "string",
      "description": "URL to documentation explaining the policy and remediation steps."
    },
    "firstDetected": {
      "type": "datetime",
      "description": "Timestamp when the error was first detected."
    },
    "lastDetected": {
      "type": "datetime",
      "description": "Timestamp of the most recent scan where the error was found."
    }
  }
}