All Products
Search
Document Center

PolarDB:CreatePolarFsObject

Last Updated:Apr 27, 2026

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 Recursive to true automatically creates all non-existent parent directories.

  • Ensure that you have sufficient permissions to create the directory.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.