REST API  5.0.0
REST API for SafeNet Network HSMs
PUT /api/lunasa/partitionPolicyTemplates/{partitionpolicytemplateid}/policies/{policyid}

PUT /api/lunasa/partitionPolicyTemplates/{partitionpolicytemplateid}/policies/{policyid}

Changes all configurable values for a given partition policy template policy.

Parameters

partitionpolicytemplateid

Specifies the partition policy template to access.

Use: Required

JSON Schema:

   Object
   type: string

policyid

Specifies the policy id to access within the partition policy template.

Use: Required

JSON Schema:

   Object
   type: string

offToOnDestructive

Specifies whether the specific policy should be destructive when changed from off-to-on.

Use: Required

JSON Schema:

   Object
   type: bool

onToOffDestructive

Specifies whether the specific policy should be destructive when changed from on-to-off.

Use: Required

JSON Schema:

   Object
   type: bool

value

Specifies whether the specific policy should be on or off by default.

Use: Required

JSON Schema:

   Object
   type: bool

Responses

204

400

Unexpected error

404

Partition policy template or policy doesn't exist.

Example Request

   PUT 
   https://1.2.3.4:8443/api/lunasa/partitionPolicyTemplates/myTemplateName/policies/0
   {
    "offToOnDestructive": true,
    "onToOffDestructive": true,
    "value": 0
  }

Example Result

{

}