Memperbarui task inspeksi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:UpdateNisInspectionTask |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InspectionTaskId |
string |
Yes |
ID dari task inspeksi. |
ni-8svmpe0yso2bhzr7fh79 |
| Status |
string |
No |
Status running dari task tersebut. |
Active |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
RpcResponse |
||
| RequestId |
string |
ID permintaan. |
A7F0D6EC-E19E-58AC-AC9F-08036763960F |
| Data |
boolean |
Hasil pembaruan. |
True |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
"Data": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.InspectionTaskIsRunning | The specified task InspectionTaskId(%s) is in progress and cannot be closed. | |
| 400 | IncorrectStatus.InspectionTaskNotInactive | The specified task InspectionTaskId(%s) is not closed and cannot be opened. | |
| 400 | IllegalParam.Status | The specified parameter Status(%s) is invalid, can only be Active or InActive. | |
| 404 | ResourceNotFound.InspectionTaskId | The specified InspectionTaskId(%s) is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.