Create a vault from a template
Request
Security
| 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
| 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 |
|
|
| 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
| Parameter | Type | Description |
|---|---|---|
| id | Long |
New vault ID. |