Update a policy
put/servers/{serverName}/policies/{policyName}
Updates a policy for a CAS server.
1{2 "version": 1,3 "name": "cas-shared-default-priority-3",4 "type": "priorityLevels",5 "attributes": [6 {7 "key": "cpu",8 "value": {9 "30": null10 }11 },12 {13 "key": "localTables",14 "value": {15 "10000000000": null16 }17 },18 {19 "key": "globalCasuser",20 "value": {21 "10000000000": null22 }23 },24 {25 "key": "globalCasuserHdfs",26 "value": {27 "10000000000": null28 }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"46 }47 ]48}
Name | Type | Required | Description |
---|---|---|---|
policyName | string | true | Policy to delete. |
serverName | string | true | Server name for which the policy information is being updated. |
Fields to update in the existing policy.
Detailed information about a CAS server policy.
Name | Type | Required | Description |
---|---|---|---|
name | string | true | The name of the policy. |
type | string | true | The type of the policy. Valid type values include globalCaslibs, priorityLevels, and priorityAssignments. |
attributes | array [Key/Value Array] | false | List of key/value pairs for the attributes of the policy. See the CAS documentation for details about valid keys and values for each policy type. |
links | array [Link] | false | The navigable links relative to this media type. |
version | integer | true | Version of the schema. This representation is version 1. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | Updated information for the specified policy was returned. | Schema | |
304 | Not Modified | The policy was not modified. | ||
400 | Bad Request | An error occurred. | Schema | |
404 | Not Found | Either the server name does not exist, or the policy for which an update is requested does not exist. | ||
409 | Conflict | The request could not be completed due to a conflict with the current state of the resource. Details are included in the response body. | ||
412 | Precondition Failed | Precondition Failed. | Schema |