Set GC Configuration

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Sets the Garbage Collector configuration.

Security: Requires an admin user.

Usage: PUT /api/v1/configuration/gc

Produces: application/json

Sample Request

{
   "scheduler_enabled": true/false,
   "scheduler_period_minutes" : int,
   "max_duration_seconds" : int,
   "max_retry_count" : int,
   "Idle_listener_enabled" : true/false,
   "Idle_listener_gc_duration_seconds" : int,
   "Idle_listener_sampling_rate_seconds" : int
}
{
        "info" : "Garbage collector configurations successfully updated" 
}

Response Codes:

200: ok

500: failed to update Garbage Collector configuration

400: parsing error/max_duration is below 60; period is below 60; max_retry_count is below 3

401: unauthorized

403: forbidden