Creates a new directory in a specified PolarFS instance.
Operation description
Request description
Path: The absolute path of the folder to create.
Recursive: Specifies whether to use recursion to create parent folders. Default value:
false.This operation supports creating single-level or multi-level folder structures in a specified PolarFS instance.
If the
RecursiveSettings aretrue, the automatic creation of all non-existent parent folders is enabled.Ensure that you have sufficient permissions when creating a folder.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreatePolarFsObject |
none |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolarFsInstanceId |
string |
Yes |
The PolarFS instance ID. |
pfs-2ze0i7***** |
| Path |
string |
Yes |
The destination path. |
/test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
C890995A-CF06-4F4D-8DB8-DD26C2****** |
| PolarFsInstanceId |
string |
The PolarFS instance ID. |
pfs-test**** |
| Path |
string |
The destination path. |
/test |
Examples
Success response
JSON format
{
"RequestId": "C890995A-CF06-4F4D-8DB8-DD26C2******",
"PolarFsInstanceId": "pfs-test****",
"Path": "/test"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.