Controls
Manage and monitor control executions. Use these endpoints to retrieve execution statuses, trigger on-demand control runs, and track failed controls. Supports filtering by asset to identify which controls have failed for specific resources.
Returns a list of controls that have failed.
It is possible to pass an asset ID to filter the controls and only return the controls that have failed for that specific asset.
Returns only the controls on which the authenticated user has view permissions.
This API requires Basic HTTP authentication.
The unique identifier of the asset.
The cursor pointing to the first resource to be included in the response. This cursor cannot be created and must have been extracted from a response returned by a previous API call.
If not set, the response starts from the first available resource.
eyJpZCI6IjU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAwMCIsInRpbWVzdGFtcCI6MTY5NzM3MjQwMH0=The maximum number of resources to retrieve.
If not set, the default value is 100. The maximum value is 500.
100The field on which the controls are sorted. The default value is NAME.
NAMEPossible values: The sorting order. The default value is ASC.
ASCPossible values: Whether to include the total number of resources in the response.
If true, the response will include the total number of resources (total), as well as a boolean indicating if
the total is approximate (isTotalApproximate).
If false, the response will not include the total number of resources (total and isTotalApproximate).
trueResponse containing the failed controls for a specific asset with pagination support.
A paginated response containing controls that have failed for an asset.
Cursor pointing to the next page. If missing, this means that there are no additional pages of resources available after the current one.
eyJpZCI6IjU1MGU4NDAwLWUyOWItNDFkNC1hNzE2LTQ0NjY1NTQ0MDAwMCIsInRpbWVzdGFtcCI6MTY5NzM3MjQwMH0=The total number of resources matching the request.
100Indicates if the total is approximate. Failed asset counts stop at 1000: beyond that the API reports 1000
with this flag set to true. Failed control counts are always exact, so this is always false for them.
falseThe request contains invalid parameters or is missing required data. Details about the validation errors are provided in the response.
The server encountered an unexpected condition that prevented it from fulfilling the request. The error details provide information for troubleshooting.
GET /rest/controlExecution/v1/controls/failed HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"nextCursor": "eyJpZCI6IjY2MWY5NTExLWYz=",
"results": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Database Encryption Check",
"description": "Validates that database encryption is properly configured and active",
"severity": "High",
"controlType": "Security",
"failedSince": "2023-10-15T14:30:00Z"
},
{
"id": "661f9511-f3ac-52e5-b827-557766551111",
"name": "Access Control Validation",
"description": "Ensures proper access controls and user permissions are in place",
"severity": "Medium",
"controlType": "Security",
"failedSince": "2023-10-20T09:15:00Z"
},
{
"id": "772a0622-a4bd-63f6-c938-668877662222",
"name": "Backup Verification",
"description": "Verifies that database backups are running successfully and are recoverable",
"severity": "High",
"controlType": "Operational",
"failedSince": "2023-10-22T03:00:00Z"
}
]
}Retrieves the last control execution status for a specific control by its ID.
A control that has never completed an execution answers Unknown, with no lastExecutedOn and no failedAssetCount.
A 404 means the control does not exist, has been deleted, or has not been picked up yet. A control created moments ago is not immediately known here: it becomes available once it has been synchronized, which normally takes a few minutes and no more than 30. For a newly created control, treat a 404 as transient and retry.
This API requires Basic HTTP authentication.
The unique identifier of the control.
Response containing the execution status details of a specific control, including last known status and last execution timestamp.
Schema for a control status execution.
Represents the outcome of a control execution. The currently defined outcomes are Pass, Fail, and Unknown.
FailThe number of assets that have failed the control.
10The timestamp when the control execution was last executed. Absent when the control has never completed an execution.
2023-10-01T12:00:00ZThe request contains invalid parameters or is missing required data. Details about the validation errors are provided in the response.
The request references a resource that is not available.
The server encountered an unexpected condition that prevented it from fulfilling the request. The error details provide information for troubleshooting.
GET /rest/controlExecution/v1/controls/{controlId}/executionStatus HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"controlStatus": "Fail",
"failedAssetCount": 10,
"lastExecutedOn": "2023-10-01T12:00:00Z"
}Triggers the execution of a given control.
The control execution is asynchronous, meaning that the endpoint returns a pointer to an execution job that provides the ability to monitor the status of the execution.
This endpoint has side-effects, meaning that the execution of the control can:
Send notifications
Update the Managed Control asset with information about the number of failed assets, ...
Update historical data
Note: This execution does not modify the schedule of the control, meaning the control will still be executed as defined in the schedule.
The caller needs the Activate and Run permission on the control.
This API requires Basic HTTP authentication.
The unique identifier of the control.
A new job was created to execute the control in the background. Poll GET /jobs/{jobId} to follow it.
The request contains invalid parameters or is missing required data. Details about the validation errors are provided in the response.
The calling user does not have the Activate and Run permission on the control. Shared by every operation that requires it.
The request references a resource that is not available.
Control executions are blocked because the credit balance of the tenant environment is exhausted. The
errorCode is creditStateBlocked.
The request is well-formed but the referenced resource is in a state that prevents the operation.
The server encountered an unexpected condition that prevented it from fulfilling the request. The error details provide information for troubleshooting.
POST /rest/controlExecution/v1/controls/{controlId}/execute HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "ControlExecutionJob",
"state": "running",
"details": {
"failedAssetsFetched": true,
"statusUpdatedInKnowledgeGraph": true,
"notificationTriggered": false,
"failedStep": "process-control-query"
},
"endDate": "2025-12-02T10:15:45Z",
"failureMessage": "Control execution failed. Please try again or contact support."
}Last updated
Was this helpful?