調用CreateFileSystem介面建立NAS檔案系統。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:CreateFileSystem |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| OrderDetails |
array<object> |
是 |
訂單數組列表,列表裡面元素為每個訂單的詳情。 |
|
|
object |
是 |
|||
| OrderType |
string |
是 |
訂單類型,取值:BUY(購買)。 |
BUY |
| ChargeType |
string |
是 |
NAS 的計費方式。取值:
|
PostPaid |
| FileSystemName |
string |
是 |
檔案系統名稱。 長度限制為 1-80 個字元,可包含字母、數字、“-”“_”字元。 |
nasFile |
| EnsRegionId |
string |
是 |
節點 ID。 |
cn-suzhou-telecom |
| StorgeType |
string |
是 |
儲存類型,取值:
|
capacity |
| ProtocolType |
string |
是 |
儲存協議。取值:nfs。 枚舉值:
|
nfs |
| NetworkId |
string |
是 |
VPC 網路的 識別碼。 |
vpc-xxx |
| MountTargetDomain |
string |
是 |
掛載點名稱。長度限制為 1-80 個字元,可包含字母、數字、“-”“_”字元。 |
nasMount |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
4EC47282-1B74-4534-BD0E-403F3EE64CAF |
| AllocationId |
array |
成功建立出來的檔案系統。 |
|
|
string |
|
{"InstanceId":"e426409223", "EnsRegionId":"cn-chengdu-telecom-4"} |
|
| BizStatusCode |
string |
成功的狀態代碼,共兩種類型。取值:
|
PartSuccess |
| UnAllocationId |
array |
未成功的檔案系統。 |
|
|
string |
|
{"InstanceId":"e4264066666","EnsRegionId":"cn-hangzhou-26"} |
|
| AllocationIds |
array<object> |
||
|
object |
|||
| EnsRegionId |
string |
||
| InstanceId |
string |
樣本
正常返回樣本
JSON格式
{
"RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
"AllocationId": [
"{\"InstanceId\":\"e426409223\", \"EnsRegionId\":\"cn-chengdu-telecom-4\"}"
],
"BizStatusCode": "PartSuccess",
"UnAllocationId": [
"{\"InstanceId\":\"e4264066666\",\"EnsRegionId\":\"cn-hangzhou-26\"}"
],
"AllocationIds": [
{
"EnsRegionId": "",
"InstanceId": ""
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Parameter.Invalid.%s | The parameter %s is invalid.Please check your parameters and try it again. | |
| 400 | Stock.NotEnough | The inventory of the specified zone is insufficient.Please contact the product. | 指定的可用性區域資產庫存不足 |
| 400 | UserStatus.Abnormal | The user status is abnormal.Please contact the product. | 使用者狀態異常 |
| 400 | Service.NotOpen | You have not activated the service.Please activate the service first. | 尚未開通服務 |
| 400 | Order.CreateFailed | Failed to create order. Please check your parameters and try it again. | 訂單建立失敗 |
| 400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | 建立資源的時候沒有通過資源的售賣約束校正 |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。