Create a mirror from a template
Create and return a mirror ID by using an existing mirror template ID.
Request
Security
| Any | Super User | System Admin | Security Admin | Operator |
|---|---|---|---|---|
| superUser | systemAdmin |
HTTP method
POST /manager/api/{apiResponseType}/1.0/createMirrorFromTemplate.adm HTTP/1.1
Host:{manager.dsnet}
name={mirroringPolicy}&description={mirrorDescription}
Curl method
curl -X POST -u admin:password --header ”Content-Type:
application/x-www-form-urlencoded“ --header ”Accept: application/json“ -k
'https://192.168.25.14/manager/api/json/1.0/createMirrorFromTemplate.adm' -d
'id=1&name=test'
Parameters
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| id | String | Required |
The ID of the mirror template to use to create the mirror. |
|
| name | String | Required |
The name to give to the created mirror. |
|
| description | String | Optional |
The user-friendly description to give to the created mirror. |
|
| organizationId | Long | Optional | organizationId of the person creating the mirror. | The ID of the organization for the created mirror. |
Response
Returns success or failure status.
JSON response example success
{
”responseStatus“:”ok“,
”responseHeader“:{
”status“:”ok“,
”now“:{milliseconds from the UNIX epoch},
”requestId“:”{requestId}“
},
”responseData“:{
”id“:{mirrorId}
}
}JSON response example failure
{
”responseStatus“:”fail“,
”responseHeader“:{
”status“:”ok“,
”now“:{milliseconds from the UNIX epoch},
”requestId“:”{requestId}“
}
}