Cancel Repository Advanced Scans

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Cancel an ongoing repository advanced scan.

Note: Only artifacts that are in ‘pending’ status will be canceled. Artifacts that are already scanned will have scan results.

Since: 3.73.x

Security: Requires a valid user with the "Manage Xray Metadata" permission.

Usage: POST /api/v1/repository/advancedScan/{scan_id}/cancelScan

Response Codes:

Status Code

Description

200

OK

201

Created

400

Bad request

404

Scan ID not found

Sample Request

POST /api/v1/repository/advancedScan/1652785017848893440/cancelScan

Sample Response

{"info": "Scan was canceled successfully"}