調用CreateFolder建立資源夾。
介面說明
最多支援建立 5 級資源夾。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ParentFolderId |
string |
否 |
父資源夾 ID。 |
r-b1**** |
| FolderName |
string |
是 |
資源夾名稱。 長度為 1~24 個字元或漢字,可包含漢字、英文字母、數字、底線(_)、半形句號(.)和短劃線(-)。 |
rdFolder |
| Tag |
array<object> |
否 |
資源夾的標籤。 |
|
|
object |
否 |
資源夾的標籤。 |
||
| Key |
string |
否 |
標籤鍵。 |
k1 |
| Value |
string |
否 |
標籤值。 |
v1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| Folder |
object |
資源夾資訊。 |
|
| CreateTime |
string |
資源夾建立時間。 |
2019-02-19T09:34:50.757Z |
| FolderId |
string |
資源夾 ID。 |
fd-u8B321**** |
| FolderName |
string |
資源夾名稱。 |
rdFolder |
| ParentFolderId |
string |
父資源夾 ID。 |
r-b1**** |
| RequestId |
string |
請求 ID。 |
C2CBCA30-C8DD-423E-B4AD-4FB694C9180C |
樣本
正常返回樣本
JSON格式
{
"Folder": {
"CreateTime": "2019-02-19T09:34:50.757Z",
"FolderId": "fd-u8B321****",
"FolderName": "rdFolder",
"ParentFolderId": "r-b1****"
},
"RequestId": "C2CBCA30-C8DD-423E-B4AD-4FB694C9180C"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.ParentFolderId | The ParentFolderId is invalid. | |
| 400 | MissingParameter.Folder.Name | You must specify the resource folder name. | |
| 400 | InvalidParameter.Folder.Name | The Name of folder is invalid. | |
| 400 | InvalidParameter.Folder.Name.Length | The Name of folder exceeds the length limit. | |
| 400 | InvalidParameter.Folder.Name.AlreadyUsed | The name already exists under the same parent. Please change to another name. | |
| 404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | |
| 404 | EntityNotExists.Folder | The resource directory folder does not exist. | |
| 409 | LimitExceeded.Folder.Depth | The folder depth exceeds the limit of 5. | |
| 409 | QuotaExceeded.Folder.Count | The number of folders exceeds the quota. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。