MSSQL Restores
Select
SaaS
Customer Managed
This API provides restore functionality for MSSQL Instances.
- application/json
Request Body
- In-Place Restore
- Out-of-Place Restore
- Restore to Disk
taskInfo object
taskInfo object
taskInfo object
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- taskId integer
- jobIds string[]
{
"taskId": 0,
"jobIds": [
"string"
]
}
Bad Request
- application/json
- Schema
- Example
Schema
- string
Request body is empty or format is invalid.
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access denied",
"errorCode": 5
}
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'
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": {
"associations": [
{
"clientId": 0,
"appName": "string",
"instanceId": 0
}
],
"task": {
"initiatedFrom": 2
},
"subTasks": [
{
"subTask": {
"subTaskType": 3,
"operationType": 1001,
"subTaskName": "string"
},
"options": {
"restoreOptions": {
"browseOption": {
"backupset": {
"clientId": 0
},
"timeRange": {
"fromTime": 0,
"toTime": 0
}
},
"sqlServerRstOption": {
"pointOfTimeRst": false,
"pointInTime": {
"time": 0
},
"sqlRecoverType": {},
"sqlRestoreType": {},
"latestBkpData": true,
"dropConnectionsToDatabase": true,
"overWrite": true,
"database": [
"string"
],
"restoreSource": [
"string"
],
"proxyClient": {
"clientName": "string"
},
"snapOopStageFolder": "string"
},
"destination": {
"destClient": {
"clientId": 0
},
"destinationInstance": {
"instanceId": 0,
"clientId": 0,
"appName": "SQL Server"
}
}
}
},
"pattern": {
"description": "string",
"freq_type": 0,
"freq_interval": 0,
"active_start_date": 0,
"active_start_time": 0,
"freq_recurrence_factor": 0,
"freq_relative_interval": 0,
"freq_subday_interval": "string",
"active_end_date": "string",
"active_end_time": "string",
"active_end_occurence": "string",
"timeZone": {
"TimeZoneId": 0
}
}
}
]
}
}'