Description: Enables administrators to configure a set of basic Xray settings.
Note
Some of these settings can also be configured individually using specific APIs, as described below.
Since: 7.37
Security: Requires an admin user
Usage: POST /artifactory/api/xrayRepo/updateXrayBasicSettings
Sample Request:
{ "xrayEnabled": true, "xrayAllowBlocked": false, "xrayAllowWhenUnavailable": false, "blockUnscannedTimeoutSeconds": 60, "blockUnfinishedScansTimeoutSeconds": 1800 }
The request includes the following information:
Property | Type | Description |
---|---|---|
| boolean | Determines whether Xray is currently enabled. Default value: |
| boolean | Determines whether to block artifacts from being downloaded. This setting cannot override the blocking of unscanned artifacts. Default value: NoteRelated API: Allow Download of Blocked Artifacts |
| boolean | Determines whether to block certain operations (for example, downloading artifacts) when the connected Xray instance is unavailable. Default value: NoteRelated API: Allow Download of Blocked Artifacts |
| integer | Defines the amount of time to wait for Xray to start scanning an artifact before blocking operations on that artifact automatically if the scan has still not started. Default value: 60 seconds (1 minute) |
| integer | Defines the amount of time to wait for Xray to finish scanning an artifact before blocking operations on that artifact automatically if the scan is still unfinished. Default value: 1800 seconds (30 minutes) NoteRelated API: Set Block Unscanned Artifacts Timeout Policy |
Sample Response: same as request