Queries topics.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListTableTheme

The operation that you want to perform.

ProjectId Long Yes 123

The ID of the DataWorks workspace.

RegionId String Yes cn-shanghai

The ID of the region where the event occurred.

ParentId Long No 121

Parent class ID.

PageNum Integer No 1

The number of pages that are returned.

PageSize Integer No 10

The number of entries to return on each page. Default value: 10. Maximum value: 100.

Response parameters

Parameter Type Example Description
Data Struct

The level of the data.

ThemeList Array of ThemeList

The list of levels.

CreateTimeStamp Long 123432343243

The time when the hierarchy was created.

Creator String 123455

The person who creates the hierarchy.

Level Integer 1

1 (level 1) and 2 (Level 2).

Name String Layer

The name of the hierarchy.

ParentId Long 122

The ID of the parent node.

ProjectId Long 123

The ID of the DataWorks workspace.

ThemeId Long 123

The ID of the topic.

TotalCount Long 10

The total number of content.

ErrorCode String 0

The error code.

ErrorMessage String success

The error message.

HttpStatusCode Integer 200

The HTTP status code.

RequestId String abcde

The ID of the request.

Success Boolean true

Indicates whether the query is successful for topics.

Examples

Sample requests


     http(s)://[Endpoint]/? Action=ListTableTheme &ProjectId=123 &RegionId=cn-shanghai &<common request parameters> 
   

Sample success responses

XML format


     <RequestId> abcde </RequestId> <HttpStatusCode> 200 </HttpStatusCode> <Data> <ThemeList> <ParentId> 122 </ParentId> <ThemeId> 123 </ThemeId> <ProjectId> 123 </ProjectId> <Level> 1 </Level> <Creator> 123455 </Creator> <CreateTimeStamp> 123432343243 </CreateTimeStamp> <Name> Level names </Name> </ThemeList> <TotalCount> 10 </TotalCount> </Data> <ErrorCode> 0 </ErrorCode> <ErrorMessage> success </ErrorMessage> <Success> true </Success> 
   

JSON Hint


     {"RequestId": "abcde", "HttpStatusCode": 200, "Data": { "ThemeList": { "ParentId": 122, "ThemeId": 123, "ProjectId": 123, "Level": 1, "Creator": 123412343234,3name ": " CreateTimeStamp "12343234,3name": "" Level name " }, " TotalCount": 10 }, "ErrorCode": 0, "ErrorMessage": "success", "Success": true} 
   

Error codes

HttpCode Error code Error message Description
403 Forbidden.Access Access is forbidden. Activate DataWorks first. Your access is restricted, possibly because you have not activated DataWorks.
500 InternalError.System An internal system error occurred. Try again later. An internal system error occurred. Please try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later. An internal system error occurred. Please try again later.
403 ResourceNotAuthorized.Api You are not authorized to access the resources. You cannot access resources without authorization.
429 Throttling.Api The request for this resource has exceeded your available limit. The request for the resource exceeds your available upper limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit. The request for the resource has exceeded your daily availability limit.
429 Throttling.System The DataWorks system is busy. Try again later. DataWorks the system is busy, please try again later.
429 Throttling.User Your request is too frequent. Try again later. Your request is too frequent, please try to slow down the request speed.

Go to the Error CenterFor more information, see error codes.