All Products
Search
Document Center

ENS:CreateFileSystem

Last Updated:Mar 27, 2026

Call the CreateFileSystem API to create a NAS file system.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 (purchase).

BUY

ChargeType

string

Yes

The billing method for Apsara File Storage NAS. Valid values:

  • PrePaid: subscription. This billing method is not currently supported.

  • PostPaid: pay-as-you-go.

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: Capacity

  • Performance: Performance

capacity

ProtocolType

string

Yes

The storage protocol. The only valid value is nfs.

Valid values:

  • nfs :

    nfs

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: The instance ID.

  • EnsRegionId: The node where the file system is located.

{"InstanceId":"e426409223", "EnsRegionId":"cn-chengdu-telecom-4"}

BizStatusCode

string

The business status code. Valid values:

  • PartSuccess: The operation was partially successful.

  • AllSuccess: The operation was completely successful.

PartSuccess

UnAllocationId

array

The file systems that failed to be created.

string

  • InstanceId: The instance ID.

  • EnsRegionId: The node where the file system is located.

{"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.