Mendeskripsikan detail item pemeriksaan dalam laporan inspeksi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nis:DescribeNisInspectionReportCheckItems |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InspectionReportId |
string |
Yes |
ID laporan inspeksi. |
nir-ffd1af****196d0 |
| ResourceType |
array |
No |
Tipe Sumber daya. |
|
|
string |
No |
The type of the associated resource. Valid values:
|
NAT |
|
| CategoryCode |
string |
No |
Kategori item pemeriksaan. |
stability |
| RiskLevel |
array |
No |
Kumpulan tingkat risiko. |
|
|
string |
No |
The risk level. If you do not specify this parameter, check items of all risk levels are returned. Valid values:
|
HighRisk |
|
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Atur parameter ini ke nilai NextToken yang dikembalikan dari panggilan sebelumnya. |
hKrS+MVXkuOgztXnvdml16/uO3mvCyHxSjzdhx9VRUC+8umDTIV2Wg9TTOUrR7ve |
| MaxResults |
integer |
No |
Jumlah maksimum entri yang dikembalikan pada setiap halaman. Nilai maksimum: 100. Nilai default: 20. |
20 |
| Language |
string |
No |
Bahasa konten. Nilai valid: zh-CN dan en-US. |
zh-CN |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
RpcResponse<NextTokenResult> |
||
| RequestId |
string |
The request ID. |
D5E98683-355B-5867-8D3D-A24755F6895B |
| CheckItemList |
array<object> |
The list of check items. |
|
|
array<object> |
|||
| ResourceType |
string |
The resource type associated with the check item. |
NAT |
| CategoryCode |
string |
The category of the check item. |
stability |
| CheckItemCode |
string |
The code of the check item. |
item_nat_water_level_check |
| Description |
string |
The description of the check item. |
无 |
| CheckResultList |
array<object> |
The list of check results that indicates the number of risks at each risk level. |
|
|
object |
|||
| RiskLevel |
string |
The risk level. Valid values:
|
LowRisk |
| Count |
integer |
The number of risks at this level in the inspection report. |
0 |
| RecommendationList |
array<object> |
The list of results for abnormal check items. |
|
|
object |
|||
| RiskLevel |
string |
The risk level. Valid values:
|
LowRisk |
| RecommendationCode |
string |
The code for the abnormal check item. |
nat_snat_cross_az_warn |
| Abnormality |
string |
The description of the abnormal item. |
多个跨可用区资源共用一台NAT网关 |
| Reason |
string |
The cause of the abnormality. |
多个跨可用区资源共用一台NAT网关 |
| Suggestion |
string |
The optimization suggestions. |
建议在资源所在可用区均部署NAT网关,并配置您的SNAT/DNAT规则以确保资源使用同可用区内的NAT网关。这样可以确保即使某个可用区发生故障,其他可用区的资源仍能保持网络通信。 |
| Metadata |
string |
The metadata of the resource that corresponds to the abnormal item. |
{"Columns":[{"ColumnType":"id","ColumnTitle":"资源ID","ColumnValue":"ResourceId"},{"ColumnType":"az","ColumnTitle":"NAT部署AZ","ColumnValue":"NatAZ"},{"ColumnType":"array.az","ColumnTitle":"资源部署AZ","ColumnValue":"ForwardsAZs"},{"ColumnType":"region","ColumnTitle":"地域","ColumnValue":"RegionNo"}]} |
| ReasonCode |
string |
||
| SuggestionCode |
string |
||
| CheckItemName |
string |
The name of the check item. |
NAT高可用部署检查 |
| DescriptionCode |
string |
item_ep_high_availability_check_description |
|
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. |
hKrS+MVXkuOgztXnvdml194Cz/lMNdmr+DEh0th6dVlNEo/F148UPCh2itDku7Qj |
| TotalCount |
integer |
The total number of entries returned. |
11 |
| MaxResults |
integer |
The number of entries per page. Valid values: 1 to 100. Default value: 20. |
20 |
| InspectionReportId |
string |
The ID of the inspection report. |
nir-ffd1af****196d0 |
Contoh
Respons sukses
JSONformat
{
"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": "多个跨可用区资源共用一台NAT网关",
"Reason": "多个跨可用区资源共用一台NAT网关",
"Suggestion": "建议在资源所在可用区均部署NAT网关,并配置您的SNAT/DNAT规则以确保资源使用同可用区内的NAT网关。这样可以确保即使某个可用区发生故障,其他可用区的资源仍能保持网络通信。",
"Metadata": "{\"Columns\":[{\"ColumnType\":\"id\",\"ColumnTitle\":\"资源ID\",\"ColumnValue\":\"ResourceId\"},{\"ColumnType\":\"az\",\"ColumnTitle\":\"NAT部署AZ\",\"ColumnValue\":\"NatAZ\"},{\"ColumnType\":\"array.az\",\"ColumnTitle\":\"资源部署AZ\",\"ColumnValue\":\"ForwardsAZs\"},{\"ColumnType\":\"region\",\"ColumnTitle\":\"地域\",\"ColumnValue\":\"RegionNo\"}]}",
"ReasonCode": "",
"SuggestionCode": ""
}
],
"CheckItemName": "NAT高可用部署检查",
"DescriptionCode": "item_ep_high_availability_check_description"
}
],
"NextToken": "hKrS+MVXkuOgztXnvdml194Cz/lMNdmr+DEh0th6dVlNEo/F148UPCh2itDku7Qj",
"TotalCount": 11,
"MaxResults": 20,
"InspectionReportId": "nir-ffd1af****196d0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.InspectionReportNotFinish | The specified task report InspectionReportId(%s) has not been completed. | |
| 400 | IllegalParam.ResourceType | The specified resourceType (%s) is invalid. | |
| 400 | IllegalParam.RiskLevel | The specified argument RiskLevel(%s) is illegal. | |
| 400 | IllegalParam.NextToken | The specified nextToken(%s) is invalid. | |
| 400 | IllegalParam.UnsupportedResourceType | 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). | |
| 404 | ResourceNotFound.InspectionReportId | The specified InspectionReportId(%s) is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.