Configuring the Workers Count

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Configure the number of workers which enables you to control the number of workers for new content and existing content.

Since: 3.6

Notes: Self-Hosted only

Security: Requires an admin user

Usage: PUT /api/v1/configuration/workersCount

Note

You must restart Xray to apply the changes.

Sample Usage:

{
    "index": {
        "new_content": 8,
        "existing_content": 4
    },
    "persist": {
        "new_content": 8,
        "existing_content": 4
    },
    "analysis": {
        "new_content": 8,
        "existing_content": 4
    },
    "alert": {
        "new_content": 8,
        "existing_content": 4
    },
    "impact_analysis": {
        "new_content": 4
    },
    "notification": {
        "new_content": 8
    }
}

Response Codes:

200: Success

400: Invalid input: error

400: Failed to parse workers count

500: Failed to update workers count

415: Unsupported media type

403: Forbidden

401: Unauthorized