Docs
api
File Storage(UFS)
CreateUFSVolume

Create File System - CreateUFSVolume

Overview

Create File System

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateUFSVolume.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
SizeintThe size of the file system, in GB, must be a multiple of 100. The minimum size for capacity-based file systems is 500GB, while the minimum size for performance-based file systems is 100GB.Yes
StorageTypestringFile system storage type, Basic represents capacity type, Advanced represents performance type.Yes
ProtocolTypestringFile system protocol, currently only supports NFSv4Yes
VolumeNamestringFile System NameNo
RemarkstringNoteNo
TagstringFile System’s Business GroupNo
ChargeTypestringBilling mode, enumeration values are: Year, pay annually; Month, pay monthly; Dynamic, pay as you go (permission required); Trial, trial (permission required) default is Dynamic.No
QuantityintPurchase Duration Default: 1No
CouponIdstringID of the voucher usedNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
VolumeNamestringFile System NameYes
VolumeIdstringFile System IDYes
VolumeStatusstringFile System Mount Point StatusYes

Example

Request Example

https://api.dezai.com/?Action=CreateUFSVolume
&VolumeName=saHszswLdzUZzUZsPiwCAnJtBouOgHSzIRb
&ProjectId=MIyyFdSR
&StorageType=Advanced
&ProtocolType=NFSv4
&Size=500

Response Example

{
  "Action": "CreateUFSVolumeResponse",
  "RetCode": 0,
  "VolumeId": "ufs-xxx",
  "VolumeName": "zUZzUZsPiwCAnJ",
  "VolumeStatus": "UnInitialized"
}