Description: Adds a new JPD to Mission Control.
Since: Artifactory 7.29
Security: Requires an admin user
Usage: POST /mc/api/v1/jpds
Return codes:
201 - Created
400 - Failed to connect to the JPD. Please verify that the JPD information provided is correct
409 - Conflicts with an existing JPD (URL, name)
Consumes: application/json
{
+ "name" : "<JPD name>",
+ "url" : "<JPD URL>", // The JPD base URL
+ "token" : "<Pairing Token>", // The JPD Pairing Token
+ "location" : {
+ "city_name" : "<City name>",
+ "country_code" : "<Country code>",
+ "latitude" : <Latitude>,
+ "longitude" : <Longitude>
},
- "tags" : [ "<Tag 0>", "<Tag 1>" ]
}+=mandatory; -=optional
Sample Usage:
POST /mc/api/v1/jpds
{
"name" : "dev-west",
"url" : "https://artifactory-west.acme.com",
"token" : "<Pairing token>",
"location" : {
"city_name" : "San Francisco",
"country_code" : "US",
"latitude" : 37.7749,
"longitude" : 122.4194
},
"tags" : [ "prod", "dev" ]
}To add a legacy JPD (Artifactory 6.x)
POST /api/v1/jpds
{
+ "name" : "<JPD name>",
+ "url" : "<JPD URL>", // The JPD base URL
+ "username" : "<admin username>",
+ "password" : "<admin pasword>",
+ "location" : {
+ "city_name" : "<City name>",
+ "country_code" : "<Country code>",
+ "latitude" : <Latitude>,
+ "longitude" : <Longitude>
},
- "tags" : [ "<Tag 0>", "<Tag 1>" ]
}