Mengkueri hasil pengujian API di Studio Layanan Data.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TestId |
integer |
Yes |
ID pengujian. TestDataServiceApi dijalankan secara asinkron setelah API dipanggil, dan ID pengujian dikembalikan. Anda juga dapat menggunakan ListDataServiceApiTest untuk mendapatkan ID pengujian terbaru. |
123434 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
adssdsewe |
| Data |
object |
Return object |
|
| ApiId |
integer |
Test API Id |
12343 |
| ParamMap |
string |
Test API request parameters |
{"name":"test"} |
| RetCode |
integer |
The test API returns the code. If it is not completed, the data is empty. |
0 |
| RetResult |
string |
Return data |
{"id":2} |
| DebugInfo |
string |
Debug information |
[INFO] [16:15:13.240] resource group is 498774069027041[INFO] |
| CostTime |
string |
Time consuming |
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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.