Query Health Assessments
Retrieves pre-computed health assessment results for specified resources. Supports complex filtering by assessment ID, resource type, specific resource IDs, related resource ID, health levels, and detail key-value pairs. Results are paginated for large datasets.
{
"site_ids": [
"string"
],
"offset": 0,
"page_size": 0,
"sort_ascending": false,
"sort_by": "string",
"id": "string",
"assessed_resource_type": "string",
"assessed_resource_ids": [
"string"
],
"related_resource_ids": [
"string"
],
"overall_levels": [
"string"
],
"detail_filters": [
{
"key": "string",
"operator": "string",
"value": "string"
}
]
}
OK
{
"offset": 0,
"number_of_results": 0,
"total_result_count": 0,
"total_pages": 0,
"sort_ascending": false,
"sort_by": "string",
"results": [
{
"id": "string",
"assessed_resource_id": "string",
"assessed_resource_type": "string",
"assessed_resource_name": "string",
"assessed_resource_path": "string",
"site_id": "string",
"related_resource_id": "string",
"related_resource_type": "string",
"related_resource_name": "string",
"related_resource_path": "string",
"related_overall_level": "string",
"overall_level": "string",
"report_timestamp": 0,
"details": [
{
"key": "string",
"value": "string"
}
]
}
]
}
Bad Request - Invalid parameters
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Unauthorized
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Forbidden
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Failed
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Precondition Required
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Too Many Requests
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
Error Response
{
"error_code": 0,
"module_name": "string",
"error_message": "string"
}
HTTP Status or Application error code.
Module where the error happened.
Message describing the error.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"id":"string","assessed_resource_type":"string"}' https://{api_host}/health-assessments