Perform Office 365 Sharepoint Restore
Select
SaaS
Customer Managed
Perform Office 365 Sharepoint Restore
Path Parameters
- appId int32 required
Commvault Sharepoint app id
- application/json
Request Body
- ifDocumentExists string
Possible values: [
SKIP
,UNCONDITIONALLY_OVERWRITE
]Default value:
SKIP
- deletedItems boolean
Include deleted items on Restore
- additionalRestoreOption string
Possible values: [
RESTORE_ACLS_ONLY
,RESTORE_WORKFLOW_DEFINITION_AND_ALERTS_ONLY
] - latestVersion boolean
Default value:
true
Restore latest version only
- skipLookupMetadata boolean
Skip lookup metadata on sharepoint restore
sites object[]
category object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- taskId int32
- jobIds string[]
JobIds for the immediate run request
{
"taskId": 0,
"jobIds": [
"string"
]
}
POST /v4/office365/sharepoint/:appid/restore
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/Sharepoint/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifDocumentExists": "SKIP",
"deletedItems": true,
"additionalRestoreOption": "RESTORE_ACLS_ONLY",
"latestVersion": true,
"skipLookupMetadata": true,
"sites": [
{
"GUID": "string",
"name": "string",
"type": "SUBSITE"
}
],
"category": {
"GUID": "string",
"conditions": [
{
"ruleOperator": "CONTAINS",
"ruleValue": "string",
"ruleName": "GEO_LOCATION",
"propertyBagName": "string",
"propertyBagType": "DATE"
}
]
}
}'