ListDataServiceFolders

Updated at:

Queries the list of Data Service 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 1. Default value: 1.

1

PageSize

integer

No

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

10

ProjectId

integer

Yes

The ID of the workspace. You can call the ListProjects operation to obtain a valid workspace ID, or view the ID in the workspace settings of the DataWorks console. The example value in the documentation is for format demonstration only.

10001

TenantId

integer

No

The tenant ID. To obtain the tenant ID, log on to the DataWorks console, go to the Data Studio page, click the current username in the upper-right corner, and then choose Menu > User Information.

10002

GroupId

string

No

The ID of the workflow to which the specified folder belongs.

ds_123abc

FolderNameKeyword

string

No

The keyword in the folder name. Substring matching is supported.

Folder name keyword

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID, which uniquely identifies the request.

0000-ABCD-EF****

FolderPagingResult

object

The paginated result of the folder list.

PageNumber

integer

The page number. The value is the same as 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.

100

Folders

array<object>

The list of folders.

object

ParentId

integer

The ID of the parent folder. The ID of the root folder under a workflow is 0, and the ID of a user-created folder is greater than 0.

0

ModifiedTime

string

The time when the folder was modified. The time follows the yyyy-MM-dd'T'HH:mm:ssZ format. Example: 2020-09-24T18:37:51+0800. The time zone offset in the example is +0800.

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

GroupId

string

The ID of the workflow to which the folder belongs.

ds_1234

FolderId

integer

The ID of the folder.

11

FolderName

string

The name of the folder.

test1

ProjectId

integer

The ID of the workspace.

10001

CreatedTime

string

The time when the folder was created. The time follows the yyyy-MM-dd'T'HH:mm:ssZ format. Example: 2020-09-24T18:37:51+0800. The time zone offset in the example is +0800.

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.