Call the DescribeSmartAccessGatewayDiagnosisReport operation to query the diagnostic report for a Smart Access Gateway (SAG) device.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:DiscribeSmartAccessGatewayDiagnosisReport |
get |
*SmartAccessGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SmartAGId |
string |
Yes |
The ID of the Smart Access Gateway instance. |
sag-1um5x5nwhilymw**** |
| SmartAGSn |
string |
Yes |
The serial number of the Smart Access Gateway device. |
sage62x022502**** |
| RegionId |
string |
No |
The ID of the region where the Smart Access Gateway instance is deployed. Call the DescribeRegions operation to obtain the region ID. |
cn-shanghai |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
The diagnostic results. |
||
| RequestId |
string |
The request ID. |
D7D6E3AB-D41A-42E3-8D4E-97B145F4B7C3 |
| DiagnoseResult |
object |
The diagnostic report of the Smart Access Gateway device. |
|
| Percent |
integer |
The completion percentage of the diagnostic report. |
100 |
| SN |
string |
The serial number of the Smart Access Gateway device. |
sag42c3**** |
| DiagnoseId |
string |
The diagnostic ID. |
dia-sag42c3t703trh02olv5rf**** |
| State |
string |
The diagnostic state.
|
finished |
| UserLevel |
string |
The type of user that initiated the diagnosis. The value is user. |
user |
| BoxVersion |
string |
The software version of the Smart Access Gateway device. |
2.1.0 |
| InstanceId |
string |
The ID of the Smart Access Gateway instance. |
sag-0nnteglltw6z4b*** |
| BoxType |
string |
The type of the Smart Access Gateway device.
|
sag-1000 |
| MonitorVersion |
string |
The monitoring version used by the Smart Access Gateway device. |
2.0.2.9 |
| FinishedNumber |
integer |
The number of diagnostic items that are complete. |
15 |
| Details |
array<object> |
The list of diagnostic result details. |
|
|
object |
The details of the diagnostic result. |
||
| Type |
string |
The diagnostic type.
|
config |
| Items |
array<object> |
The list of diagnostic item details. |
|
|
object |
The details of the diagnostic item. |
||
| Type |
string |
The type of the diagnosis to which the diagnostic item belongs.
|
config |
| EndTime |
integer |
The timestamp when the diagnosis of the item ended. |
1602741570596 |
| StartTime |
integer |
The timestamp when the diagnosis of the item started. |
1602741570567 |
| CN |
object |
The diagnostic results in Chinese. |
|
| Advice |
array |
The diagnostic suggestions. |
|
|
string |
The diagnostic suggestion. |
请先检查专线端口链路接线,然后进入本地“专线管理”页面进行配置。 |
|
| ItemName |
string |
The name of the diagnostic item. |
专线口配置检查 |
| ItemLevel |
string |
The level of the diagnostic result for the item.
|
正常 |
| ItemType |
string |
The type of the diagnosis to which the diagnostic item belongs.
|
配置 |
| Details |
array |
The diagnostic results |
|
|
string |
The diagnostic result. |
所有专线端口存在链路异常或缺少端口IP:端口4 |
|
| ItemName |
string |
The name of the diagnostic item. This is the unique identifier of the diagnostic item. |
eccConfigCheck |
| EN |
object |
The diagnostic results in English. |
|
| Advice |
array |
The diagnostic suggestions. |
|
|
string |
The diagnostic suggestion. |
Check the physical connections to all Express connect ports and configure these ports on the 'Physical connection port' page. |
|
| ItemName |
string |
The name of the diagnostic item. |
Express Connect Port Configuration |
| ItemLevel |
string |
The level of the diagnostic result for the item.
|
ERROR |
| ItemType |
string |
The type of the diagnosis to which the diagnostic item belongs.
|
Config |
| Details |
array |
The diagnostic results. |
|
|
string |
The diagnostic result. |
The connection states of all Express connect ports are down and no IP address is specified for these ports: Port4 |
|
| Level |
string |
The level of the diagnostic result for the item.
|
error |
| Statistics |
object |
The statistics about the levels of diagnostic items for the current diagnostic type. |
|
| Warning |
integer |
The number of diagnostic items at the Warning level. |
2 |
| Error |
integer |
The number of diagnostic items at the Error level. |
5 |
| Total |
integer |
The total number of diagnostic items of the current diagnostic type. |
10 |
| Info |
integer |
The number of diagnostic items at the Info level. |
3 |
| UId |
string |
The ID of the Alibaba Cloud account that owns the Smart Access Gateway instance. |
1688000000000000 |
| EndTime |
integer |
The timestamp when the diagnosis ended. |
160274157 |
| StartTime |
integer |
The timestamp when the diagnosis started. |
160274157 |
| StoreType |
string |
The storage class. The value is both, which indicates that the report is stored on both the Smart Access Gateway device and in Simple Log Service (SLS). |
both |
| ReportSLSSuccess |
integer |
The status of the diagnostic report upload to SLS.
|
0 |
| TotalNumber |
integer |
The total number of entries in the diagnostic report. |
15 |
| Level |
object |
The level of the diagnostic result. |
|
| Configuration |
string |
The result level of the SAG configuration diagnosis. |
info |
| Total |
string |
The overall level of the diagnostic result.
|
error |
| Biz |
string |
The result level of the service quality diagnosis. |
warning |
| Statistics |
object |
The statistics for the overall diagnostic results. |
|
| Warning |
integer |
The total number of diagnostic items at the Warning level. |
3 |
| Error |
integer |
The total number of diagnostic items at the Error level. |
2 |
| Total |
integer |
The total number of diagnostic items. |
10 |
| Info |
integer |
The total number of diagnostic items at the Info level. |
5 |
Examples
Success response
JSON format
{
"RequestId": "D7D6E3AB-D41A-42E3-8D4E-97B145F4B7C3",
"DiagnoseResult": {
"Percent": 100,
"SN": "sag42c3****",
"DiagnoseId": "dia-sag42c3t703trh02olv5rf****",
"State": "finished",
"UserLevel": "user",
"BoxVersion": "2.1.0",
"InstanceId": "sag-0nnteglltw6z4b***",
"BoxType": "sag-1000",
"MonitorVersion": "2.0.2.9",
"FinishedNumber": 15,
"Details": [
{
"Type": "config",
"Items": [
{
"Type": "config",
"EndTime": 1602741570596,
"StartTime": 1602741570567,
"CN": {
"Advice": [
"请先检查专线端口链路接线,然后进入本地“专线管理”页面进行配置。"
],
"ItemName": "专线口配置检查",
"ItemLevel": "正常",
"ItemType": "配置",
"Details": [
"所有专线端口存在链路异常或缺少端口IP:端口4"
]
},
"ItemName": "eccConfigCheck",
"EN": {
"Advice": [
"Check the physical connections to all Express connect ports and configure these ports on the 'Physical connection port' page."
],
"ItemName": "Express Connect Port Configuration",
"ItemLevel": "ERROR",
"ItemType": "Config",
"Details": [
"The connection states of all Express connect ports are down and no IP address is specified for these ports: Port4"
]
},
"Level": "error"
}
],
"Statistics": {
"Warning": 2,
"Error": 5,
"Total": 10,
"Info": 3
}
}
],
"UId": "1688000000000000",
"EndTime": 160274157,
"StartTime": 160274157,
"StoreType": "both",
"ReportSLSSuccess": 0,
"TotalNumber": 15,
"Level": {
"Configuration": "info",
"Total": "error",
"Biz": "warning"
},
"Statistics": {
"Warning": 3,
"Error": 2,
"Total": 10,
"Info": 5
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | MissingParameter | The input parameter is missing, please check your input. | Missing parameters. Check whether all required parameters are set. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.