All Products
Search
Document Center

DataWorks:GetDataServiceApiTest

Last Updated:Feb 19, 2025

Queries the test results of an API in DataService Studio.

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
TestIdlongYes

The Id of the test. TestDataServiceApi is executed asynchronously after the API is called and the test Id is returned. You can also use ListDataServiceApiTest to obtain the latest test Id.

123434

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

adssdsewe
Dataobject

Return object

ApiIdlong

Test API Id

12343
ParamMapstring

Test API request parameters

{"name":"test"}
RetCodelong

The test API returns the code. If it is not completed, the data is empty.

0
RetResultstring

Return data

{"id":2}
DebugInfostring

Debug information

[<span style=\"color: #92D581;\">INFO</span>] [16:15:13.240] resource group is 498774069027041[<span style=\"color: #92D581;\">INFO</span>]
CostTimestring

Time consuming

10
NodesDebugInfostring

Node Debug information

[<span style=\"color: #92D581;\">INFO</span>] [16:15:13.240] resource group is 498774069027041[<span style=\"color: #92D581;\">INFO</span>]
Statusstring

Whether the task has been completed, including: RUNNING,FINISHED

FINISHED

Examples

Sample success responses

JSONformat

{
  "RequestId": "adssdsewe",
  "Data": {
    "ApiId": 12343,
    "ParamMap": "{\"name\":\"test\"}",
    "RetCode": 0,
    "RetResult": "{\"id\":2}",
    "DebugInfo": "[<span style=\\\"color: #92D581;\\\">INFO</span>] [16:15:13.240] resource group is 498774069027041[<span style=\\\"color: #92D581;\\\">INFO</span>]",
    "CostTime": "10",
    "NodesDebugInfo": "[<span style=\\\"color: #92D581;\\\">INFO</span>] [16:15:13.240] resource group is 498774069027041[<span style=\\\"color: #92D581;\\\">INFO</span>]",
    "Status": "FINISHED"
  }
}

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