ListDataServiceApiTest

更新时间:
复制 MD 格式

Queries test records of a DataService Studio API. Only test records generated within the previous month can be queried.

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

ApiId

integer

Yes

The ID of the DataService Studio API to query test records for.

12345

PageSize

integer

No

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

10

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The request ID.

ESDAFWEA

Data

array<object>

The test records.

object

A test record.

TestId

integer

The test ID.

123

ApiId

integer

The ID of the DataService Studio API.

2343

ParamMap

string

The request parameters used in the test.

{"name":"test"}

RetCode

integer

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

0

RetResult

string

The test result.

{"id":2}

CostTime

integer

The time consumed by the test.

10

Status

string

The test status. Valid values: RUNNING and FINISHED.

FINISHED

CreateTime

integer

The time when the test was initiated.

1651824913000

Examples

Success response

JSON format

{
  "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 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.