Queries the test result of a DataService Studio API.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TestId |
integer |
Yes |
The test ID. The TestDataServiceApi operation runs asynchronously and returns the test ID after the API is called. You can also call ListDataServiceApiTest to obtain the latest test ID. |
123434 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
adssdsewe |
| Data |
object |
The returned data object. |
|
| ApiId |
integer |
The ID of the tested API. |
12343 |
| ParamMap |
string |
The request parameters used in the test. |
{"name":"test"} |
| RetCode |
integer |
The return code of the API test. If the test is not complete, this value is empty. |
0 |
| RetResult |
string |
The response data. |
{"id":2} |
| DebugInfo |
string |
The debug information. |
[INFO] [16:15:13.240] resource group is 498774069027041[INFO] |
| CostTime |
string |
The elapsed time of the test. |
10 |
| NodesDebugInfo |
string |
The debug information of nodes. |
[INFO] [16:15:13.240] resource group is 498774069027041[INFO] |
| Status |
string |
The status of the test task. Valid values: RUNNING and 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.