All Products
Search
Document Center

ENS:CreateFileSystem

Last Updated:Jul 26, 2024

Creates a NAS file system.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ens:CreateFileSystem
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
OrderDetailsarray<object>Yes

The information about the orders.

objectYes
OrderTypestringYes

The type of the order. Set the value to BUY.

BUY
ChargeTypestringYes

The billing method of the NAS file system. Valid values:

  • PrePaid: subscription. This billing method is not supported.
  • PostPaid: pay-as-you-go.
PostPaid
FileSystemNamestringYes

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

nasFile
EnsRegionIdstringYes

The ID of the edge node.

cn-suzhou-telecom
StorgeTypestringYes

The storage type. Valid values:

  • Capacity.
  • Performance.
capacity
ProtocolTypestringYes

The storage protocol. Valid values: nsf and smb.

nfs
NetworkIdstringYes

The ID of the VPC.

vpc-xxx
MountTargetDomainstringYes

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

nasMount

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

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

The information about the file system that was created.

string
  • InstanceId: the ID of the instance.
  • EnsRegionId: the ID of the node.
{"InstanceId":"e426409223","EnsRegionId":"cn-chengdu-telecom-4"}
BizStatusCodestring

The status code for successful operations. Valid values:

  • PartSuccess: The operation is partially successful.
  • AllSuccess: The operation is successful.
PartSuccess
UnAllocationIdarray

The information about the file system that failed to be created.

string
  • InstanceId: the ID of the system.
  • EnsRegionId: the ID of the node.
{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"}

Examples

Sample success responses

JSONformat

{
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
  "AllocationId": [
    "{\"InstanceId\":\"e426409223\",\"EnsRegionId\":\"cn-chengdu-telecom-4\"}"
  ],
  "BizStatusCode": "PartSuccess",
  "UnAllocationId": [
    "{\"InstanceId\":\"e4264066666\",\"EnsRegionId\":\"cn-hangzhou-26\"}"
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400Parameter.Invalid.%sThe parameter %s is invalid.Please check your parameters and try it again.-
400Stock.NotEnoughThe inventory of the specified zone is insufficient.Please contact the product.Insufficient resource inventory in the specified zone.
400UserStatus.AbnormalThe user status is abnormal.Please contact the product.The user is in an abnormal state.
400Service.NotOpenYou have not activated the service.Please activate the service first.The service has not been activated yet.
400Order.CreateFailedFailed to create order. Please check your parameters and try it again.Failed to create the order.
400SaleControl.VerificationFailedYou did not pass the salecontrol verification.Please contact the product.Failed to pass the sales constraint verification when you create the resource.
400NoPermissionPermission denied.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history