GetDataServiceFolder

Updated at:

Retrieves a Data Service folder.

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

TenantId deprecated

integer

No

[Deprecated] The tenant ID. You can log on to the DataWorks console, go to the DataStudio page, click the username in the upper-right corner, and choose Menu > User Information to obtain the tenant ID.

10003

ProjectId

integer

Yes

The ID of the workspace.

You can obtain the ID from the PageResult.ProjectList[].ProjectId parameter in the response of the ListProjects operation.

Before calling the ListProjects operation to obtain the workspace ID, ensure that your account has activated the required DataWorks edition and has the necessary permissions. The sample ID is for format demonstration only.

10002

FolderId

integer

Yes

The ID of the folder.

You can obtain the ID from the FolderPagingResult.Folders[].FolderId parameter in the response of the ListDataServiceFolders operation.

10001

Response elements

Element

Type

Description

Example

object

The response data.

RequestId

string

The ID of the request.

0000-ABCD-EF****

Folder

object

The folder details.

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 format is yyyy-MM-dd'T'HH:mm:ssZ. Example: 2020-09-24T18:37:51+0800. In this example, the time zone offset 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

ProjectId

integer

The ID of the workspace.

10001

FolderName

string

The name of the folder.

test1

CreatedTime

string

The time when the folder was created.

The format is yyyy-MM-dd'T'HH:mm:ssZ. Example: 2020-09-24T18:37:51+0800. In this example, the time zone offset is +0800.

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

TenantId

integer

The tenant ID.

10002

Examples

Success response

JSON format

{
  "RequestId": "0000-ABCD-EF****",
  "Folder": {
    "ParentId": 0,
    "ModifiedTime": "2020-09-24T18:37:51+0800",
    "GroupId": "ds_1234",
    "FolderId": 11,
    "ProjectId": 10001,
    "FolderName": "test1",
    "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.
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.