Getting SharePoint Data by Repository ID

In this article

    You can get a collection of backed-up or archived SharePoint sites whose data is stored in a backup repository with the specified ID.

    Request

    GET https://<hostname>:4443/v6/BackupRepositories/{repositoryId}/SiteData

    Request Headers

    The request header must contain an authorization token of the current session.

    Request Parameters

    The following parameter must be specified in the URL of the request:

    Parameter

    Type

    Description

    repositoryId

    string

    Specifies the identification number of the backup repository. For more information on how to get this parameter, see Getting Backup Repositories.

    Request Body

    None.

    Response

    The server returns the following response to the client.

    Response Codes

    A successfully completed operation returns a 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 response body message: application/json; charset=utf-8

    Response Body

    In the response body, the server returns a resource representation of the /BackupRepositories/{repositoryId}/SiteData collection resource.

    Example

    The example returns a resource representation of SharePoint sites whose backed-up or archived data is stored in the backup repository with the ID 79f3e494-4991-4dd5-b6fa-f1cf8c421265.

    Request:

    GET https://abc.tech.local:4443/v6/BackupRepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/SiteData

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Response:

    200 OK

     

    Response Body:

    {

     "offset": 0,

     "limit": 30,

     "_links": {

       "self": {

         "href": "/v6/BackupRepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/SiteData?offset=0&limit=30"

       }

     },

     "results": [

       {

         "id": "18113f79-5344-43bf-962c-44dfdd4160db70e7bee3-08ea-48ac-ba1a-16863f06e1e2",

         "title": "User1",

         "url": "https://abc-my.sharepoint.com/personal/user1_abc_onmicrosoft_com",

         "backedUpTime": "2022-01-28T16:05:38.2081098Z",

         "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000",

         "_links": {

           "self": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/sitedata/18113f79-5344-43bf-962c-44dfdd4160db70e7bee3-08ea-48ac-ba1a-16863f06e1e2"

           },

           "organization": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000"

           },

           "backupRepository": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265"

           }

         }

       },

       {

         "id": "2bba7ec6-4711-4ad8-8c43-335abee74d313a8f02b1-4f00-4123-9067-3fb7e71177b4",

         "title": "User 2",

         "url": "https://abc-my.sharepoint.com/personal/user2_abc_onmicrosoft_com",

         "backedUpTime": "2022-01-28T16:08:21.2654526Z",

         "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000",

         "_links": {

           "self": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/sitedata/2bba7ec6-4711-4ad8-8c43-335abee74d313a8f02b1-4f00-4123-9067-3fb7e71177b4"

           },

           "organization": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000"

           },

           "backupRepository": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265"

           }

         }

       },

       {

         "id": "2f9740f5-19b8-485b-831c-16059b9d317b11836b6a-b7bc-489b-9c0f-feece79f07e1",

         "title": "User 3",

         "url": "https://abc-my.sharepoint.com/personal/user3_abc_onmicrosoft_com",

         "backedUpTime": "2022-01-28T16:08:13.0179823Z",

         "organizationId": "abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000",

         "_links": {

           "self": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/sitedata/2f9740f5-19b8-485b-831c-16059b9d317b11836b6a-b7bc-489b-9c0f-feece79f07e1"

           },

           "organization": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265/organizationdata/abc.onmicrosoft.com:00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000"

           },

           "backupRepository": {

             "href": "/v6/backuprepositories/79f3e494-4991-4dd5-b6fa-f1cf8c421265"

           }

         }

       },

    ...

    ],

     "setId": "00000000-0000-0000-0000-000000000000"

    }