Get Compliance Statistics Breakdown - POST
POST/compliance/posture
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
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.
Replacement Endpoint: Get Compliance Statistics Breakdown V2 - POST
This endpoint will only be able to access data from the past 1 year. This change is implemented to optimize system performance and reduce data storage requirements of deprecated endpoints.
Request
- application/json
Body
- Array [
- ]
- RelativeTimeRangeConfigModel
- AbsoluteTimeRangeConfigModel
- ToNowTimeRangeConfigModel
Detailed
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'"}"
Name
Possible values: [tag:yaml.org,2002:value =
]
Operator
Value
For asset or data inventory only. Group returned items by cloud.type, cloud.service, cloud.region, cloud.account, and/or resource.type
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.
The number of items to skip before selecting items to return. Default is zero
Setting this pagination Token to the nextPageToken from a response object returns the next page of data
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
timeRange object
See the Time Range Model for details.
Possible values: [BACKWARD
, FORWARD
]
Direction in which to count time. Default = BACKWARD
value objectrequired
Model for RelativeTimeDuration
Number of time units
Possible values: [minute
, hour
, day
, week
, month
, year
]
Time unit
value objectrequired
Model for Time
End timestamp
Start timestamp
Possible values: [MINUTE
, HOUR
, DAY
, WEEK
, MONTH
, YEAR
, EPOCH
, LOGIN
]
Time range object
Responses
- 200
- 400
success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- Array [
- ]
- ]
complianceDetails object[]
List of compliance detail
Number of policies assigned to the Compliance Standard/Requirement/Section
Number of Compliance Standard/Requirement/Section Scanned Resources failing critical severity policies
Is System Default
Description of Compliance Standard/Requirement/Section
Number of failing Compliance Standard/Requirement/Section Scanned Resources
Number of Compliance Standard/Requirement/Section Scanned Resources failing high severity policies
ID of Compliance Standard/Requirement/Section
Number of Compliance Standard/Requirement/Section Scanned Resources failing informational severity policies
Number of Compliance Standard/Requirement/Section Scanned Resources failing low severity policies
Number of Compliance Standard/Requirement/Section Scanned Resources failing medium severity policies
Name of Compliance Standard/Requirement/Section
Number of Passing Compliance Standard/Requirement/Section Scanned Resources
Total number of Compliance Standard/Requirement/Section Scanned Resources
Requested timestamp
requirementSummaries object[]
List of requirement summaries
Compliance Requirement ID
Compliance Requirement name
sectionSummaries object[]
Section Summary list for the compliance requirement
Number of failed compliance section scanned resources
Compliance section ID
Compliance section name
Number of passed compliance section scanned resources
Total number of compliance section scanned resources
summary object
Model for Compliance Posture Summary
Number of scanned compliance resources whose highest policy failure is critical
Number of failed scanned compliance resources
Number of scanned compliance resources that failed high severity policies
Number of scanned compliance resources whose highest policy failure is informational
Number of scanned compliance resources whose highest policy failure is low
Number of scanned compliance resources whose highest policy failure is medium
Number of passed scanned compliance resources
Timestamp
Total number of scanned compliance resources
Timestamp
{
"complianceDetails": [
{
"assignedPolicies": 0,
"criticalSeverityFailedResources": 0,
"default": true,
"description": "string",
"failedResources": 0,
"highSeverityFailedResources": 0,
"id": "string",
"informationalSeverityFailedResources": 0,
"lowSeverityFailedResources": 0,
"mediumSeverityFailedResources": 0,
"name": "string",
"passedResources": 0,
"totalResources": 0
}
],
"requestedTimestamp": 0,
"requirementSummaries": [
{
"id": "string",
"name": "string",
"sectionSummaries": [
{
"failedResources": 0,
"id": "string",
"name": "string",
"passedResources": 0,
"totalResources": 0
}
]
}
],
"summary": {
"criticalSeverityFailedResources": 0,
"failedResources": 0,
"highSeverityFailedResources": 0,
"informationalSeverityFailedResources": 0,
"lowSeverityFailedResources": 0,
"mediumSeverityFailedResources": 0,
"passedResources": 0,
"timestamp": 0,
"totalResources": 0
},
"timestamp": 0
}
bad_request