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

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

Changes the specified 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: Not Required

JSON Schema:

   Object
   type: bool

onToOffDestructive

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

Use: Not Required

JSON Schema:

   Object
   type: bool

value

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

Use: Not Required

JSON Schema:

   Object
   type: bool

Responses

207

No Content, Success

400

Unexpected error

404

Partition policy template or policy doesn't exist.

Example Request

   PATCH 
   https://1.2.3.4:8443/api/lunasa/partitionPolicyTemplates/myTemplateName/policies/0
   {
    "offToOnDestructive": false
  }

Example Result

{

}