Lists the network inspection tasks.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
nis:ListNisInspectionTasks | list | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
InspectionTaskId | string | No | The ID of the network inspection task. | ni-8svm******hzr7fh79 |
InspectionName | string | No | The name of the network inspection task. | nis巡检 |
InspectionProject | string | No | The type of inspection solution that the network inspection task uses. Valid values: basic and customized. | basic |
Status | string | No | The running status of the task. Valid values:
| Active |
NextToken | string | No | The token that is used to retrieve the next page of results. Set this parameter to the NextToken value returned from a previous call. | hKrS+MVXkuOgztXnvdml1/R9jhHkiH8eW3CfaOYU0CEL7yiT0zae6J8v1zYNg+d1 |
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 20. | 20 |
Response parameters
Parameter | Type | Description | Example |
object | RpcResponse | ||
RequestId | string | The request ID. | A7F0D6EC-E19E-58AC-AC9F-08036763960F |
| InspectionTaskList | array<object> | The list of network inspection tasks. | |
object | |||
InspectionTaskId | string | The ID of the network inspection task. | ni-8svm******hzr7fh79 |
InspectionName | string | The name of the network inspection task. | nis巡检 |
Status | string | The running status of the task. Valid values: Creating: The task is being created.
| Active |
InspectionProject | string | The type of inspection solution that the network inspection task uses. Valid values: basic and customized. | basic |
CreateTime | string | The time when the task was created. | 2024-06-18 00:14:46 |
LastUpdateReportId | string | The ID of the latest report. | nir-b4c4c9******8a25e |
NextToken | string | The token to retrieve the next page of results. If the value of this parameter is not empty, it indicates that there are more results to retrieve. If this parameter is empty, all results have been returned. | hKrS+MVXkuOgztXnvdml194Cz/lMNdmr+DEh0th6dVlNEo/F148UPCh2itDku7Qj |
MaxResults | integer | The number of entries per page. Valid values: 1 to 100. Default value: 20. | 20 |
TotalCount | integer | The total number of entries returned. | 5 |
Examples
Success response
JSON format
{
"RequestId": "A7F0D6EC-E19E-58AC-AC9F-08036763960F",
"InspectionTaskList": [
{
"InspectionTaskId": "ni-8svm******hzr7fh79",
"InspectionName": "nis巡检",
"Status": "Active",
"InspectionProject": "basic",
"CreateTime": "2024-06-18 00:14:46",
"LastUpdateReportId": "nir-b4c4c9******8a25e"
}
],
"NextToken": "hKrS+MVXkuOgztXnvdml194Cz/lMNdmr+DEh0th6dVlNEo/F148UPCh2itDku7Qj",
"MaxResults": 20,
"TotalCount": 5
}Error codes
HTTP status code | Error code | Error message | Description |
400 | IllegalParam.NextToken | The specified argument NextToken(%s) is illegal. | The specified argument NextToken(%s) is illegal. |
400 | IllegalParam.Status | The specified Status(%s) parameter is illegal. | The specified Status(%s) parameter is illegal. |
400 | IllegalParam.InspectionProject | The specified argument InspectionProject(%s) is illegal. | The specified parameter InspectionProject is illegal. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.