All Products
Search
Document Center

ENS:CreateFileSystem

Last Updated:Mar 12, 2024

Creates a Network Attached Storage (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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
OrderDetailsobject []Yes

The information about the orders.

OrderTypestringYes

The type of the order.

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.

nasFile
EnsRegionIdstringYes

The ID of the node.

cn-suzhou-telecom
StorgeTypestringYes

The type of the storage. Set the value to capacity.

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.

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 system.
  • 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