checkScanInProgress
Check if a scan is currently in progress and get its status.
Examples
query CheckScanInProgress {
checkScanInProgress {
scanID
isInProgress
scanStage
isFullScan
isContainerFullScan
isSingleRepoScan
isDastFullScan
}
}curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
"query": "query CheckScanInProgress { checkScanInProgress { scanID isInProgress scanStage isFullScan isContainerFullScan isSingleRepoScan isDastFullScan } }"
}'const query = 'query CheckScanInProgress { checkScanInProgress { scanID isInProgress scanStage isFullScan isContainerFullScan isSingleRepoScan isDastFullScan } }';
fetch("https://api.cloud.ox.security/api/apollo-gateway", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "YOUR_API_TOKEN"
},
body: JSON.stringify({
query: query
})
})
.then(response => response.json())
.then(result => console.log(JSON.stringify(result, null, 2)))
.catch(error => console.error('Error:', error));Fields
Return type: ScanInProgressResponse
You can use the following field(s) to specify what information your checkScanInProgress query will return. Please note that some fields may have their own subfields.
Field
Description
Supported fields
scanID String
Unique identifier of the scan
isInProgress Boolean
Indicates if a scan is currently running
isFullScan Boolean
Indicates if this is a full code scan rather than an incremental scan
isContainerFullScan Boolean
Indicates if this is a full container scan rather than an incremental scan
isSingleRepoScan Boolean
Indicates if this is a scan of a single repository
isDastFullScan Boolean
Indicates if this is a full DAST scan rather than an incremental scan
Last updated
