GetDataServiceApiTest
Queries the test results of an API in Data Service.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TestId |
integer |
Yes |
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 elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
adssd**** |
| Data |
object |
Return object |
|
| ApiId |
integer |
Test API Id |
12343 |
| ParamMap |
string |
Test API request parameters |
{"name":"test"} |
| RetCode |
integer |
The response code returned by the tested API. This field is empty if the test is not complete. |
0 |
| RetResult |
string |
Return data |
{"id":2} |
| DebugInfo |
string |
Debug information |
[INFO] [16:15:13.240] resource group is 498774069027041[INFO] |
| CostTime |
string |
The elapsed time. |
10 |
| NodesDebugInfo |
string |
Node Debug information |
[INFO] [16:15:13.240] resource group is 498774069027041[INFO] |
| Status |
string |
Whether the task has been completed, including: RUNNING,FINISHED |
FINISHED |
Examples
Success response
JSON format
{
"RequestId": "adssd****",
"Data": {
"ApiId": 12343,
"ParamMap": "{\"name\":\"test\"}",
"RetCode": 0,
"RetResult": "{\"id\":2}",
"DebugInfo": "[INFO] [16:15:13.240] resource group is 498774069027041[INFO]",
"CostTime": "10",
"NodesDebugInfo": "[INFO] [16:15:13.240] resource group is 498774069027041[INFO]",
"Status": "FINISHED"
}
}
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.