You need to enable JavaScript to run this app.
文档中心
弹性文件存储

弹性文件存储

复制全文
下载 pdf
文件系统
CreateFileSystem - 创建文件系统
复制全文
下载 pdf
CreateFileSystem - 创建文件系统
调用 CreateFileSystem 接口创建文件系统。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:CreateFileSystem​
要执行的操作,取值:CreateFileSystem。​
​
Version string 必选 示例值:2025-01-01​
API的版本,取值:2025-01-01。​
​
FileSystemName string 必选 示例值:filesystem_test​
文件系统名称。​
​
ZoneId string 必选 示例值:cn-beijing-b​
可用区 ID。​
​
InstanceType string 必选 示例值:Premium​
文件系统类型,取值说明如下:​
  • Basic:基础型​
  • Premium:高级型​
​
PerformanceDensity string 必选 示例值:Premium_125​
文件系统性能密度,取值说明如下:​
  • Basic_50:基础型 50MB/s/TiB​
  • Premium_125:高级型 125MB/s/TiB​
​
BandwidthMode string 必选 示例值:Provisioned​
带宽模式,取值说明如下:​
  • Baseline:基线带宽模式​
  • Provisioned:预置带宽模式​
​
ChargeType string 可选 示例值:PayAsYouGo​
计费类型。仅支持取值为PayAsYouGo,表示按量计费。​
​
ProjectName string 可选 示例值:projectname_test​
项目名称。​
​
Description string 可选 示例值:for_test​
描述信息。​
​
ProvisionedBandwidth integer 可选 示例值:200​
预置带宽。​
​
BurstBandwidth integer 可选 示例值:200​
突发带宽。​
​
Tags object[] 可选 示例值:详情请参见示例代码​
标签信息。​
Type string 必选 示例值:Custom​
标签类型。取值说明如下:​
  • System:系统标签​
  • Custom:自定义标签​
​
Key string 必选 示例值:key_test​
标签键。​
​
Value string 可选 示例值:value_test​
标签值。​
​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
FileSystemId string 示例值:efs-cncqb627aa118****​
文件系统 ID。​
​
OrderNo string 示例值:Order724371858305511****​
订单号。​
​
​
​
请求示例​
​
POST /?Action=CreateFileSystem&Version=2025-01-01 HTTP/1.1​
Host: efs.cn-beijing.volcengineapi.com​
Content-Type: application/json; charset=UTF-8​
X-Date: 20260202T070742Z​
X-Content-Sha256: 287e874e******d653b44d21e​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260202/cn-beijing/efs/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
{​
"FileSystemName": "filesystem_test",​
"ZoneId": "cn-beijing-b",​
"InstanceType": "Premium",​
"PerformanceDensity": "Premium_125",​
"BandwidthMode": "Provisioned",​
"ChargeType": "PayAsYouGo",​
"ProjectName": "projectname_test",​
"Description": "for_test",​
"ProvisionedBandwidth": 200,​
"BurstBandwidth": 200,​
"Tags": [​
{​
"Type": "Custom",​
"Key": "key_test",​
"Value": "value_test"​
}​
]​
}​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20260127175256156068236116AE****",​
"Action": "CreateFileSystem",​
"Version": "2025-01-01",​
"Service": "efs",​
"Region": "cn-beijing"​
},​
"Result": {​
"FileSystemId": "efs-cncqb627aa118****",​
"OrderNo": "Order724371858305511****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
MissingParameter.ZoneId​
The required parameter ZoneId is not supplied.​
所需参数 ZoneId 未提供。​
400​
MissingParameter.FileSystemName​
The required parameter FileSystemName is not supplied.​
所需参数 FileSystemName 未提供。​
400​
BillingErrorInsufficientPermission​
Your account has no permission to purchase our product.​
您的账户没有权限购买我们的产品。​
400​
BillingError.AccountInArrears​
Your account is in arrears, please recharge first.​
您的账户已欠费,请先充值。​
400​
BillingError.BalanceNotEnough​
Your account balance and available vouchers are less than 100CNY, please recharge first.​
您的账户余额和可用代金券不足 100 元,请先充值。​
400​
InvalidSaleStatus.SoldOut​
The specified product specification is sold out.​
指定产品规格已售罄。​
400​
InvalidSaleStatus.NotSale​
The specified product specification is not for sale.​
指定的产品规格尚未售卖。​
400​
InvalidParameter.ChargeType​
The specified parameter ChargeType is invalid.​
参数 ChargeType 不合法。​
400​
InvalidParameter.BandwidthMode​
The specified parameter BandwidthMode is invalid.​
参数 BandwidthMode 不合法。​
400​
InvalidParameter.PerformanceDensity​
The specified parameter PerformanceDensity is invalid.​
参数 PerformanceDensity 不合法。​
400​
InvalidParameter.InstanceType​
The specified parameter InstanceType is invalid.​
参数 InstanceType 不合法。​
500​
InternalError​
An internal error has occurred.​
内部错误。​
​
​
最近更新时间:2026.02.05 17:53:58
这个页面对您有帮助吗?
有用
有用
无用
无用