Getting OneDrives by OneDrive ID
This section explains how to get a resource representation of organization OneDrive with the specified ID.
Request
GET https://<hostname>:4443/v5/Organizations/{organizationId}/Users/{userId}/OneDrives/{onedriveId} |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be posted as URL.
Parameter | Type | Description |
---|---|---|
organizationId | string | An identification number of the organization. |
userId | string | An identification number of the user. |
onedriveId | string | An identification number of OneDrive. |
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
Property | Type | Description |
---|---|---|
Id | string | OneDrive ID. |
URL | string | OneDrive path. |
Name | string | The site name. |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
Example
Request: GET https://abc.tech.local:4443/v5/Organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/Users/5c5fe7b7-d240-49c9-a5ee-2d96d47bf72d00000000-0000-0000-0000-000000000000/OneDrives/b4893c84-2d65-4882-8d0a-eb81fbd5f42eaade5e27-92a0-40f8-9086-e9a43e715514
Request Header: Authorization: Bearer <Access-Token>
Response Code: 200 OK
Response Body: { "id":"b4893c84-2d65-4882-8d0a-eb81fbd5f42eaade5e27-92a0-40f8-9086-e9a43e715514", "name":"sharedmailboxod", "url":"https://backup-my.sharepoint.com/personal/sharedmailboxod_backup_onmicrosoft_com", "_links":{ "self":{ "href":"https://abc.tech.local:4443/v5/organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/users/5c5fe7b7-d240-49c9-a5ee-2d96d47bf72d00000000-0000-0000-0000-000000000000/onedrives/b4893c84-2d65-4882-8d0a-eb81fbd5f42eaade5e27-92a0-40f8-9086-e9a43e715514" }, "user":{ "href":"https://abc.tech.local:4443/v5/organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/users/5c5fe7b7-d240-49c9-a5ee-2d96d47bf72d00000000-0000-0000-0000-000000000000" } } } |