Generates a diagnosis report for a Smart Access Gateway (SAG) device.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smartag:DiscribeSmartAccessGatewayDiagnosisReport | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SmartAGId | string | Yes | The ID of the SAG instance. | sag-1um5x5nwhilymw**** |
SmartAGSn | string | Yes | The serial number of the SAG device. | sage62x022502**** |
RegionId | string | Yes | The ID of the region where the SAG instance is deployed. You can call the DescribeRegions operation to query the most recent region list. | cn-shanghai |
Response parameters
Examples
Sample success responses
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": [
""
]
},
"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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history