crul API
The crul API allows for programatic interaction with the crul query processor, among other auxiliary supporting systems. Access is provided through an API key that can be generated within the crul UI.
API Keys
API Keys can be generated from the "API Keys" page in the crul UI.
Service Endpoints
API Service endpoints are fully documented and interactive using the API references listed per service in the services documentation.
API Request Examples
Below are a few examples of API requests demonstrating how to use the API key to make requests to different crul services. More examples and interaction is available per service in the services documentation.
Query Dispatch (waits for completion)
curl -X 'POST' \
'http://localhost:8002/v1/sirp/query/runner/dispatch' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "Authorization: crul {token}" \
-d '{
"query": "devices"
}'
List Domain Policies
curl -X 'GET' \
'http://localhost:8002/v1/gonogo/policies' \
-H "Authorization: crul {token}"