Help Center
Choose product document...
Veeam Backup for Microsoft Office 365 2.0
RESTful API Reference

(GET) /RestoreSessions/{ID}/Organization/OneDrives/{ID}/Documents

Returns a resource representation of OneDrive documents for exploring and restoring.

Request

To get a resource representation of OneDrive documents, send the GET HTTPS request to the URL of the /RestoreSessions/{ID}/Organization/OneDrives/{ID}/Documents resource:

HTTPS Request

GET https://<Backup-Office365>:4443/v2/RestoreSessions/{ID}/Organization/OneDrives/{ID}/Documents

Request Headers

The request header must contain the authorization token for the current logon session.

Request Body

None.

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns response code 200 OK.

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTPS headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the request body message: application/json; charset=utf-8

Response Body

In the response body, the server returns a representation of the /RestoreSessions/{ID}/Organization/OneDrives/{ID}/Documents

Example 1

The following request returns an entity representation of the organization's OneDrive parent documents.

Request:

GET https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/724011c3-a540-4684-b24f-3e2ab4ef6380df26ea7d-6468-4846-bdf5-4e88d871ed11/documents?parentId=null

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

 "offset": 0,

 "limit": 30,

 "results": [

  {

   "size": 80101,

   "inheritedPermissions": true,

   "version": "1.0",

   "id": "0e4079a2-faa5-41bf-b8a7-ba883308cbc9",

   "name": "Ёлочк.jpg",

   "createdBy": "System Account",

   "creationTime": "2018-04-09T09:12:59",

   "modifiedBy": "System Account",

   "modificationTime": "2018-04-09T09:12:59",

   "_links": {

    "self": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/documents/0e4079a2-faa5-41bf-b8a7-ba883308cbc9"

    },

    "onedrive": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

    },

    "parent": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/folders/89e2b52a-66e3-4a1a-a088-4655dfbe95d7"

    }

   }

  },

  {

   "size": 1040384,

   "inheritedPermissions": true,

   "version": "2.0",

   "id": "206b13cc-a453-4102-a256-20a64f760e6d",

   "name": "nice_bakuretsu.png",

   "createdBy": "System Account",

   "creationTime": "2017-12-26T12:07:30",

   "modifiedBy": "System Account",

   "modificationTime": "2017-12-26T12:07:30",

   "_links": {

    "self": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/documents/206b13cc-a453-4102-a256-20a64f760e6d"

    },

    "onedrive": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

    },

    "parent": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/folders/67cdafbf-8c14-434e-a02d-a04f228e0086"

    }

   }

  }

 ],

 "_links": {

  "self": {

   "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/documents?offset=0&limit=30"

  }

 }

}

 

Example 2

The following request returns an entity representation of all organization OneDrive documents.

Request:

GET https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/724011c3-a540-4684-b24f-3e2ab4ef6380df26ea7d-6468-4846-bdf5-4e88d871ed11/documents

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

 "offset": 0,

 "limit": 30,

 "results": [

  {

   "size": 80101,

   "inheritedPermissions": true,

   "version": "1.0",

   "id": "0e4079a2-faa5-41bf-b8a7-ba883308cbc9",

   "name": "resource.jpg",

   "createdBy": "System Account",

   "creationTime": "2018-04-09T09:12:59",

   "modifiedBy": "System Account",

   "modificationTime": "2018-04-09T09:12:59",

   "_links": {

    "self": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/documents/0e4079a2-faa5-41bf-b8a7-ba883308cbc9"

    },

    "onedrive": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

    },

    "parent": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/folders/89e2b52a-66e3-4a1a-a088-4655dfbe95d7"

    }

   }

  },

  {

   "size": 1040384,

   "inheritedPermissions": true,

   "version": "2.0",

   "id": "206b13cc-a453-4102-a256-20a64f760e6d",

   "name": "nice_bakuretsu.png",

   "createdBy": "System Account",

   "creationTime": "2017-12-26T12:07:30",

   "modifiedBy": "System Account",

   "modificationTime": "2017-12-26T12:07:30",

   "_links": {

    "self": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/documents/206b13cc-a453-4102-a256-20a64f760e6d"

    },

    "onedrive": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

    },

    "parent": {

     "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/folders/67cdafbf-8c14-434e-a02d-a04f228e0086"

    }

   }

  }

 ],

 "_links": {

  "self": {

   "href": "https://support.north.local:4443/v2/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39/documents?offset=0&limit=30"

  }

 }

}

 

Veeam Large Logo

User Guide

RESTful API Reference

PowerShell Reference