Create a vault from a template

Request

Security

Table 1. Roles capable of executing the Create Vault from Template API method
Any Super User System Admin Security Admin Operator
  superUser systemAdmin    

HTTP method

POST /manager/api/{apiResponseType}/1.0/createVaultFromTemplate.adm HTTP/1.1 Host:{manager.dsnet} name={newVaultName}&id={vaultTemplateId}

Curl method

curl -u {admin}:{password} ”https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/createVaultFromTemplate.adm“ -d ”name={newVaultName}&id={vaultTemplateId}“

Parameters

Table 2. Request Parameters for Create Vault from Template (createVaultFromTemplate) API method
Parameter Type Usage Default Description
id Long Required  

ID of vault template to create new vault.

name String Required  

New vault name.

description String Optional  

New vault description.

mirrorId Long Optional  

ID of mirror of which vault is a part of.

mirrorPositionCode String Optional  
  • The policy code for this vault in the mirroring policy
  • Must be one of either position1 or position2
  • If the mirroring policy already has a vault in one of the positions, it must be different.
provisioningCode String Optional Vault name 

During container creation, the provisioning code is specified (as part of the locationConstraint) to indicate in which container vault the container should be created. If the provisioning code is not set, containers can be created in this container vault if this container vault is configured as the default container vault for an access pool.

region String Optional   Available for container vaults only. It indicates where the contents of this vault resides.
storageClass String Optional   Available for container vaults only. It is a classification assigned to all objects stored within this vault.
organizationId Long Optional   The ID of the organization for the vault.

Response

Returns success or failure status.

JSON response example

{
  ”responseStatus“: ”ok“,
  ”responseData“: {
    ”id“: 8
  },
  ”responseHeader“: {
    ”status“: ”ok“,
    ”now“: 1400094291772,
    ”requestId“: ”U3O@U8CoDkMAACjwCaUAAAAE“
  }

}

Parameters

Table 3. Response Parameters for Create Vault from Template (createVaultFromTemplate) API method
Parameter Type Description
id Long

New vault ID.