CreateStorageGateway - 创建存储网关

调用CreateStorageGateway创建存储网关。

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
OrderDetailsarray<object>

订单数组。

object
EnsRegionIdstring

节点 ID。

cn-shenzhen-3
GatewayTypestring

网关类型。当前仅支持取值为 11 代表 iSCSI。

1
VpcIdstring

专有网络 ID。

n-123
GatewayNamestring

网关的显示名称。长度为 2~128 个英文或中文字符。必须以大小字母或中文开头,不能以http://https://开头。可以包含数字、半角冒号(:)、下划线(_)或者短划线(-)。

testGatewayName
Descriptionstring

网关的描述。长度为 2~256 个英文或中文字符,不能以http://https://开头。

testDescription

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

EA3758E0-8899-17D3-9526-5F62CF33A586
AllocationIdarray<object>

创建成功的节点列表。

AllocationIdobject
InstanceIdstring

实例 ID。

e426409223
EnsRegionIdstring

所在的节点 ID。

cn-chengdu-telecom-4
BizStatusCodestring

成功的状态码。

  • PartSuccess:部分成功。
  • AllSuccess:全部成功。
AllSuccess
UnAllocationIdarray<object>

未创建成功的节点列表。

UnAllocationIdobject
InstanceIdstring

实例 ID。

e426409258
EnsRegionIdstring

所在的节点 ID。

cn-chengdu-26

示例

正常返回示例

JSON格式

{
  "RequestId": "EA3758E0-8899-17D3-9526-5F62CF33A586",
  "AllocationId": [
    {
      "InstanceId": "e426409223",
      "EnsRegionId": "cn-chengdu-telecom-4"
    }
  ],
  "BizStatusCode": "AllSuccess",
  "UnAllocationId": [
    {
      "InstanceId": "e426409258",
      "EnsRegionId": "cn-chengdu-26"
    }
  ]
}

错误码

HTTP status code错误码错误信息描述
400OrderFailed订单失败-
400SaleControl.VerificationFailedYou did not pass the salecontrol verification.Please contact the product.创建资源的时候没有通过资源的售卖约束校验
400Invalid%sThe specified parameter %s is invalid.参数不正确
400SaleControlVerificationFailedStockInventory sales constraint verification failed, please re-match, or contact the product.库存售卖约束校验未通过,请重新选配
400SaleControlVerificationFailedRegionThe node sales constraint verification failed, please re-select or contact the product.节点售卖约束校验未通过,请重新选配
400%sSome of the bulk orders failed, please try again:%s.批量订单中有部分订单下单失败,请重试:%s
400NoPermissionPermission denied.没有足够的权限,请联系云账号管理员授予您相应权限。

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

变更历史

变更时间变更内容概要操作
2024-07-24OpenAPI 错误码发生变更查看变更详情