Get Permission Rule

Get Permission Rule

Retrieves details for a specific permission rule. Each rule contains information about the principal and he access rights assigned.

Request
URI
GET
https://{api_host}/vco/api/packages/{packageName}/permissions/{ruleId}
COPY
Path Parameters
string
Required
string
Required

Responses
200

The request is successful

Returns permission of type(s) application/json
{
    "href": "string",
    "relations": {
        "total": 0,
        "start": 0,
        "link": [
            {
                "attribute": [
                    {
                        "displayValue": "string",
                        "value": "string",
                        "name": "string"
                    }
                ],
                "href": "string",
                "type": "string",
                "rel": "string"
            }
        ]
    },
    "principal": "string",
    "rights": "string"
}
string
href
Optional

href

relations
Optional

relations

string
principal
Optional

principal

string
rights
Optional

rights


400

Request is not valid (validation error)

Operation doesn't return any data structure

401

User is not authorized

Operation doesn't return any data structure

404

Cannot find a package with the specified name, the user does not have 'read' access rights for that package, or the permission rule with the specified ID does not exist

Operation doesn't return any data structure