调用CreateStorageGateway创建存储网关。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
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 |
返回参数
示例
正常返回示例
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. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-07-24 | OpenAPI 错误码发生变更 | 查看变更详情 |