REST API  4.0.0
REST API for SafeNet Network HSMs
PATCH /api/lunasa/hsms/{hsmid}/policies/{policyid}

PATCH /api/lunasa/hsms/{hsmid}/policies/{policyid}

Changes a specific HSM policy.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

policyid

The identifier of the policy to change

Use: Required

JSON Schema:

   Object
   type: string

value

The new value for the HSM policy

Use: Required

JSON Schema:

   Object
   type: string

Responses

204

Success

Location

JSON Schema:

    id: Object
        type: string

"Location" is the URL to the task spawned to perform the action on the HSM policy.

400

Unexpected error

Example Request

   PATCH 
   https://1.2.3.4:8443/api/lunasa/hsms/154704/policies/33
   {"value": 0}

Example Result

{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/hsms/tasks/23', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}

{
}