REST API Reference Index
Browse the categorized index of Federation REST APIs for repository management and monitoring.
This page lists all REST APIs related to Federated repositories.
Repository Management APIs
Use the following APIs to manage Federated repositories.
| API | Description |
|---|---|
| Get Repositories by Type and Project | List repositories filtered by type and project |
| Create Repository | Federate a Local repository with rclass: "local" and a members list |
| Update Repository Configuration | Update an existing repository configuration |
| Delete Repository | Delete a repository |
| Convert Local Repository to a Federated Repository | Change an existing repository into the classic Federated type |
| Convert Federated Repository to a Local Repository | Not supported from Artifactory 7.179. Returns HTTP 400. To stop federating a repository, remove its members |
Federation Operations APIs
Use the following APIs to perform Federation operations.
| API | Description |
|---|---|
| Federated Repository Full Sync | Perform a Full Sync operation on Federated repositories |
| Synchronize Federated Member Configuration | Push updated configuration to a target Federation member |
| Federation Recovery | Perform manual Federation recovery |
| Replay Failed Binary Tasks | Reset retry count for failed binary synchronization tasks |
| Update Custom URL Base | Change the custom base URL |
Monitoring APIs: Artifactory Federation Service
Use the following APIs to monitor Federation status with the Artifactory Federation Service. These APIs power the Federation Dashboard.
| API | Description |
|---|---|
| Get Federation Connection Details | View connection details between Federation members |
| Get Federation State Details | View the state of Federation members |
| Get Federation State Summaries | View summary of all Federation states |
| Prioritize Federated Repository | Assign priority to a Federated repository |
| Reconnect to Federation Client | Reconnect to a Federation client |
Monitoring APIs: Legacy Federation Service
Use the following APIs to monitor Federation status with the legacy Federation service. If you're still using this service, consider migrating to RTFS.
| API | Description |
|---|---|
| Get Federated Repository Status | View the status of a Federated repository |
| Get Federated Repository Status (v2) | View the status of a Federated repository (v2) |
| Get Federation Sync State | View the synchronization state of Federation members |
| Get Federation Mirror Lag Time | View the mirror lag time for Federation members |
| Get Unavailable Mirrors | View mirrors that are currently unavailable |
Authentication APIs
Use the following APIs for Federation authentication. See Federation over JFrog Bridge for the pairing workflow these APIs support.
| API | Description |
|---|---|
| Create Pairing Token | Generate a new pairing token for Federation members |
| Initiate Pairing | Pair a target JPD to a source JPD using a token |
| Revoke Token by ID | Revoke an obsolete token |
Configuration JSON
Federate a Local repository with Create Repository or Update Repository Configuration. Send rclass: "local" and a members list.
curl -X PUT "https://<SERVER_URL>/artifactory/api/repositories/<REPOSITORY_KEY>" \
-H "Content-Type: application/json" \
-u <USERNAME>:<ACCESS_TOKEN> \
-d '{"rclass":"local","packageType":"generic","members":[{"url":"https://member.example.com/artifactory/<REPOSITORY_KEY>","enabled":"true"}]}'Where:
<SERVER_URL>: Your JFrog Platform server URL.<REPOSITORY_KEY>: The key of the Local repository.<USERNAME>: Your JFrog Platform username.<ACCESS_TOKEN>: A valid JFrog access token.
rclass: "federated" and application/vnd.org.jfrog.artifactory.repositories.FederatedRepositoryConfiguration+json remain valid for a repository that is already stored as Federated.
Read Federation status
GET /artifactory/api/v3/repositories returns each repository with its rclass and a separate federated field.
curl -X GET "https://<SERVER_URL>/artifactory/api/v3/repositories?federated=true" \
-u <USERNAME>:<ACCESS_TOKEN>federated=true returns federated repositories. federated=false returns repositories that are not federated. Omit the parameter to return both. GET /artifactory/api/v3/repositories/batch returns the same federated field and members list. Existing rclass: "federated" repositories appear in this v3 list as rclass: "local".
{
"key": "libs-release-local",
"rclass": "local",
"federated": true,
"members": [
{ "url": "https://member.example.com/artifactory/libs-release-local", "enabled": true }
]
}Note
When working inside a specific project, the Federated repositories that comprise the Federation must all share the same project key.
Related Topics
Updated 4 days ago
