Creates a new directory in a specified PolarFS instance.
Operation description
Description
Path: The absolute path of the directory to create.
Recursive: Specifies whether to recursively create parent directories. The default value is
false.This operation creates a directory structure with one or more levels in the specified PolarFS instance.
Setting
Recursivetotrueautomatically creates all non-existent parent directories.Ensure that you have sufficient permissions to create the directory.
Try it now
Test
RAM authorization
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 absolute path of the directory to create. |
/test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request id. |
C890995A-CF06-4F4D-8DB8-DD26C2****** |
| PolarFsInstanceId |
string |
The PolarFS instance id. |
pfs-test**** |
| Path |
string |
The absolute path of the created directory. |
/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.