CreateFileSystem
Description
call the CreateFileSystem interface to create a file system.
Request Method
POST
Request Path
/apsara/route/NAS/CreateFileSystem
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
StorageType | BODY | string | Yes | Performance | storage type. Value: Performance: performance type Capacity: capacity type |
Description | BODY | string | No | balabala | file system description. Limit: is 2 to 128 English or Chinese characters in length. must start with upper and lower case letters or Chinese, and cannot be http:// and https://. can contain numbers, semicolons (:), underscores (_), or dashes (-). |
EncryptType | BODY | integer | Yes | 1 | whether the file system is encrypted. Use the KMS service hosting key to encrypt and store the file system data. When reading and writing encrypted data, there is no need to decrypt it. Value: 0: No encryption 1: Encryption |
ZoneId | BODY | string | Yes | cn-hangzhou-b | zone ID. The usable area refers to the physical area where power and network are independent of each other in the same area. description File systems and ECS cloud servers are interoperable between different zones in the same region. It is recommended that the file system and the cloud server ECS belong to the same zone to avoid delays across zones. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ProtocolType | BODY | string | Yes | NFS | file transfer protocol type. Value: NFS:NFS file transfer protocol. SMB:SMB file transfer protocol. |
VolumeSize | BODY | long | No | 100 | general NAS capacity size. unit: Byte value: Capacity type: 0~10 PB Performance type: 0~1 PB |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestId | string | 98696EF0-1607-4E9D-B01D-F20930B6**** | request ID. |
FileSystemId | string | 1ca404**** | file system ID to complete creation. |
Example
Successful Response example
{
"RequestId":"98696EF0-1607-4E9D-B01D-F20930B6****",
"FileSystemId":"1ca404****"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}