フォルダを作成します。
操作説明
Root フォルダ配下には、最大 5 階層のフォルダを作成できます。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| 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 |
例
成功レスポンス
JSONJSON
{
"Folder": {
"CreateTime": "2019-02-19T09:34:50.757Z",
"FolderId": "fd-u8B321****",
"FolderName": "rdFolder",
"ParentFolderId": "r-b1****"
},
"RequestId": "C2CBCA30-C8DD-423E-B4AD-4FB694C9180C"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。