Description: Configures Access Federation for a specific JPD. As a prerequisite, the source and targets must have been configured properly for Access Federation.
Since: 4.0
Notes: Requires Artifactory Enterprise+
Security: Requires an admin user
Usage: PUT /mc/api/v1/federation/{JPD ID}
Return codes:
200 - Success
400, 422 - Invalid input
404 - JPD not found or not an Artifactory
Sample usage:
PUT /api/v1/federation/ { "entities": [ "USERS", "GROUPS" ], "targets": [ { "name": "artifactory2", "url": "http://localhost:8080/access" } ] }
Sample response:
[ { "label": "Get configuration of artifactory1", "status": "OK" }, { "label": "Get Access token from artifactory1", "status": "OK" }, { "label": "Check if artifactory2 trusts artifactory1", "status": "OK" }, { "label": "Send configuration to artifactory1", "status": "OK" }, { "label": "Add target artifactory2 to artifactory1", "status": "OK" } ]