{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-security-command-center/json-schema/google-cloud-security-command-center-report-schema.json",
  "title": "Report",
  "description": "Details of a report.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-security-command-center-securityposture-organizations-api-openapi.yml#/components/schemas/Report",
  "type": "object",
  "properties": {
    "name": {
      "description": "Required. The name of the report, in the format `organizations/{organization}/locations/global/reports/{report_id}`.",
      "type": "string"
    },
    "createTime": {
      "description": "Output only. The time at which the report was created.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "iacValidationReport": {
      "$ref": "#/$defs/IaCValidationReport",
      "description": "Output only. An infrastructure-as-code (IaC) validation report."
    },
    "updateTime": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. The time at which the report was last updated.",
      "format": "google-datetime"
    }
  },
  "$defs": {
    "AssetDetails": {
      "properties": {
        "asset": {
          "type": "string",
          "description": "Information about the Cloud Asset Inventory asset that violated a policy. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way."
        },
        "assetType": {
          "description": "The type of Cloud Asset Inventory asset. For a list of asset types, see [Supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Details of a Cloud Asset Inventory asset that caused a violation."
    },
    "IaCValidationReport": {
      "properties": {
        "note": {
          "type": "string",
          "description": "Additional information about the report."
        },
        "violations": {
          "description": "A list of every Violation found in the IaC configuration.",
          "items": {
            "$ref": "#/$defs/Violation"
          },
          "type": "array"
        }
      },
      "description": "Details of an infrastructure-as-code (IaC) validation report.",
      "type": "object"
    },
    "PolicyDetails": {
      "type": "object",
      "properties": {
        "complianceStandards": {
          "description": "The compliance standards that the policy maps to. For example, `CIS-2.0 1.15`.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "description": "A description of the policy.",
          "type": "string"
        },
        "constraintType": {
          "enum": [
            "CONSTRAINT_TYPE_UNSPECIFIED",
            "SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE",
            "ORG_POLICY_CUSTOM",
            "SECURITY_HEALTH_ANALYTICS_MODULE",
            "ORG_POLICY",
            "REGO_POLICY"
          ],
          "description": "The type of constraint that was violated.",
          "type": "string"
        },
        "constraint": {
          "description": "Information about the constraint that was violated. The format of this information can change at any time without prior notice. Your application must not depend on this information in any way.",
          "type": "string"
        }
      },
      "description": "Details of a policy that was violated."
    },
    "PostureDetails": {
      "properties": {
        "posture": {
          "description": "The posture used in the deployment, in the format `organizations/{organization}/locations/global/postures/{posture_id}`.",
          "type": "string"
        },
        "policySet": {
          "description": "The identifier for the PolicySet that the relevant policy belongs to.",
          "type": "string"
        },
        "postureRevisionId": {
          "type": "string",
          "description": "The revision ID of the posture used in the deployment."
        },
        "postureDeployment": {
          "type": "string",
          "description": "The name of the posture deployment, in the format `organizations/{organization}/locations/global/postureDeployments/{deployment_id}`."
        },
        "postureDeploymentTargetResource": {
          "description": "The organization, folder, or project where the posture is deployed. Uses one of the following formats: * `organizations/{organization_number}` * `folders/{folder_number}` * `projects/{project_number}`",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Details of a posture deployment."
    },
    "Violation": {
      "type": "object",
      "description": "Details of a violation.",
      "properties": {
        "severity": {
          "enum": [
            "SEVERITY_UNSPECIFIED",
            "CRITICAL",
            "HIGH",
            "MEDIUM",
            "LOW"
          ],
          "type": "string",
          "description": "The severity of the violation."
        },
        "assetId": {
          "description": "The full resource name of the asset that caused the violation. For details about the format of the full resource name for each asset type, see [Resource name format](https://cloud.google.com/asset-inventory/docs/resource-name-format).",
          "type": "string"
        },
        "nextSteps": {
          "type": "string",
          "description": "A description of the steps that you can take to fix the violation."
        },
        "policyId": {
          "description": "The policy that was violated.",
          "type": "string"
        },
        "violatedAsset": {
          "$ref": "#/$defs/AssetDetails",
          "description": "Details of the Cloud Asset Inventory asset that caused the violation."
        },
        "violatedPosture": {
          "$ref": "#/$defs/PostureDetails",
          "description": "Details for the posture that was violated. This field is present only if the violated policy belongs to a deployed posture."
        },
        "violatedPolicy": {
          "$ref": "#/$defs/PolicyDetails",
          "description": "Details of the policy that was violated."
        }
      }
    }
  }
}