Get an authorization rule

get/rules/{ruleId}
Internal-Use Only

Retrieves a specified authorization rule.

Request Samples

1

Response Samples

1{
2 "type": "grant",
3 "permissions": [
4 "read"
5 ],
6 "principal": "testprincipal",
7 "principalType": "authenticatedUsers",
8 "objectUri": "/preferences/",
9 "description": "Allow access to a service root.",
10 "matchParams": false,
11 "version": 10,
12 "links": [
13 {
14 "method": "GET",
15 "rel": "self",
16 "href": "/authorization/rules/3288b305-981f-4b8d-b440-0911eabc3fac",
17 "uri": "/authorization/rules/3288b305-981f-4b8d-b440-0911eabc3fac",
18 "type": "application/vnd.sas.authorization.rule"
19 },
20 {
21 "method": "PUT",
22 "rel": "update",
23 "href": "/authorization/rules/3288b305-981f-4b8d-b440-0911eabc3fac",
24 "uri": "/authorization/rules/3288b305-981f-4b8d-b440-0911eabc3fac",
25 "type": "application/vnd.sas.authorization.rule",
26 "responseType": "application/vnd.sas.authorization.rule"
27 },
28 {
29 "method": "DELETE",
30 "rel": "delete",
31 "href": "/authorization/rules/3288b305-981f-4b8d-b440-0911eabc3fac",
32 "uri": "/authorization/rules/3288b305-981f-4b8d-b440-0911eabc3fac"
33 }
34 ],
35 "id": "3288b305-981f-4b8d-b440-0911eabc3fac",
36 "modifiedTimestamp": "2016-08-27T04:09:42.150Z",
37 "createdTimestamp": "2016-08-27T04:09:42.150Z",
38 "createdBy": "sas.preferences",
39 "modifiedBy": "sas.preferences",
40 "enabled": true
41}

Path Parameters

NameTypeRequiredDescription
ruleId
string
true

The ID of the rule to retrieve.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundNo authorization rule with the specified ID was found.Schema