1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. ListPolicyViolationsV2Response

ListPolicyViolationsV2Response

    Response containing a paginated list of policy violations (v2).

    Properties

    • policyViolations array[PolicyViolationV2] required
      The list of policy violations
    • id string required
      The unique identifier of the policy violation.
    • projectName string required
      The name of the project containing the violating resource.
    • stackName string optional
      The name of the stack containing the violating resource.
    • stackVersion integer optional
      The stack version where the violation was detected.
    • accountName string optional
      The Insights account name associated with the violation, for resource-scoped violations.
    • resourceVersion integer optional
      The resource version where the violation was detected.
    • policyPack string required
      The name of the policy pack that produced this violation.
    • policyPackTag string required
      The tag of the policy pack version that produced this violation.
    • policyName string required
      The name of the policy that was violated.
    • resourceURN string required
      The URN of the resource that violated the policy.
    • resourceType string required
      The type of the resource that violated the policy.
    • resourceName string required
      The name of the resource that violated the policy.
    • message string required
      A human-readable message describing the policy violation.
    • observedAt string required
      The timestamp when the violation was observed.
    • level string required
      The enforcement level of the violated policy (e.g. advisory, mandatory, disabled).
    • kind enum required
      The kind of policy violation (audit or preventative).
      Values: audit, preventative
    • continuationToken string optional
      Continuation token for pagination