Full backup of a MongoDB instance
Select
SaaS
Customer Managed
This operation is used to backup a MongoDB instance
- application/json
Request Body
taskInfo object
Responses
- 200
- 400
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
processinginstructioninfo object
- taskId integer
- jobIds string[]
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"taskId": 0,
"jobIds": [
"string"
]
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "WebServer",
"value": "OBLIVION"
}
]
},
"taskId": 6026,
"jobIds": [
"34350"
]
}
Bad Request
- application/json
- application/xml
- Schema
- Example
Schema
- string
Request body is empty or format is invalid
- Schema
- Example (from schema)
Schema
- object
<root/>
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}
Not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "No instance is specified",
"errorCode": 4
}
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'
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": [
{
"subclientId": 0,
"displayName": "string",
"clientId": 0,
"instanceName": "string",
"appName": "Big Data Apps",
"applicationId": 64,
"clientName": "string",
"backupsetId": 0,
"instanceId": 0,
"subclientName": "default",
"backupsetName": "defaultBackupSet",
"_type_": 7
}
],
"task": {
"taskType": 1
},
"subTasks": [
{
"subTask": {
"subTaskType": 2,
"operationType": 2
},
"options": {
"backupOpts": {
"backupLevel": 1
},
"commonOpts": {
"notifyUserOnJobCompletion": false,
"subscriptionInfo": "string"
}
}
}
]
}
}'