Skip to main content

Get Compliance Statistics Breakdown V2 - POST

POST 

/v2/compliance/posture

Returns a breakdown of the passed/failed statistics and associated policies for compliance standards, requirements, and sections. Also returns a summary for all compliance standards.

Request

Body

    detailed boolean

    Detailed

    fields string[]

    Array of specific fields to return

    filters object[]

    Filtering parameters.

    For filter names, refer to List Filters API.

    For filter values, refer to List filter suggestions.

    The only exception is resource.tagv2 filter name, provide filter value for it in the following format: "{"key":"'CustomerTagKey'","value":"'CustomerTagValue'"}"

  • Array [
  • name string

    Name

    operator string

    Possible values: [tag:yaml.org,2002:value =]

    Operator

    value string

    Value

  • ]
  • groupBy string[]

    For asset or data inventory only. Group returned items by cloud.type, cloud.service, cloud.region, cloud.account, and/or resource.type

    limit number

    Maximum number of items to return. When data is paginated, maximum number of items per page.The maximum cannot exceed 10,000. The default is 10,000.

    offset number

    The number of items to skip before selecting items to return. Default is zero

    pageToken string

    Setting this pagination Token to the nextPageToken from a response object returns the next page of data

    sortBy string[]

    Array of sort properties. Append :asc or :desc to the key to sort by ascending or descending order respectively. Example sort properties are id:asc and timestamp:desc

Responses

success

Schema
    complianceDetails object[]

    List of compliance detail

  • Array [
  • assignedPolicies int32

    Number of policies assigned to the Compliance Standard/Requirement/Section

    criticalSeverityFailedResources int64

    Number of Compliance Standard/Requirement/Section Scanned Resources failing critical severity policies

    default boolean

    Is System Default

    description string

    Description of Compliance Standard/Requirement/Section

    failedResources int64

    Number of failing Compliance Standard/Requirement/Section Scanned Resources

    highSeverityFailedResources int64

    Number of Compliance Standard/Requirement/Section Scanned Resources failing high severity policies

    id string

    ID of Compliance Standard/Requirement/Section

    informationalSeverityFailedResources int64

    Number of Compliance Standard/Requirement/Section Scanned Resources failing informational severity policies

    lowSeverityFailedResources int64

    Number of Compliance Standard/Requirement/Section Scanned Resources failing low severity policies

    mediumSeverityFailedResources int64

    Number of Compliance Standard/Requirement/Section Scanned Resources failing medium severity policies

    name string

    Name of Compliance Standard/Requirement/Section

    passedResources int64

    Number of Passing Compliance Standard/Requirement/Section Scanned Resources

    totalResources int64

    Total number of Compliance Standard/Requirement/Section Scanned Resources

  • ]
  • requestedTimestamp int64

    Requested timestamp

    requirementSummaries object[]

    List of requirement summaries

  • Array [
  • id string

    Compliance Requirement ID

    name string

    Compliance Requirement name

    sectionSummaries object[]

    Section Summary list for the compliance requirement

  • Array [
  • failedResources int64

    Number of failed compliance section scanned resources

    id string

    Compliance section ID

    name string

    Compliance section name

    passedResources int64

    Number of passed compliance section scanned resources

    totalResources int64

    Total number of compliance section scanned resources

  • ]
  • ]
  • summary object

    Model for Compliance Posture Summary

    criticalSeverityFailedResources int64

    Number of scanned compliance resources whose highest policy failure is critical

    failedResources int64

    Number of failed scanned compliance resources

    highSeverityFailedResources int64

    Number of scanned compliance resources that failed high severity policies

    informationalSeverityFailedResources int64

    Number of scanned compliance resources whose highest policy failure is informational

    lowSeverityFailedResources int64

    Number of scanned compliance resources whose highest policy failure is low

    mediumSeverityFailedResources int64

    Number of scanned compliance resources whose highest policy failure is medium

    passedResources int64

    Number of passed scanned compliance resources

    timestamp int64

    Timestamp

    totalResources int64

    Total number of scanned compliance resources

    timestamp int64

    Timestamp

Loading...