调用CreateStorageGateway创建存储网关。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:CreateStorageGateway |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| OrderDetails |
array<object> |
是 |
订单数组。 |
|
|
object |
是 |
|||
| EnsRegionId |
string |
是 |
节点 ID。 |
cn-shenzhen-3 |
| GatewayType |
string |
是 |
网关类型。当前仅支持取值为 1,1 代表 iSCSI。 |
1 |
| VpcId |
string |
是 |
专有网络 ID。 |
n-123 |
| GatewayName |
string |
否 |
网关的显示名称。长度为 2~128 个英文或中文字符。必须以大小字母或中文开头,不能以 |
testGatewayName |
| Description |
string |
否 |
网关的描述。长度为 2~256 个英文或中文字符,不能以 |
testDescription |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
EA3758E0-8899-17D3-9526-5F62CF33A586 |
| AllocationId |
array<object> |
创建成功的节点列表。 |
|
|
object |
|||
| InstanceId |
string |
实例 ID。 |
e426409223 |
| EnsRegionId |
string |
所在的节点 ID。 |
cn-chengdu-telecom-4 |
| BizStatusCode |
string |
成功的状态码。
|
AllSuccess |
| UnAllocationId |
array<object> |
未创建成功的节点列表。 |
|
|
object |
|||
| InstanceId |
string |
实例 ID。 |
e426409258 |
| EnsRegionId |
string |
所在的节点 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 |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | OrderFailed | 订单失败 | |
| 400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | 创建资源的时候没有通过资源的售卖约束校验 |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | SaleControlVerificationFailedStock | Inventory sales constraint verification failed, please re-match, or contact the product. | 库存售卖约束校验未通过,请重新选配 |
| 400 | SaleControlVerificationFailedRegion | The node sales constraint verification failed, please re-select or contact the product. | 节点售卖约束校验未通过,请重新选配 |
| 400 | %s | Some of the bulk orders failed, please try again:%s. | 批量订单中有部分订单下单失败,请重试:%s |
| 400 | NoPermission | Permission denied. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。