建立一個Fileset。
介面說明
-
CPFS 使用說明
僅支援 CPFS 2.2.0 及以上版本建立 Fileset。您可以在控制台檔案系統詳情頁面查看版本資訊。
單個 CPFS 檔案系統最多支援建立 10 個 Fileset。
父目錄必須是已存在的目錄。
Fileset 路徑支援的最大深度為 8 層,根目錄/為 0 層。例如,Fileset 路徑為/test/aaa/ccc/,則表示路徑深度為 3 層。
不支援 Fileset 中嵌套 Fileset。即當父目錄已指定為 Fileset,其子目錄不支援指定為 Fileset。
Fileset 最多支援 100 萬個檔案,如果檔案數量超過此上限,添加新檔案會返回
no space錯誤資訊。
-
CPFS 智算版使用說明
僅支援 CPFS 智算版 2.7.0 及以上版本建立 Fileset。您可以在控制台檔案系統詳情頁面查看版本資訊。
單個 CPFS 檔案系統最多支援建立 500 個 Fileset。
Fileset 路徑必須為新路徑,不能為已存在路徑,Fileset 路徑不支援重新命名,不支援路徑為軟連結。
Fileset 路徑支援的最大深度為 8 層,根目錄/為 0 層。例如,Fileset 路徑為/test/aaa/ccc/,則表示路徑深度為 3 層。
Fileset 路徑為多層目錄時,父目錄必須是已存在的目錄。
不支援在 Fileset 中嵌套 Fileset,即當父目錄已指定為 Fileset,其子目錄不支援指定為 Fileset。一個 Fileset 路徑只支援一個配額。
Fileset 容量配額,最小起步 10 GiB,擴容單位為 1 GiB。
Fileset 最多支援 100 億個檔案或目錄,最小起步 10000,擴容單位為 1。
修改目錄配額時,設定的配額容量或檔案數必須高於已使用容量或檔案數。
配額的統計有 15 分鐘的延遲,當前的實際使用量 15 分鐘之後才會生效。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
nas:CreateFileset |
create |
*Fileset
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| FileSystemId |
string |
是 |
檔案系統 ID。
|
bmcpfs-290w65p03ok64y***** |
| FileSystemPath |
string |
是 |
待建立的 Fileset 的絕對路徑。
|
/test/ |
| DryRun |
boolean |
否 |
是否對此次建立請求執行預檢。 預檢操作會協助您檢查參數有效性、校正庫存等,並不會實際建立執行個體,也不會產生費用。 取值:
|
false |
| DeletionProtection |
boolean |
否 |
執行個體釋放保護屬性,指定是否支援通過控制台或 API( DeleteFileset )釋放執行個體。
說明
該屬性只能限制手動釋放操作,對系統釋放操作不生效。 |
false |
| Description |
string |
否 |
Fileset 的描述資訊。
|
內部事務目錄 |
| ClientToken |
string |
否 |
保證請求等冪性,從您的用戶端產生一個參數值,確保不同的請求間該參數值唯一。 ClientToken 只支援 ASCII 字元,且不能超過 64 個字元。更多資訊,請參見如何保證等冪性。 說明
若使用者未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 可能不一樣。 |
123e4567-e89b-12d3-a456-4266554***** |
| Quota |
object |
否 |
配額資訊。 說明
僅 CPFS 智算版 2.7.0 及以上版本支援此參數。 |
|
| FileCountLimit |
integer |
否 |
配額檔案數量限制。取值範圍:
|
10000 |
| SizeLimit |
integer |
否 |
配額總容量限制。單位:Byte。 取值範圍:
|
10737418240 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
98696EF0-1607-4E9D-B01D-F20930B6**** |
| FsetId |
string |
Fileset ID。 |
fset-1902718ea0ae**** |
樣本
正常返回樣本
JSON格式
{
"RequestId": "98696EF0-1607-4E9D-B01D-F20930B6****",
"FsetId": "fset-1902718ea0ae****"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | 參數非法。 |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | 未指定FileSystemId參數。 |
| 400 | MissingFileSystemPath | FileSystemPath is mandatory for this action. | 缺少FileSystemPath參數。 |
| 400 | InvalidFilesystemType.NotSupport | This Api does not support this fileSystem type. | 當前介面不支援該類型檔案系統。 |
| 400 | InvalidFilesystemVersion.NotSupport | This Api does not support this fileSystem version. | 當前介面不支援該版本檔案系統。 |
| 400 | InvalidRequest | The request is invalid. | 請求無效。 |
| 400 | Quota.Invalid.Limit | Quota limit is invalid. | 無效的配額。 |
| 400 | Resource.Exceed.Limit | Resource exceed limit. | 資源數量超過限制。 |
| 400 | Resource.Check.Fail | Resource check failed. | 資源檢查失敗。 |
| 400 | Fileset.Path.Duplicate | Fileset path is duplicate. | Fileset路徑已存在。 |
| 400 | Fileset.Path.Nested | Fileset path is nested. | Fileset路徑存在嵌套。 |
| 400 | Fileset.Path.NotExist | Fileset.Path.Not.Exist. | Fileset父目錄路徑不存在。 |
| 400 | Fileset.Path.Exist | Fileset already exist. | Fileset路徑已經存在。 |
| 403 | OperationDenied.AlreadyExists | The operation is denied due to IdirName already exists in parent path. | 建立的目錄名在父目錄中已存在。 |
| 403 | OperationDenied.TooManyFilesets | The operation is denied due to too many fileset in filesystem. | 檔案系統的Fileset目錄數量超過閾值。 |
| 403 | OperationDenied.TooManyDepths | The operation is denied due to Fileset path too deep. | Fileset目錄路徑深度超過閾值。 |
| 403 | OperationDenied.NestedDir | The operation is denied due to nested directory. | 目錄存在嵌套導致無法建立自動更新配置。 |
| 403 | OperationDenied.DependencyViolation | The operation is denied due to dependancy violation. | 進行該操作的條件不滿足。 |
| 403 | OperationDenied.FilesetNotSupported | The operation is not supported. | 該檔案系統不支援Fileset。 |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | 指定的檔案系統不存在。 |
| 404 | InvalidFileSystemPath.ParentNotFound | The specified parent path does not exist. | 指定的父目錄不存在。 |
| 404 | InvalidFileSystemPath.NotDirectory | The specified idir parent path is not directory. | 指定的父目錄不是目錄。 |
| 404 | InvalidFileSystemPath.InvalidCharacters | The specified fileset path contains invalid characters. | 指定的Fileset路徑包含非法字元。 |
| 404 | InvalidFilesetPath.InvalidParameter | Fileset path is invalid. | 指定的Fileset路徑無效。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。