{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Container",
  "description": "Container schema from Palo Alto Networks Prisma Cloud Compute API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-cloud-compute-api-container-schema.json",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string",
      "description": "Unique container identifier."
    },
    "name": {
      "type": "string",
      "description": "Container name."
    },
    "hostname": {
      "type": "string",
      "description": "Host where the container is running."
    },
    "imageId": {
      "type": "string",
      "description": "ID of the container image."
    },
    "imageName": {
      "type": "string",
      "description": "Full image name including registry, repository, and tag."
    },
    "state": {
      "type": "string",
      "enum": [
        "running",
        "created",
        "exited",
        "paused"
      ],
      "description": "Current container state."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Container creation timestamp."
    },
    "cluster": {
      "type": "string",
      "description": "Kubernetes cluster name."
    },
    "namespace": {
      "type": "string",
      "description": "Kubernetes namespace."
    },
    "vulnerabilitiesCount": {
      "type": "integer",
      "description": "Number of vulnerabilities in the container image."
    },
    "complianceIssuesCount": {
      "type": "integer",
      "description": "Number of compliance issues for this container."
    }
  }
}
