Call the CreateFileSystem API to create a NAS file system.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:CreateFileSystem |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderDetails |
array<object> |
Yes |
An array of objects, each containing the details for an order. |
|
|
object |
Yes |
|||
| OrderType |
string |
Yes |
The order type. The only valid value is |
BUY |
| ChargeType |
string |
Yes |
The billing method for Apsara File Storage NAS. Valid values:
|
PostPaid |
| FileSystemName |
string |
Yes |
The name of the file system. The name must be 1 to 80 characters in length and can contain only letters, digits, hyphens (-), and underscores (_). |
nasFile |
| EnsRegionId |
string |
Yes |
The ID of the node. |
cn-suzhou-telecom |
| StorgeType |
string |
Yes |
The storage type. Valid values:
|
capacity |
| ProtocolType |
string |
Yes |
The storage protocol. The only valid value is Valid values:
|
nfs |
| NetworkId |
string |
Yes |
The ID of the Virtual Private Cloud (VPC). |
vpc-xxx |
| MountTargetDomain |
string |
Yes |
The name of the mount target. The name must be 1 to 80 characters in length and can contain only letters, digits, hyphens (-), and underscores (_). |
nasMount |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| AllocationId |
array |
The file systems that were successfully created. |
|
|
string |
|
{"InstanceId":"e426409223", "EnsRegionId":"cn-chengdu-telecom-4"} |
|
| BizStatusCode |
string |
The business status code. Valid values:
|
PartSuccess |
| UnAllocationId |
array |
The file systems that failed to be created. |
|
|
string |
|
{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"} |
|
| AllocationIds |
array<object> |
||
|
object |
|||
| EnsRegionId |
string |
||
| InstanceId |
string |
Examples
Success response
JSON format
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"AllocationId": [
"{\"InstanceId\":\"e426409223\", \"EnsRegionId\":\"cn-chengdu-telecom-4\"}"
],
"BizStatusCode": "PartSuccess",
"UnAllocationId": [
"{\"InstanceId\":\"e4264066666\",\"EnsRegionId\":\"cn-hangzhou-26\"}"
],
"AllocationIds": [
{
"EnsRegionId": "",
"InstanceId": ""
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Invalid.%s | The parameter %s is invalid.Please check your parameters and try it again. | |
| 400 | Stock.NotEnough | The inventory of the specified zone is insufficient.Please contact the product. | Insufficient resource inventory in the specified zone. |
| 400 | UserStatus.Abnormal | The user status is abnormal.Please contact the product. | The user is in an abnormal state. |
| 400 | Service.NotOpen | You have not activated the service.Please activate the service first. | The service has not been activated yet. |
| 400 | Order.CreateFailed | Failed to create order. Please check your parameters and try it again. | Failed to create the order. |
| 400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | Failed to pass the sales constraint verification when you create the resource. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.