Use the OneDrive API to get metadata for a user's drive using its unique identifier.
GET /drives/{drive-id}
Parameter name | Value | Description |
---|---|---|
drive-id | string | Required. The ID for the drive requested. |
This method supports [optional query string parameters][odata-query-parameters] to shape the response.
Do not supply a request body with this method.
If successful, this method returns a [Drive resource][drive-resource] for the matching drive in the response body.
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "0123456789abc",
"owner": {
"user": {
"id": "12391913bac",
"displayName": "Ryan Gregg"
}
},
"quota": {
"total": 1024000,
"used": 514000,
"remaining": 1010112,
"deleted": 0,
"state": "normal"
},
"driveType": "personal"
}
Note: The Response object is truncated for clarity. All default properties will be returned from the actual call.
See [Error responses][error-response] for more info about how errors are returned. [error-response]: ../misc/errors.md [drive-resource]: ../resources/drive.md [odata-query-parameters]: ../odata/optional-query-parameters.md