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.

APIDescription
Get Repositories by Type and ProjectList repositories filtered by type and project
Create RepositoryFederate a Local repository with rclass: "local" and a members list
Update Repository ConfigurationUpdate an existing repository configuration
Delete RepositoryDelete a repository
Convert Local Repository to a Federated RepositoryChange an existing repository into the classic Federated type
Convert Federated Repository to a Local RepositoryNot 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.

APIDescription
Federated Repository Full SyncPerform a Full Sync operation on Federated repositories
Synchronize Federated Member ConfigurationPush updated configuration to a target Federation member
Federation RecoveryPerform manual Federation recovery
Replay Failed Binary TasksReset retry count for failed binary synchronization tasks
Update Custom URL BaseChange 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.

APIDescription
Get Federation Connection DetailsView connection details between Federation members
Get Federation State DetailsView the state of Federation members
Get Federation State SummariesView summary of all Federation states
Prioritize Federated RepositoryAssign priority to a Federated repository
Reconnect to Federation ClientReconnect 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.

APIDescription
Get Federated Repository StatusView the status of a Federated repository
Get Federated Repository Status (v2)View the status of a Federated repository (v2)
Get Federation Sync StateView the synchronization state of Federation members
Get Federation Mirror Lag TimeView the mirror lag time for Federation members
Get Unavailable MirrorsView 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.

APIDescription
Create Pairing TokenGenerate a new pairing token for Federation members
Initiate PairingPair a target JPD to a source JPD using a token
Revoke Token by IDRevoke 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


Did this page help you?