Getting Restore Points for OneDrives

In this article

    You can get a list of OneDrives contained in a restore point with the specified ID.

    Request

    GET https://<hostname>:4443/v6/RestorePoints/{restorePointId}/onedrives

    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

    restorePointId

    string

    Specifies the identification number of the restore point. For more information on how to get this parameter, see Getting Restore Points.

    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 /RestorePoints/{restorePointId}/onedrives resource. The response body contains the following properties:

    Property

    Type

    Description

    id

    string

    Specifies the OneDrive ID.

    name

    string

    Specifies the OneDrive name.

    url

    string

    Specifies the OneDrive URL.

    _links

    Dictionary of string [key] and Object [value]

    Links to related resources (navigation property).

    Example

    The example returns a resource representation of OneDrives in the restore point with the ID f8eec7e0-e063-4d6f-b695-5fb7757e4ebe2d83e73a-6b50-4a68-8d52-655c84d98c62.

    Request:

    GET https://abc.tech.local:4443/v6/RestorePoints/f8eec7e0-e063-4d6f-b695-5fb7757e4ebe2d83e73a-6b50-4a68-8d52-655c84d98c62/onedrives

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Response:

    200 OK

     

    Response Body:

    [

     {

       "id": "7a780e6e-46be-4735-b542-aa7c4758e53d",

       "name": "admin8",

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

       "_links": {

         "restorePoint": {

           "href": "/v6/restorePoints/f8eec7e0-e063-4d6f-b695-5fb7757e4ebe2d83e73a-6b50-4a68-8d52-655c84d98c62"

         }

       }

     },

     {

       "id": "b2308fda-3ada-4ddf-ba12-747fae907046",

       "name": "admin7",

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

       "_links": {

         "restorePoint": {

           "href": "/v6/restorePoints/f8eec7e0-e063-4d6f-b695-5fb7757e4ebe2d83e73a-6b50-4a68-8d52-655c84d98c62"

         }

       }

     }

    ]