Perform Restore - NAS
Restore the NAS server from the backups
- application/json
Request Body
taskInfo object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
{
"taskId": 157,
"jobIds": [
"595"
]
}
POST /createtask
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/CreateTask' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"taskInfo": {
"task": {
"taskType": "IMMEDIATE"
},
"associations": [
{
"subclientId": 0,
"clientId": 0,
"applicationId": 13,
"backupsetId": 0,
"instanceId": 0,
"_type_": "string"
}
],
"subTasks": [
{
"subTask": {
"subTaskType": "RESTORE",
"operationType": "RESTORE"
},
"options": {
"restoreOptions": {
"browseOption": {
"commCellId": 2,
"backupset": {
"backupsetId": 0,
"clientId": 0
},
"timeRange": {
"toTime": 0
},
"browseJobCommCellId": 2
},
"destination": {
"destClient": {
"clientId": 0,
"clientName": "string"
},
"destAppId": 13,
"inPlace": true
},
"fileOption": {
"sourceItem": [
"/nac6vs1/Mounika1/hosts"
]
},
"impersonation": {},
"commonOptions": {
"overwriteFiles": false,
"unconditionalOverwrite": true,
"restoreACLs": true,
"isFromBrowseBackup": true
}
}
}
}
]
}
}'