Queries the details of inspection report check items.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:DescribeNisInspectionReportCheckItems |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InspectionReportId |
string |
Yes |
The inspection report ID. |
nir-ffd1af****196d0 |
| ResourceType |
array |
No |
The resource type. |
|
|
string |
No |
The type of the associated resource. Valid values:
|
NAT |
|
| CategoryCode |
string |
No |
The category of the check item. |
stability |
| RiskLevel |
array |
No |
The collection of risk levels. |
|
|
string |
No |
The risk level. If not specified, all risk levels are included. Valid values:
Valid values:
|
HighRisk |
|
| NextToken |
string |
No |
The query token. Set this parameter to the NextToken value returned in the previous API call. |
hKrS+MVXkuOgztXnvdml16/uO3mvCyHxSjzdhx9VRUC+8umDTIV2Wg9TTOUrR7ve |
| MaxResults |
integer |
No |
The maximum number of entries per page for a paged query. Maximum value: 100. Default value: 20. |
20 |
| Language |
string |
No |
The language. Valid values: zh-CN, en-US. Valid values:
|
zh-CN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RpcResponse<NextTokenResult |
||
| RequestId |
string |
The request ID. |
D5E98683-355B-5867-8D3D-A24755F6895B |
| CheckItemList |
array<object> |
The list of inspection check items. |
|
|
array<object> |
|||
| ResourceType |
string |
The resource type associated with the inspection check item. |
NAT |
| CategoryCode |
string |
The category of the check item. |
stability |
| CheckItemCode |
string |
The code of the inspection check item. |
item_nat_water_level_check |
| Description |
string |
The description of the inspection check item. |
None |
| CheckResultList |
array<object> |
The list of risk level count results for the inspection. |
|
|
object |
|||
| RiskLevel |
string |
The risk level. Valid values:
|
LowRisk |
| Count |
integer |
The number of risks at the corresponding level in the inspection report. |
0 |
| RecommendationList |
array<object> |
The list of inspection anomaly results. |
|
|
object |
|||
| RiskLevel |
string |
The risk level. Valid values:
|
LowRisk |
| RecommendationCode |
string |
The inspection anomaly item. |
nat_snat_cross_az_warn |
| Abnormality |
string |
The description of the anomaly. |
Multiple cross-zone resources share a single NAT gateway |
| Reason |
string |
The cause of the anomaly. |
Multiple cross-zone resources share a single NAT gateway |
| Suggestion |
string |
The optimization suggestions. |
Deploy NAT gateways in each zone where your resources reside and configure SNAT/DNAT rules to ensure that resources use the NAT gateway in the same zone. This ensures that if a zone fails, resources in other zones can still maintain network communication |
| Metadata |
string |
The metadata of the resource associated with the anomaly item. |
{"Columns":[{"ColumnType":"id","ColumnTitle":"Resource ID","ColumnValue":"ResourceId"},{"ColumnType":"az","ColumnTitle":"NAT Deployment AZ","ColumnValue":"NatAZ"},{"ColumnType":"array.az","ColumnTitle":"Resource Deployment AZ","ColumnValue":"ForwardsAZs"},{"ColumnType":"region","ColumnTitle":"Region","ColumnValue":"RegionNo"}]} |
| ReasonCode |
string |
||
| SuggestionCode |
string |
||
| CheckItemName |
string |
The name of the check item. |
NAT High Availability Deployment Check |
| DescriptionCode |
string |
The description code of the check item. |
item_ep_high_availability_check_description |
| NextToken |
string |
Indicates whether a next query token exists. If NextToken is empty, no more results exist. If NextToken is returned, the value indicates the token for the next query. |
hKrS+MVXkuOgztXnvdml194Cz/lMNdmr+DEh0th6dVlNEo/F148UPCh2itDku7Qj |
| TotalCount |
integer |
The total number of entries returned. |
11 |
| MaxResults |
integer |
The page size. Valid values: 1 to 100. Default value: 20. |
20 |
| InspectionReportId |
string |
The inspection report ID. |
nir-ffd1af****196d0 |
Examples
Success response
JSON format
{
"RequestId": "D5E98683-355B-5867-8D3D-A24755F6895B",
"CheckItemList": [
{
"ResourceType": "NAT",
"CategoryCode": "stability",
"CheckItemCode": "item_nat_water_level_check",
"Description": "无",
"CheckResultList": [
{
"RiskLevel": "LowRisk",
"Count": 0
}
],
"RecommendationList": [
{
"RiskLevel": "LowRisk",
"RecommendationCode": "nat_snat_cross_az_warn",
"Abnormality": "Multiple cross-zone resources share a single NAT gateway.",
"Reason": "Multiple cross-zone resources share a single NAT gateway.",
"Suggestion": "Deploy NAT gateways in all zones where resources reside.",
"Metadata": "{\"Columns\":[{\"ColumnType\":\"id\",\"ColumnTitle\":\"Resource ID\",\"ColumnValue\":\"ResourceId\"},{\"ColumnType\":\"az\",\"ColumnTitle\":\"NAT Deployment Zone\",\"ColumnValue\":\"NatAZ\"},{\"ColumnType\":\"array.az\",\"ColumnTitle\":\"Resource Deployment Zone\",\"ColumnValue\":\"ForwardsAZs\"},{\"ColumnType\":\"region\",\"ColumnTitle\":\"Region\",\"ColumnValue\":\"RegionNo\"}]}",
"ReasonCode": "",
"SuggestionCode": ""
}
],
"CheckItemName": "NAT high-availability deployment check",
"DescriptionCode": "item_ep_high_availability_check_description"
}
],
"NextToken": "hKrS+MVXkuOgztXnvdml194Cz/lMNdmr+DEh0th6dVlNEo/F148UPCh2itDku7Qj",
"TotalCount": 11,
"MaxResults": 20,
"InspectionReportId": "nir-ffd1af****196d0"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.InspectionReportNotFinish | The specified task report InspectionReportId(%s) has not been completed. | The specified task report InspectionReportId(%s) has not been completed. |
| 400 | IllegalParam.ResourceType | The specified resourceType (%s) is invalid. | The value of ResourceType is invalid. |
| 400 | IllegalParam.RiskLevel | The specified argument RiskLevel(%s) is illegal. | The specified argument RiskLevel(%s) is illegal. |
| 400 | IllegalParam.NextToken | The specified nextToken(%s) is invalid. | The NextToken(%s) parameter is set to an invalid value. |
| 400 | IllegalParam.UnsupportedResourceType | The specified parameter ResourceType(%s) is invalid, with a resource type that is not currently supported. | The specified parameter ResourceType(%s) is invalid, with a resource type that is not currently supported. |
| 403 | Forbidden.InspectionReportId | This user does not have permission to this report parameter (%s). | This user does not have permission to this report parameter (%s). |
| 404 | ResourceNotFound.InspectionReportId | The specified InspectionReportId(%s) is not found. | The specified InspectionReportId (%s) does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.