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 RepositoryCreate a new repository, including Federated type
Update Repository ConfigurationUpdate an existing repository configuration
Delete RepositoryDelete a repository
Convert Local Repository to a Federated RepositoryConvert a local repository to Federated
Convert Federated Repository to a Local RepositoryConvert a Federated repository back to local

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

The dedicated Federated repository configuration JSON file is:
application/vnd.org.jfrog.artifactory.repositories.FederatedRepositoryConfiguration+json

For example, to create or update a Federated repository configuration using the Update Repository Configuration API:

curl -X PUT "https://<SERVER_URL>/artifactory/api/repositories/<REPOSITORY_KEY>" \
  -H "Content-Type: application/vnd.org.jfrog.artifactory.repositories.FederatedRepositoryConfiguration+json" \
  -u <USERNAME>:<ACCESS_TOKEN> \
  -d @federated-repo-config.json

Where:

  • <SERVER_URL>: Your JFrog Platform server URL.
  • <REPOSITORY_KEY>: The key of the Federated repository to create or update.
  • <USERNAME>: Your JFrog Platform username.
  • <ACCESS_TOKEN>: A valid JFrog access token.

For example:

curl -X PUT "https://mycompany.jfrog.io/artifactory/api/repositories/libs-release-federated" \
  -H "Content-Type: application/vnd.org.jfrog.artifactory.repositories.FederatedRepositoryConfiguration+json" \
  -u admin:<ACCESS_TOKEN> \
  -d @federated-repo-config.json
📘

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?