Modifies drive information.
Try it now
Test
RAM authorization
Request syntax
POST /v2/drive/update HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| domain_id |
string |
Yes |
||
| body |
object |
No |
The request body. |
|
| drive_id |
string |
Yes |
The drive ID. |
1 |
| drive_name |
string |
No |
The drive name. The name can be up to 128 characters long. |
我的个人空间 |
| description |
string |
No |
The description of the drive. The description can be up to 1,024 characters long. |
vip空间 |
| status |
string |
No |
The status of the drive. Valid values: enabled: The drive is available for use. Valid values:
|
enabled |
| total_size |
integer |
No |
The total size of the drive, in bytes. Set this value to -1 to have no limit. |
10240 |
| owner |
string |
No |
The owner of the drive. Note: To change the owner of a personal drive, you must use an access key (AK). |
user1 |
Response elements
|
Element |
Type |
Description |
Example |
| Drive |
The updated Drive object. |
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.