All Products
Search
Document Center

Resource Management:CreateFolder

Last Updated:Jun 10, 2026

Membuat folder.

Deskripsi operasi

A maximum of five levels of folders can be created under the Root folder.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

ParentFolderId

string

No

ID folder induk.

r-b1****

FolderName

string

Yes

Nama folder.

Nama harus terdiri atas 1 hingga 24 karakter dan dapat berisi huruf, digit, garis bawah (_), titik (.), dan tanda hubung (-).

rdFolder

Tag

array<object>

No

Tag yang akan ditambahkan ke folder.

object

No

The tag to add to the folder.

Key

string

No

The tag key.

k1

Value

string

No

The tag value.

v1

Elemen respons

Element

Type

Description

Example

object

The returned result.

Folder

object

The information about the folder.

CreateTime

string

The time when the folder was created.

2019-02-19T09:34:50.757Z

FolderId

string

The ID of the folder.

fd-u8B321****

FolderName

string

The name of the folder.

rdFolder

ParentFolderId

string

The ID of the parent folder.

r-b1****

RequestId

string

The ID of the request.

C2CBCA30-C8DD-423E-B4AD-4FB694C9180C

Contoh

Respons sukses

JSONformat

{
  "Folder": {
    "CreateTime": "2019-02-19T09:34:50.757Z",
    "FolderId": "fd-u8B321****",
    "FolderName": "rdFolder",
    "ParentFolderId": "r-b1****"
  },
  "RequestId": "C2CBCA30-C8DD-423E-B4AD-4FB694C9180C"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

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.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.