cfs — Cloud File Storage
cfs · 2019-07-19

CreateCfsFileSystem

POST

Create a file system.

Wire call

Converge Cloud is RPC over HTTP. There is one path — / — and the action travels in the X-TC-Action header. The /cfs/CreateCfsFileSystem path used in the OpenAPI document is a documentation convenience so each action is addressable; it is not a route on the server.

curl
curl -sS https://cfs.api3.convergecloud.com/ \
  -H 'Authorization: TC3-HMAC-SHA256 Credential=<SecretId>/<YYYY-MM-DD>/cfs/tc3_request, SignedHeaders=content-type;host;x-tc-action, Signature=<sig>' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Host: cfs.api3.convergecloud.com' \
  -H 'X-TC-Action: CreateCfsFileSystem' \
  -H 'X-TC-Version: 2019-07-19' \
  -H 'X-TC-Timestamp: <unix-seconds>' \
  -H 'X-TC-Region: luzon' \
  -d '{"Zone":"<Zone>","NetInterface":"<NetInterface>","PGroupId":"<PGroupId>","Protocol":"<Protocol>","StorageType":"<StorageType>"}'

Request parameters

FieldTypeRequiredDescription
ZonestringYesAZ name, such as "ap-beijing-1". For the list of regions and AZs, please see Overview
NetInterfacestringYesNetwork type. Valid values: `VPC` and `CCN`. Select `VPC` for a Standard or High-Performance file system, and `CCN` for a Standard Turbo or High-Performance Turbo one.
PGroupIdstringYesPermission group ID. pgroupbasic is the default permission group. obtain through the api DescribeCfsPGroups to query the permission group list.
ProtocolstringYesFile system protocol type. valid values: NFS, CIFS, and TURBO. if left blank, NFS by default. the TURBO series must select TURBO. NFS and CIFS are not supported.
StorageTypestringYesStorage type of the file system. Valid values: `SD` (Standard), `HP` (High-Performance), `TB` (Standard Turbo), and `TP` (High-Performance Turbo). Default value: `SD`.
VpcIdstringNoPrivate network (VPC) ID. if the network type is VPC, this field must be specified. obtain it by querying the private network interface.
SubnetIdstringNoSubnet ID. this field must be specified if the network type is VPC. obtain through the api for querying subnets.
MountIPstringNoIP address (this parameter supports only the VPC network type, and the Turbo series is not supported). If this parameter is left empty, a random IP in the subnet will be assigned.
FsNamestringNoCustom file system name
ResourceTagsTagInfo[]NoFile system tag
ClientTokenstringNoA unique string supplied by the client to ensure that the request is idempotent. Its maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed. This string is valid for 2 hours.
CcnIdstringNoCloud connect network ID. this field must be specified if the network type is CCN. obtain it by querying the CCN list through the api.
CidrBlockstringNoCCN IP range used by the CFS (required if the network type is CCN), which cannot conflict with other IP ranges bound in CCN
CapacityintegerNoFile system capacity, required for the turbo series, in GiB. turbo standard type in GB, starting from 20 TiB (20480 GiB); scaling increment 10 TiB (10240 GiB). turbo performance type starts from 10 TiB (10240 GiB); capacity expansion step 10 TiB (10240 GiB).
SnapshotIdstringNoFile system snapshot ID. this parameter can be obtained by querying the snapshot list.
AutoSnapshotPolicyIdstringNoScheduled snapshot policy ID, which can be obtained by querying the snapshot policy information.
EnableAutoScaleUpbooleanNoWhether default expansion is enabled. only turbo file storage supports this feature.
CfsVersionstringNov1.5: create a standard edition general file system.
MetaTypestringNoturbo file system metadata attribute.

Response

Fields are returned inside the Response envelope. Converge Cloud answers HTTP 200 for errors as well as successes, so read Response.Error rather than the status code — and test for the presence of that object, because Code is occasionally the empty string.

FieldTypeDescription
CreationTimestringFile system creation time
CreationTokenstringCustom file system name
FileSystemIdstringFile system ID
LifeCycleStatestringFile system status. Valid values: `creating`, `create_failed`, `available`, `unserviced`, `upgrading`, `deleting`
SizeByteintegerStorage used by the file system, in bytes
ZoneIdintegerAZ ID
FsNamestringCustom file system name
EncryptedbooleanWhether a file system is encrypted
RequestIdstringThe unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
Success
{
  "Response": {
    "CreationTime": …,
    "CreationToken": …,
    "RequestId": "…"
  }
}
Error
{
  "Response": {
    "Error": { "Code": "…", "Message": "…" },
    "RequestId": "…"
  }
}

Try it

CredentialThe key never leaves this tab — it signs the request here. The signed request goes to /api-relay/cfs.
Request bodyvalid JSONPOST cfs.api3.convergecloud.com · CreateCfsFileSystem