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. Creating Active Running Inactive |
Active |
| InspectionProject |
string |
The type of inspection plan for the task. Valid values: basic and customized. |
basic |
| InspectionTriggerTime |
string |
The time when the inspection task was triggered. |
2024-07-01 15:15:57 |
| InspectionInterval |
string |
The inspection interval. The unit is day. |
1 |
| LastUpdateReportId |
string |
The ID of the latest report. |
nir-7c3dd178738a429abe6d |
| CreateTime |
string |
The time when the task was created. |
2024-07-01 10:00:57 |
| LastUpdateTime |
string |
The time when the task was last updated. |
2024-07-01 10:00:59 |
| CheckResourceList |
array<object> |
The configuration of the inspected resources. |
|
|
object |
|||
| ResourceType |
string |
The resource type. |
EIP |
| CheckScope |
string |
The inspection rule. Valid values:
|
CheckAll |
Examples
Success response
JSON format
{
"RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
"InspectionTaskId": "ni-8svmpe0yso2bhzr7fh79",
"InspectionName": "Default",
"Status": "Active",
"InspectionProject": "basic",
"InspectionTriggerTime": "2024-07-01 15:15:57",
"InspectionInterval": "1",
"LastUpdateReportId": "nir-7c3dd178738a429abe6d",
"CreateTime": "2024-07-01 10:00:57\n",
"LastUpdateTime": "2024-07-01 10:00:59",
"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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.