All Products
Search
Document Center

DataWorks:ListDataServiceApiTest

Last Updated:Nov 21, 2024

Queries the test records of a DataService Studio API. This API operation allows you to query only the test records that are generated within the previous month.

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
ApiIdlongYes

The ID of the DataService Studio API on which tests are performed.

12345
PageSizeintegerNo

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

10

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

ESDAFWEA
Dataarray<object>

The list of test records.

Dataobject

The test record.

TestIdlong

The ID of the test.

123
ApiIdlong

The ID of the DataService Studio API on which the test is performed.

2343
ParamMapstring

The request parameters configured for the test.

{"name":"test"}
RetCodelong

The status code returned for the test. If the test is not complete, this parameter is not returned.

0
RetResultstring

The result returned for the test.

{"id":2}
CostTimeinteger

The time that is consumed to complete the test.

10
Statusstring

The status of the test. Valid values: RUNNING and FINISHED.

FINISHED
CreateTimelong

The time when the test was initiated.

1651824913000

Examples

Sample success responses

JSONformat

{
  "RequestId": "ESDAFWEA",
  "Data": [
    {
      "TestId": 123,
      "ApiId": 2343,
      "ParamMap": "{\"name\":\"test\"}",
      "RetCode": 0,
      "RetResult": "{\"id\":2}",
      "CostTime": 10,
      "Status": "FINISHED",
      "CreateTime": 1651824913000
    }
  ]
}

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
2022-05-30Add OperationView Change Details