TestDataServiceApi
Tests an API asynchronously. You must call the GetDataServiceApiTest operation to retrieve the test results.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApiId |
integer |
Yes |
The ID of the data service API. You can obtain the ID by calling the ListDataServiceApis operation. This operation requires the ProjectId parameter, which you can obtain by calling the ListProjects operation. |
12343 |
| QueryParam |
array<object> |
No |
The request parameters in the query string. |
|
|
object |
No |
The request object. |
||
| ParamKey |
string |
No |
The name of the parameter. |
name |
| ParamValue |
string |
No |
The value of the parameter. |
test |
| BodyParams |
array<object> |
No |
The parameter information in the request body. |
|
|
object |
No |
The request object. |
||
| ParamKey |
string |
No |
The name of the parameter. |
name |
| ParamValue |
string |
No |
The value of the parameter. |
test |
| PathParams |
array<object> |
No |
The request parameters in the path. |
|
|
object |
No |
The request object. |
||
| ParamKey |
string |
No |
The name of the parameter. |
path1 |
| ParamValue |
string |
No |
The value of the parameter. |
api |
| HeadParams |
array<object> |
No |
The request parameters in the header. |
|
|
object |
No |
The request object. |
||
| ParamKey |
string |
No |
The name of the parameter. |
requestId |
| ParamValue |
string |
No |
The value of the parameter. |
abcd |
| BodyContent |
string |
No |
The data in the request body. |
{"name":"test"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The ID of the request. |
abdsfewe |
| Data |
object |
The response object. |
|
| TestId |
string |
The ID of the test. |
232432 |
Examples
Success response
JSON format
{
"RequestId": "abdsfewe",
"Data": {
"TestId": "232432"
}
}
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. | |
| 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.