This is an archive version of the document. To get the most up-to-date information, see the current version.

(GET) /RestoreSessions/{restoreSessionId}/Organization/OneDrives/{oneDriveId}/Documents

In this article

    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/{restoreSessionId}/Organization/OneDrives/{oneDriveId}/Documents resource:

    HTTPS Request

    GET https://<Backup-Office365>:4443/v3/RestoreSessions/{restoreSessionId}/Organization/OneDrives/{oneDriveId}/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/{restoreSessionId}/Organization/OneDrives/{oneDriveId}/Documents

    Example 1

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

    Request:

    GET https://support.north.local:4443/v3/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": [

      {

       "sizeBytes": 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/v3/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/v3/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

        },

        "parent": {

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

        }

       }

      },

      {

       "sizeBytes": 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/v3/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/v3/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

        },

        "parent": {

         "href": "https://support.north.local:4443/v3/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/v3/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/v3/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": [

      {

       "sizeBytes": 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/v3/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/v3/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

        },

        "parent": {

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

        }

       }

      },

      {

       "sizeBytes": 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/v3/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/v3/restoresessions/61954db6-7278-4d26-86f7-888bda5a4ec4/organization/onedrives/b3184e77-b95b-45f7-96cc-180a20b61cbd8507931c-4561-4ddf-bc90-411aba44bb39"

        },

        "parent": {

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

      }

     }

    }

     

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.