為E-HPC叢集掛載共用儲存。
介面說明
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ehpc:AttachSharedStorages |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClusterId |
string |
是 |
叢集 ID。 您可以通過調用 ListClusters 擷取叢集 ID。 |
ehpc-hz-FYUr32**** |
| SharedStorages |
array<object> |
是 |
共用儲存資訊列表。 |
|
|
object |
否 |
共用儲存資訊。 |
||
| MountDirectory |
string |
是 |
需要掛載檔案系統的本地掛載目錄。 |
/test |
| FileSystemId |
string |
是 |
需要掛載的檔案系統 ID。 |
0bd504b0** |
| StorageDirectory |
string |
是 |
檔案系統儲存目錄。支援將檔案系統內的任意檔案目錄,掛載到指定的叢集目錄 |
/testehpc |
| MountTarget |
string |
是 |
掛載檔案系統的掛載點地址。 |
0bd504b***-ngq26.cn-hangzhou.nas.aliyuncs.com |
| ProtocolType |
string |
是 |
掛載的檔案系統協議類型。取值範圍:
|
NFS |
| MountOptions |
string |
否 |
掛載的檔案系統掛載選項。取值範圍:
預設值:-t nfs -o vers=3,nolock,proto=tcp,noresvport 說明
在沒有多台 ECS 同時編輯修改同一檔案的情境時,推薦使用 v3 版本,效能更好 |
-t nfs -o vers=3,nolock,proto=tcp,noresvport |
| Location |
string |
否 |
需要掛載的檔案系統的儲存位置。取值範圍:
|
PublicCloud |
| VolumeType |
string |
是 |
要掛載的檔案系統類型。取值範圍:
|
nas |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回參數集合。 |
||
| RequestId |
string |
請求 ID。 |
F9B7BEF8-E42E-5090-9880-55FB7872**** |
| Success |
string |
執行命令並擷取結果的過程是否成功。可能值:
|
true |
| ClusterId |
string |
叢集 ID。 |
ehpc-hz-FYUr32**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "F9B7BEF8-E42E-5090-9880-55FB7872****",
"Success": "true",
"ClusterId": "ehpc-hz-FYUr32****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParams | The specified parameter %s is invalid. | 指定的參數 %s 無效。 |
| 404 | VolumeNotFound | The specified volume does not exist. | 指定的儲存不存在,請您檢查該參數是否正確。 |
| 404 | ClusterNotFound | The specified cluster does not exist. | 指定的叢集不存在,請您檢查該參數是否正確。 |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server | 請求失敗,服務暫時不可用 |
| 406 | NasError | NAS API request failed. | NAS介面請求失敗 |
| 406 | EcsError | An error occurred while calling the ECS API operation. | ECS API調用出錯. %s |
| 406 | AliyunError | An Alibaba Cloud product error occurred. | 阿里雲產品錯誤。%s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。