REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/ntls/clients/{clientid}/links

POST /api/lunasa/ntls/clients/{clientid}/links

Registers a link to a partition with a client.

Parameters

clientid

The identifier of the client of interest

Use: Required

JSON Schema:

   Object
   type: string

url

The url of the partition of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

204

Link created.

Location

JSON Schema:

    id: Object
        type: string

"Location" is the URL to the link registered to the client and is returned in the server response. You can use "Location" to form a DELETE resource to remove the link from the client.

see DELETE /api/lunasa/ntls/clients/{clientid}/links/{linkid}

400

Unexpected error

Example Request

   POST 
   https://1.2.3.4:8443/api/lunasa/ntls/clients/testClient3/links
   {
        "url": "/api/lunasa/hsms/155532/partitions/362126088893"
   }

Example Result

{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/ntls/clients/testClient3/links/273087011269', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}

{
}

Notes

This resource will require SO authentication when the forceSoLogin flag is enabled. (See GET /api/lunasa)