Perform Office 365 Onedrive Restore
Select
SaaS
Customer Managed
Perform Office 365 Onedrive Restore
Path Parameters
- appId int32 required
Commvault Onedrive app id
- application/json
Request Body
- ifFileExists string
Possible values: [
SKIP
,UNCONDITIONALLY_OVERWRITE
,RESTORE_AS_COPY
]Default value:
SKIP
- deletedItems boolean
Include deleted items on Restore
- matchEmailAddress boolean
Match destination user based on the email address
- skipFilePermissions boolean
Default value:
true
Skip Onedrive file permissions during restore
users object[]
groups 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/onedrive/:appid/restore
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Office365/OneDrive/:appId/Restore' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"ifFileExists": "SKIP",
"deletedItems": true,
"matchEmailAddress": true,
"skipFilePermissions": true,
"users": [
{
"GUID": "string",
"name": "string"
}
],
"groups": [
{
"GUID": "string",
"name": "string"
}
]
}'