Get Permission by name

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Get permission information by name.

Since: 2.0

Security: Admin only.

Usage: GET /api/v1/security/permissions/:name

Request Headers: N/A

Consumes: N/A

cURL Example

$ curl -X GET -u user:password "http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1/security/permissions/:name

Response status codes:

200 - Success

404 - Permission not found

Response headers: N/A

Produces: application/json

Response

{
  "distribution_destinations": [
    {
      "site_name": "*",
      "city_name": "*",
      "country_codes": [
        "*"
      ]
    }
  ],
  "name": "permission-name",
  "resource_type": "destination",
  "principals": {
    "users": {
      "anonymous": [
        "x"
      ]
    },
    "groups": {
      "readers": [
        "x"
      ]
    }
  }
}