調用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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。