All Products
Search
Document Center

DataWorks:ListDataServiceFolders

Last Updated:Mar 30, 2026

Retrieves a list of folders.

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 parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

The page number. Pages start from page 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10. Maximum value: 100.

10

ProjectId

integer

Yes

The ID of the workspace.

10001

TenantId

integer

No

The tenant ID. To obtain the tenant ID, perform the following steps: Log on to the DataWorks console. Find your workspace and go to the DataStudio page. On the page that appears, click the username for the logon in the upper-right corner and click User Info in the Menu section.

10002

GroupId

string

No

The ID of the business process to which the folders belong.

ds_123abc

FolderNameKeyword

string

No

The keyword in folder names. The keyword is used to search for folders whose names contain this keyword.

Folder name keyword

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

0000-ABCD-EF****

FolderPagingResult

object

The paging result for the folders.

PageNumber

integer

The page number. The value of this parameter is the same as that of the PageNumber parameter in the request.

1

PageSize

integer

The number of entries per page. Default value: 10. Maximum value: 100.

10

TotalCount

integer

The total number of entries returned.

100

Folders

array<object>

The folders.

object

ParentId

integer

The ID of the parent folder. The ID of the root folder in a business process is 0, and the ID of a folder created by a user in a business process is greater than 0.

0

ModifiedTime

string

The time when the folder was last modified.

2020-09-24T18:37:51+0800

GroupId

string

The ID of the business process to which the folder belongs.

ds_1234

FolderId

integer

The folder ID.

11

FolderName

string

The name of the folder.

test1

ProjectId

integer

The workspace ID.

10001

CreatedTime

string

The time when the folder was created.

2020-09-24T18:37:51+0800

TenantId

integer

The tenant ID.

10002

Examples

Success response

JSON format

{
  "RequestId": "0000-ABCD-EF****",
  "FolderPagingResult": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "Folders": [
      {
        "ParentId": 0,
        "ModifiedTime": "2020-09-24T18:37:51+0800",
        "GroupId": "ds_1234",
        "FolderId": 11,
        "FolderName": "test1",
        "ProjectId": 10001,
        "CreatedTime": "2020-09-24T18:37:51+0800",
        "TenantId": 10002
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. No permission, please authorize
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.