REST API  5.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/partitionPolicyTemplates

POST /api/lunasa/partitionPolicyTemplates

Create a partition policy template. This resource supports sending a comma seperated value list see File I/O.

Parameters

name

This parameter specifies the name of the template, the name is used as the unqiue identifier therefore this parameter must be unique.

Use: Required

JSON Schema:

    Object
    type:string

description

This parameters specifies the description of the template.

Use: Not Required

JSON Schema:

    Object
    type:string

template

This parameters specifies the location of a template. The template can be created from an existing partition policy template location see GET /api/lunasa/partitionPolicyTemplates/{partitionpolicytemplateid}. Alternatively a partition location can be given to create a template from a partition policy template in which case the location to the partition may be given see GET /api/lunasa/hsms/{hsmid}/partitions/{partitionid}

Use: Not Required

JSON Schema:

    Object
    type:string

Responses

204

No Content, Success.

400

Unexpected error

Example Request

  POST 
  https://1.2.3.4:8443/api/lunasa/partitionPolicyTemplates
  {
    "name":"myTemplateTest",
    "description":"myTemplateDescription",
    "template":"/api/lunasa/partitionPolicyTemplates/myTemplateName"
  }

  OR

  {
    "name":"myTemplateTest",
    "description":"myTemplateDescription",
    "template":"/api/lunasa/hsms/150607/partitions/1234567890"
  }

Example Result

{
}

See Also

GET /api/lunasa/partitionPolicyTemplates/{partitionpolicytemplateid}