调用CreateFileSystem接口创建NAS文件系统。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:CreateFileSystem |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| OrderDetails |
array<object> |
是 |
订单数组列表,列表里面元素为每个订单的详情。 |
|
|
object |
是 |
|||
| OrderType |
string |
是 |
订单类型,取值:BUY(购买)。 |
BUY |
| ChargeType |
string |
是 |
NAS 的计费方式。取值:
|
PostPaid |
| FileSystemName |
string |
是 |
文件系统名称。 长度限制为 1-80 个字符,可包含字母、数字、“-”“_”字符。 |
nasFile |
| EnsRegionId |
string |
是 |
节点 ID。 |
cn-suzhou-telecom |
| StorgeType |
string |
是 |
存储类型,取值:
枚举值:
|
capacity |
| ProtocolType |
string |
是 |
存储协议。取值:nfs。 枚举值:
|
nfs |
| NetworkId |
string |
是 |
VPC 网络的 ID 号。 |
vpc-xxx |
| MountTargetDomain |
string |
是 |
挂载点名称。长度限制为 1-80 个字符,可包含字母、数字、“-”“_”字符。 |
nasMount |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| AllocationId |
array |
成功创建出来的文件系统。 |
|
|
string |
|
{"InstanceId":"e426409223", "EnsRegionId":"cn-chengdu-telecom-4"} |
|
| BizStatusCode |
string |
成功的状态码,共两种类型。取值:
|
PartSuccess |
| UnAllocationId |
array |
未成功的文件系统。 |
|
|
string |
|
{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"} |
|
| AllocationIds |
array<object> |
文件系统在各 ENS 节点上的实例分配信息列表。 |
|
|
object |
|||
| EnsRegionId |
string |
ENS 节点 ID。 |
cn-hangzhou-cm |
| InstanceId |
string |
实例 ID。 |
i-5s7xxxxxxx |
示例
正常返回示例
JSON格式
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"AllocationId": [
"{\"InstanceId\":\"e426409223\", \"EnsRegionId\":\"cn-chengdu-telecom-4\"}"
],
"BizStatusCode": "PartSuccess",
"UnAllocationId": [
"{\"InstanceId\":\"e4264066666\",\"EnsRegionId\":\"cn-hangzhou-26\"}"
],
"AllocationIds": [
{
"EnsRegionId": "cn-hangzhou-cm",
"InstanceId": "i-5s7xxxxxxx"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Parameter.Invalid.%s | The parameter %s is invalid.Please check your parameters and try it again. | |
| 400 | Stock.NotEnough | The inventory of the specified zone is insufficient.Please contact the product. | 指定的可用区资源库存不足 |
| 400 | UserStatus.Abnormal | The user status is abnormal.Please contact the product. | 用户状态异常 |
| 400 | Service.NotOpen | You have not activated the service.Please activate the service first. | 尚未开通服务 |
| 400 | Order.CreateFailed | Failed to create order. Please check your parameters and try it again. | 订单创建失败 |
| 400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | 创建资源的时候没有通过资源的售卖约束校验 |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。