# Get a device's compliance details against a specific profile Retrieves the per-rule compliance status of every browser on a device against the specified compliance profile. ## Endpoint `GET /bsp/api/v1/bmp/devices/{device_id}/compliance/{compliance_id}` ## Request URL `https://{server-hostname}:8383/bsp/api/v1/bmp/devices/{device_id}/compliance/{compliance_id}` ## Scope `BrowserManager.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (`string`, Mandatory): `application/json` ### Path Parameters - **device_id** (`string`, Mandatory): Device resource ID from [List Devices](https://www.manageengine.com/products/desktop-central/help/api/onpremise/inventory-list-devices.html) response (`device_id` field). - **compliance_id** (`string`, Mandatory): Compliance profile ID from [List Compliance Profiles](https://www.manageengine.com/products/desktop-central/help/api/onpremise/compliance-list-compliance-profiles.html) response (`profileid` field). ## Sample Request ```curl curl --request GET \ --url https://appdomain/bsp/api/v1/bmp/devices/{device_id}/compliance/{compliance_id} \ --header 'Accept: application/json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response Body: `application/json` `JSON Object`: Compliance details for a device, wrapped in a devices array. - **devices** (`JSON Array`): Device compliance objects. ### HTTP Code 401 Response Body: `application/json` `JSON Object` - **errorCode** (`long`): Unauthorized error code returned when authentication credentials are missing, expired, or invalid (`authentication=required`). - **errorMsg** (`string`): Authentication failure reason. ### HTTP Code 403 Response Body: `application/json` `JSON Object`: RBCA scope violation when device is not in the user's managed scope. - **errorCode** (`string`): Error code indicating the device is outside the user's managed scope. - **errorMsg** (`string`): Message indicating the device is not accessible to the current user. - **url** (`string`): Request URL that triggered the error. ### HTTP Code 429 Response Body: `application/json` `JSON Object` - **errorCode** (`long`): Rate limit error code returned when the API call threshold (configured via threshold/duration in security XML) is exceeded; client is locked out for lock-period minutes. - **errorMsg** (`string`): Rate limit exceeded message with retry guidance. ### HTTP Code 500 Response Body: `application/json` `JSON Object`: Internal server error during device operations. - **error_description** (`string`): Message describing the server-side failure. - **error_code** (`string`): Internal server error code. ## Possible Response Codes - `200` HTTP code - `401` HTTP code - `403` HTTP code - `429` HTTP code - `500` HTTP code ## Sample Response: HTTP 200 Compliance for a specific profile (e.g., CIS/STIG) ```json { "devices": [ { "compliance_details": [ { "category_details": [ { "rule_id": "1", "non_compliant_rules": [ 328, 12, 205, 333, 14, 17, 339, 215, 472, 345, 220, 285, 351, 162, 290, 482, 357, 296, 362, 367, 431, 306, 51, 249, 313, 377 ], "rule_name": "Data Leakage Prevention", "security_percentage": "3.652967929840088", "yet_to_scan": [], "compliant_rules": [ 447 ] }, { "rule_id": "2", "non_compliant_rules": [ 195, 259, 323, 200, 264, 396, 269, 210, 275, 152, 280, 157, 224, 416, 229, 421, 167, 234, 426, 171, 301, 175, 239, 369, 180, 244, 372, 185, 190, 254, 318 ], "rule_name": "Threat Prevention", "security_percentage": "16.546762466430664", "yet_to_scan": [], "compliant_rules": [ 467, 437, 457, 442, 462, 478 ] } ], "security_percentage": "10.865191459655762", "compliance_id": "3", "rule_status": [ { "rule_id": "152", "rule_name": "allow_cross_origin_auth_prompt", "compliant_status": "0", "criticality": "2" }, { "rule_id": "467", "rule_name": "cert_transparency_enforce_disabled_urls", "compliant_status": "1", "criticality": "2" }, { "rule_id": "396", "rule_name": "disable_safe_browsing_proceed_anyway", "compliant_status": "0", "criticality": "2" }, { "rule_id": "447", "rule_name": "web_rtc_local_ips_allowed_urls", "compliant_status": "1", "criticality": "2" } ] } ], "device_id": "777" } ] } ``` ## Sample Response: HTTP 401 Unauthorized ```json { "errorCode": "UNAUTHORIZED", "errorMsg": "You are not authorized to perform this action" } ``` ## Sample Response: HTTP 403 Device not in scope ```json { "errorCode": "FORBIDDEN", "url": "/bsp/api/v1/bmp/devices/{device_id}/compliance/{compliance_id}", "errorMsg": "The requested device is not in your managed scope" } ``` ## Sample Response: HTTP 429 Rate limit exceeded ```json { "errorCode": "RATE_LIMIT_EXCEEDED", "errorMsg": "You have exceeded the maximum number of API calls. Please try again later." } ``` ## Sample Response: HTTP 500 Server error ```json { "error_description": "Internal Server error, Please try again in a moment.", "error_code": "COM0004" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 60 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.