呼叫 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 網路的 ID 號碼。 |
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> |
檔案系統在各 ENS 節點上的執行個體分配資訊清單。 |
|
|
object |
|||
| EnsRegionId |
string |
ENS 節點 ID。 |
cn-hangzhou-cm |
| InstanceId |
string |
執行個體 ID。 |
i-5s7xxxxxxx |
樣本
正常返回樣本
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": "cn-hangzhou-cm",
"InstanceId": "i-5s7xxxxxxx"
}
]
}
錯誤碼
|
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。