文档

CreateFileSystem - 创建文件系统

调用CreateFileSystem接口NAS文件系统。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
ens:CreateFileSystem
  • acs:ens::{#accountId}:*

请求参数

名称类型必填描述示例值
OrderDetailsobject []

订单数组列表,列表里面元素为每个订单的详情。

OrderTypestring

BUY。

BUY
ChargeTypestring

NAS 的计费方式。取值:

  • PrePaid:包年包月(暂不支持此方式)。
  • PostPaid:按量计费。
PostPaid
FileSystemNamestring

文件系统名称。

nasFile
EnsRegionIdstring

节点 ID。

cn-suzhou-telecom
StorgeTypestring

存储类型,取值:capacity。

capacity
ProtocolTypestring

存储协议。取值:nfs/smb。

nfs
NetworkIdstring

VPC 网络的 ID 号。

vpc-xxx
MountTargetDomainstring

挂载点名称.

nasMount

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

4EC47282-1B74-4534-BD0E-403F3EE64CAF
AllocationIdarray

成功创建出来的文件系统。

string
  • InstanceId:系统 ID。
  • EnsRegionId:所在的节点。
{"InstanceId":"e426409223", "EnsRegionId":"cn-chengdu-telecom-4"}
BizStatusCodestring

成功的状态码,共两种类型。取值:

  • PartSuccess:部分成功。
  • AllSuccess:全部成功。
PartSuccess
UnAllocationIdarray

未成功的文件系统。

string
  • InstanceId:系统 ID。
  • EnsRegionId:所在的节点。
{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"}

示例

正常返回示例

JSON格式

{
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
  "AllocationId": [
    "{\"InstanceId\":\"e426409223\", \"EnsRegionId\":\"cn-chengdu-telecom-4\"}"
  ],
  "BizStatusCode": "PartSuccess",
  "UnAllocationId": [
    "{\"InstanceId\":\"e4264066666\",\"EnsRegionId\":\"cn-hangzhou-26\"}"
  ]
}

错误码

HTTP status code错误码错误信息描述
400Parameter.Invalid.%sThe parameter %s is invalid.Please check your parameters and try it again.-
400Stock.NotEnoughThe inventory of the specified zone is insufficient.Please contact the product.指定的可用区资源库存不足
400UserStatus.AbnormalThe user status is abnormal.Please contact the product.用户状态异常
400Service.NotOpenYou have not activated the service.Please activate the service first.尚未开通服务
400Order.CreateFailedFailed to create order. Please check your parameters and try it again.订单创建失败
400SaleControl.VerificationFailedYou did not pass the salecontrol verification.Please contact the product.创建资源的时候没有通过资源的售卖约束校验
400NoPermissionPermission denied.没有足够的权限,请联系云账号管理员授予您相应权限。
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈