All Products
Search
Document Center

ENS:CreateFileSystem

Last Updated:Aug 21, 2026

Creates a NAS file system by calling the CreateFileSystem operation.

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

The list of orders. Each element in the list contains the details of an order.

object

Yes

OrderType

string

Yes

The order type. Valid values: BUY.

BUY

ChargeType

string

Yes

The billable methods of NAS. Valid values:

  • PrePaid: subscription (currently not supported).

  • PostPaid: pay-as-you-go billing method.

PostPaid

FileSystemName

string

Yes

The file system name. The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (-), and underscores (_).

nasFile

EnsRegionId

string

Yes

The edge zone ID.

cn-suzhou-telecom

StorgeType

string

Yes

The storage type. Valid values:

  • capacity: storage-optimized.

  • Performance: ultra-fast.

Valid values:

  • performance :

    Performance.

  • capacity :

    storage-optimized.

capacity

ProtocolType

string

Yes

The storage protocol. Valid values: nfs.

Valid values:

  • nfs :

    NFS protocol.

  • smb :

    SMB protocol.

nfs

NetworkId

string

Yes

The ID of the VPC.

vpc-xxx

MountTargetDomain

string

Yes

The mount target name. The name must be 1 to 80 characters in length and can contain letters, digits, hyphens (-), and underscores (_).

nasMount

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

4EC47282-1B74-4534-BD0E-403F3EE64CAF

AllocationId

array

The file systems that are created.

string

  • InstanceId: the instance ID.

  • EnsRegionId: the edge zone.

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

BizStatusCode

string

The status code that indicates the result. Valid values:

  • PartSuccess: partially successful.

  • AllSuccess: all successful.

PartSuccess

UnAllocationId

array

The file systems that failed to be created.

string

  • InstanceId: the system ID.

  • EnsRegionId: the edge zone.

{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"}

AllocationIds

array<object>

The list of instance allocation information for the file system across ENS edge zones.

object

EnsRegionId

string

The ENS edge zone ID.

cn-hangzhou-cm

InstanceId

string

The instance ID.

i-5s7xxxxxxx

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": "cn-hangzhou-cm",
      "InstanceId": "i-5s7xxxxxxx"
    }
  ]
}

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.