Get Buckets

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Retrieves all the license buckets in the system.

Since: 4.0

Notes: Requires Artifactory Enterprise

Security: Requires an admin user

Usage: GET /mc/api/v1/buckets

Return codes:

200 - Success

Produces: application/json

Sample Response:

[
        {
                "identifier" : "<bucket id>",
                "name" : "<bucket name>",
                "size" : <number of licenses in bucket>,
                "license_type": "<ENTERPRISE | EDGE>"
        }
]

Sample Usage:

GET /mc/api/v1/buckets
 
[
{
  "id" : "12345",
  "name" : "bucket-test-1",
  "size" : 10,
  "license_type": "ENTERPRISE" 
},
{
  "id" : "1234567",
  "name": "bucket-test-2",
  "size" : 5,
  "license_type": "EDGE" 
}
]