Mengkueri informasi tentang tugas AI berdasarkan ID tugas.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:GetAITask |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
No |
ID Tugas AI. |
t-asasas***** |
| OutputOption |
string |
No |
Apakah akan mengembalikan parameter TaskOutput. Parameter TaskOutput menentukan output dari Tugas AI. Nilai valid:
Catatan
Nilai TaskOutput mungkin terlalu panjang. Jika Anda tidak memerlukan output Tugas, atur OutputOption ke Disabled untuk meningkatkan kecepatan tanggapan Operasi API. |
Disabled |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TaskId |
string |
The ID of the AI task. |
t-asasas***** |
| RequestId |
string |
The request ID. |
14A07460-EBE7-47CA-9757-12CC4761D47A |
| TaskType |
string |
The type of the AI task.
Valid values:
|
GenerateTemplate |
| Status |
string |
The state of the AI task.
Valid values:
|
FAILURE |
| StatusReason |
string |
The reason why the AI task is in the state. |
Handler execution unexpected failure |
| TaskOutput |
object |
The outputs of the AI task. The outputs include the template. |
"Result": { "ROSTemplateFormatVersion": "2015-09-01", } |
| Code |
string |
The error code. |
Forbidden |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The error message. |
You are not authorized to complete this action. |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"TaskId": "t-asasas*****\n",
"RequestId": "14A07460-EBE7-47CA-9757-12CC4761D47A",
"TaskType": "GenerateTemplate",
"Status": "FAILURE",
"StatusReason": "Handler execution unexpected failure",
"TaskOutput": {
"test": "test",
"test2": 1
},
"Code": "Forbidden",
"HttpStatusCode": 200,
"Message": "You are not authorized to complete this action.",
"Success": "true"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.