Description: Attaches a license from a bucket to the specified JPD.
Since: 4.0
Notes: Requires Artifactory Enterprise.
Security: Requires an admin user
Usage: POST /mc/api/v1/buckets/{name}/deploy
Consumes: application/json
{ "jpd_id" : "<a JPD id>", "license_count" : <number of licenses to upload to Artifactory> }
Produces: application/json
Return codes:
200 - Success
400 - "JPD with id <jpd_id> was not found."
500 - "Cannot deploy licenses from bucket <bucket_name> to <jpd_id>"
Sample usage:
attachlicense.json
POST /api/v1/buckets/mybucket/deploy { "jpd_id" : "JPD-12", "license_count" : 1 }
Sample response:
example output
{ "success" : true, "message" : "Assigned 1 license from bucket bucket-test-1 to JPD-12." }