Creates a user-level storage resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateDrive |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| AliUid |
integer |
No |
The ID of your Alibaba Cloud account. |
1202**** |
| UserId |
string |
No |
The user ID. |
user01 |
| DomainId |
string |
No |
The ID of the storage resource. Note
Call the DescribeDrives operation to retrieve the storage resource ID. |
dom-aaaa**** |
| ExternalDomainId |
string |
No |
The ID of the external storage resource. Note
Call the DescribeDrives operation to retrieve the external storage resource ID. |
1234**** |
| ResourceType |
string |
No |
The type of the storage resource. Valid values:
Valid values:
|
NAS |
| Type |
string |
No |
The usage of the storage resource. Valid values:
Valid values:
|
USER_PROFILE |
| DriveName |
string |
No |
The name of the user-level storage resource. |
test01 |
| Description |
string |
No |
The description of the user-level storage resource. |
test01 |
| ProfileRoaming |
boolean |
No |
Note
This parameter is deprecated. |
- |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
B7AA**** |
| Message |
string |
The response message. |
successful |
| Code |
string |
The response code. The value 200 indicates that the request was successful. |
200 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Drive |
object |
The user-level storage resource. |
|
| Id |
string |
The ID. |
1 |
| GmtCreate |
string |
The time when the storage resource was created. |
2025-07-02T08:42:26.000+00:00 |
| GmtModified |
string |
The time when the storage resource was last modified. |
2025-07-07T02:46:04.000+00:00 |
| AliUid |
string |
The ID of the Alibaba Cloud account. |
1202**** |
| DomainId |
string |
The ID of the storage resource. |
dom-aaaa**** |
| DriveId |
string |
The ID of the user-level storage resource. |
dri-aaaa**** |
| ExternalDriveId |
string |
The ID of the external user-level storage resource. Note
A value is returned for this parameter only if ResourceType is set to PDS. |
1100**** |
| UserId |
string |
The user ID. |
user01 |
| ExternalUserId |
string |
The ID of the external user. |
user01@cn-hangzhou.120**** |
| Name |
string |
The name of the storage resource. |
test**** |
| Description |
string |
The description of the storage resource. |
test**** |
| TotalSize |
integer |
The total amount of the user-level storage resource capacity. Note
Unit: bytes. |
536870912000 |
| UsedSize |
integer |
The amount of user-level storage resource capacity used. Note
Unit: bytes. |
243175936 |
| Status |
string |
The status of the user-level storage resource. Valid values:
Valid values:
|
NORMAL |
| Type |
string |
The usage of the storage resource. Valid values:
Valid values:
|
USER_PROFILE |
| ProfileRoaming |
boolean |
Note
This parameter is deprecated. |
- |
Examples
Success response
JSON format
{
"RequestId": "B7AA****",
"Message": "successful",
"Code": "200",
"Success": true,
"Drive": {
"Id": "1",
"GmtCreate": "2025-07-02T08:42:26.000+00:00",
"GmtModified": "2025-07-07T02:46:04.000+00:00",
"AliUid": "1202****",
"DomainId": "dom-aaaa****",
"DriveId": "dri-aaaa****",
"ExternalDriveId": "1100****",
"UserId": "user01",
"ExternalUserId": "user01@cn-hangzhou.120****",
"Name": "test****",
"Description": "test****",
"TotalSize": 536870912000,
"UsedSize": 243175936,
"Status": "NORMAL",
"Type": "USER_PROFILE",
"ProfileRoaming": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.