Retrieves the default drive for a specified user.
Try it now
Test
RAM authorization
Request syntax
POST /v2/drive/get_default_drive HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| domain_id |
string |
Yes |
||
| body |
object |
No |
The request body. |
|
| user_id |
string |
No |
The user ID. This parameter is required when you use an AK but optional when you use an access token. If omitted, the ID of the user associated with the access token is used. |
c9b7a5aa04d14ae3867fdc886fa01da4 |
Response elements
|
Element |
Type |
Description |
Example |
| Drive |
The details of the default drive. |
Examples
Success response
JSON format
{
"domain_id": "bj1",
"drive_id": "1",
"drive_name": "drv1",
"description": "vipdrive",
"owner": "c9b7a5aa04d14ae3867fdc886fa01da4",
"owner_type": "user",
"drive_type": "normal",
"status": "enabled",
"used_size": 20480,
"total_size": 204800,
"created_at": "2019-08-20T06:51:27.292Z",
"creator": "c9b7a5aa04d14ae3867fdc886fa01da4"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.