Get a policy

get/servers/{serverName}/policies/{policyName}
Internal-Use Only

Retrieves a single policy for a CAS server.

Request Samples

1

Response Samples

1{
2 "version": 1,
3 "name": "cas-shared-default-priority-3",
4 "type": "priorityLevels",
5 "attributes": [
6 {
7 "key": "cpu",
8 "value": {
9 "30": null
10 }
11 },
12 {
13 "key": "localTables",
14 "value": {
15 "10000000000": null
16 }
17 },
18 {
19 "key": "globalCasuser",
20 "value": {
21 "10000000000": null
22 }
23 },
24 {
25 "key": "globalCasuserHdfs",
26 "value": {
27 "10000000000": null
28 }
29 }
30 ],
31 "links": [
32 {
33 "method": "GET",
34 "rel": "up",
35 "href": "/casManagement/servers/cas-shared-default/policies",
36 "uri": "/casManagement/servers/cas-shared-default/policies",
37 "type": "application/vnd.sas.collection",
38 "itemType": "application/vnd.sas.cas.server.policy.summary"
39 },
40 {
41 "method": "GET",
42 "rel": "self",
43 "href": "/casManagement/servers/cas-shared-default/policies/cas-shared-default-priority-3",
44 "uri": "/casManagement/servers/cas-shared-default/policies/cas-shared-default-priority-3",
45 "type": "application/vnd.sas.cas.server.policy.summary"
46 }
47 ]
48}

Path Parameters

NameTypeRequiredDescription
policyName
string
true

Policy to delete.

serverName
string
true

Server name for which the policy information is being requested. The media type passed to the request determines whether detailed or summary information is returned. In this version of the API, the content of both are the same. Passing an accept header of application/json is equivalent to requesting detailed information.

Responses

StatusMeaningDescription
200OKThe requested information about the policy was returned.Schema
400Bad RequestAn error occurred.Schema
404Not FoundThe requested server name does not exist, or the policy requested does not exist.
409ConflictThe request could not be completed due to a conflict with the current state of the resource. Details are included in the response body.