Prioritize Federated Repository

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Determines whether the queue of the specified Federated repository has priority access to system resources. Prioritizing the repository helps ensure timely synchronization of its events with other members of the Federation.

Important

There can be a maximum of 10 prioritized Federated repositories at any one time on the JPD.

Since: 7.104.2

Security: Requires Admin permissions

Usage: PUT federation/prioritization/{repo-key}?priorityLevel=high/standard

Query Parameter:

Field

Type

Description

priorityLevel

string

Defines the priority level assigned to the Federated repository:

  • high: The repository is assigned High priority, which means it is given priority access to system resources to help ensure its events are synchronized with other Federation members.

  • standard: The repository is assigned Standard priority, which means it does not have preference over other Federated repositories with regards to synchronization. This is the default value.

Sample Request:

PUT /api/federation/prioritization/{repo-key}?priorityLevel=high/standard
Content-Type: application/json
{}

Sample Response:

The repository priority has been changed to %s.

Status Codes:

Code

Description

200

The repository was prioritized/deprioritized successfully

400

Invalid request

403

Forbidden

404

The repository was not found

500

Internal error