All Products
Search
Document Center

DataWorks:ListDataServiceFolders

Last Updated:Oct 17, 2024

Queries folders.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerYes

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

1
PageSizeintegerYes

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

10
ProjectIdlongYes

The ID of the workspace.

10001
TenantIdlongNo

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
GroupIdstringNo

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

ds_123abc
FolderNameKeywordstringNo

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

Keyword in folder names

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

0000-ABCD-EF****
FolderPagingResultobject

The paging result for the folders.

PageNumberinteger

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

1
PageSizeinteger

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

10
TotalCountinteger

The total number of entries returned.

100
Foldersarray<object>

The folders.

Folderobject
ParentIdlong

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
ModifiedTimestring

The time when the folder was last modified.

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

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

ds_1234
FolderIdlong

The folder ID.

11
FolderNamestring

The name of the folder.

test1
ProjectIdlong

The workspace ID.

10001
CreatedTimestring

The time when the folder was created.

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

The tenant ID.

10002

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403Forbidden.AccessAccess is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.No permission, please authorize
429Throttling.ApiThe request for this resource has exceeded your available limit.-
429Throttling.SystemThe DataWorks system is busy. Try again later.-
429Throttling.UserYour request is too frequent. Try again later.-
500InternalError.SystemAn internal system error occurred. Try again later.-
500InternalError.UserId.MissingAn internal system error occurred. Try again later.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-09The Error code has changedView Change Details