Create locked mirror by using createMirrorFromTemplate API

Method Absolute Path

https://{manager.system}/manager/api/{json|xml}/1.0/createMirrorFromTemplate.adm
Table 1. Request Parameters
Parameter Use Default Description
id required   The ID of the mirror template to use to create the mirror.
name required   The name to give to the created mirror.
description optional   The description to give to the created mirror.
Capable Roles
Vault Provisioner.
Return Value
The Manager-generated ID of the new mirror is returned on success.
Curl Format Example

curl --cacert {path to ca certificate} 
     --key {path to private key} 
     --cert {path to certificate} -v
       https://{manager.system}/manager/api/json/1.0/createMirrorFromTemplate.adm' 
     -d ‘id={template Id}&name={mirror name}&description={mirror description}'
Command to Create Locked Mirror

curl --key private-key.pem 
     --cert certificate.pem 
     --cacert ca-cert.pem
       'https://{manager.system}/manager/api/json/1.0/createMirrorFromTemplate.adm' 
     -d 'id=1&name=testMirror&description=test mirror creation'
Response

{"responseStatus":"ok","responseHeader":{"now":1441993876352,"status":"ok",
 "requestId":"VfMUlMCoDlIAAFkevMcAAABt"},"responseData":{"id":2}}