Queries the details of an inspection task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:DescribeNisInspectionTask |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InspectionTaskId |
string |
Yes |
The ID of the inspection task. |
ni-8svmpe0yso2bhzr7fh79 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RpcResponse |
||
| RequestId |
string |
The request ID. |
A7F0D6EC-E19E-58AC-AC9F-08036763960F |
| InspectionTaskId |
string |
The ID of the inspection task. |
ni-8svmpe0yso2bhzr7fh79 |
| InspectionName |
string |
The name of the inspection task. |
Default |
| Status |
string |
The running status of the task. Valid values:
|
Active |
| InspectionProject |
string |
The inspection plan category used by the inspection task. Valid values:
|
basic |
| InspectionTriggerTime |
string |
The trigger time of the inspection task, in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2025-04-15T03:20:04Z |
| InspectionInterval |
string |
The inspection execution cycle. Unit: days. |
1 |
| LastUpdateReportId |
string |
The ID of the latest report. |
nir-7c3dd178738a429abe6d |
| CreateTime |
string |
The creation time, in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2025-04-15T03:20:03Z |
| LastUpdateTime |
string |
The most recent update time, in the yyyy-MM-ddTHH:mm:ssZ format (UTC). |
2026-08-18T04:06:42Z |
| CheckResourceList |
array<object> |
The inspection resource configurations. |
|
|
object |
|||
| ResourceType |
string |
The resource type. |
EIP |
| CheckScope |
string |
The inspection rule. Valid values:
Valid values:
|
CheckAll |
Examples
Success response
JSON format
{
"RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
"InspectionTaskId": "ni-8svmpe0yso2bhzr7fh79",
"InspectionName": "Default",
"Status": "Active",
"InspectionProject": "basic",
"InspectionTriggerTime": "2025-04-15T03:20:04Z",
"InspectionInterval": "1",
"LastUpdateReportId": "nir-7c3dd178738a429abe6d",
"CreateTime": "2025-04-15T03:20:03Z",
"LastUpdateTime": "2026-08-18T04:06:42Z",
"CheckResourceList": [
{
"ResourceType": "EIP",
"CheckScope": "CheckAll"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ResourceNotFound.InspectionTaskId | The specified InspectionTaskId(%s) is not found. | The specified InspectionTaskId (%s) does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.