All Products
Search
Document Center

Smart Access Gateway:DiscribeSmartAccessGatewayDiagnosisReport

Last Updated:Mar 29, 2024

Generates a diagnosis report for a Smart Access Gateway (SAG) device.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:DiscribeSmartAccessGatewayDiagnosisReportRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SmartAGIdstringYes

The ID of the SAG instance.

sag-1um5x5nwhilymw****
SmartAGSnstringYes

The serial number of the SAG device.

sage62x022502****
RegionIdstringYes

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

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

D7D6E3AB-D41A-42E3-8D4E-97B145F4B7C3
DiagnoseResultobject

The diagnosis report of the SAG device.

Percentinteger

The completion percentage of the diagnosis report.

100
SNstring

The serial number of the SAG device.

sag42c3****
DiagnoseIdstring

The ID of the diagnosis.

dia-sag42c3t703trh02olv5rf****
Statestring

The diagnosis status. Valid values:

  • processing: The SAG device is being diagnosed.
  • finished: The SAG device is diagnosed.
  • failed: The system failed to diagnose the SAG device.
  • error: A diagnostic error occurred.
  • upload_to_sls_fail: The system failed to upload the diagnosis report.
finished
UserLevelstring

The type of user that initiated the diagnostics. The value is set to user.

user
BoxVersionstring

The version of the SAG device.

2.1.0
InstanceIdstring

The ID of the SAG instance.

sag-0nnteglltw6z4b***
BoxTypestring

The model of the SAG device.

  • sag-1000
  • sag-100WM
sag-1000
MonitorVersionstring

The version of the monitoring feature that is used by the SAG device.

2.0.2.9
FinishedNumberinteger

The number of items that are diagnosed.

15
Detailsobject []

The list of diagnoses that are returned.

Typestring

The type of the diagnosis. Valid values:

  • config: SAG configuration
  • internet: quality of connections to the Internet
  • biz: service quality
config
Itemsobject []

The list of items diagnosed.

Typestring

The type of the item. Valid values:

  • config: SAG configuration
  • internet: quality of connections to the Internet
  • biz: service quality
config
EndTimelong

The timestamp when the system finishes diagnosing the item.

1602741570596
StartTimelong

The timestamp when the system starts to diagnose the item.

1602741570567
CNobject

The diagnosis report in Chinese.

Advicearray

The suggestion for the diagnosis.

string
ItemNamestring

The name of the item.

ItemLevelstring

The diagnosis level of the item. Valid values:

  • ERROR: indicates that the item has an issue that may affect your services. We recommend that you handle the issue at the earliest opportunity.
  • WARNING: indicates that the item has an issue. You can handle the issue based on your business requirements.
  • INFO: indicates that the item is working as expected. No additional operation is required.
ItemTypestring

The type of the item. Valid values:

  • Config: SAG configuration
  • Service: service quality
  • Internet: quality of connections to the Internet
Detailsarray

The diagnosis.

string
ItemNamestring

The name of the item, which is the unique identifier of the item.

eccConfigCheck
ENobject

The diagnosis report in English.

Advicearray

The suggestion for the diagnosis.

string
Check the physical connections to all Express connect ports and configure these ports on the 'Physical connection port' page.
ItemNamestring

The name of the item.

Express Connect Port Configuration
ItemLevelstring

The diagnosis level of the item. Valid values:

  • ERROR: indicates that the item has an issue that may affect your services. We recommend that you handle the issue at the earliest opportunity.
  • WARNING: indicates that the item has an issue. You can handle the issue based on your business requirements.
  • INFO: indicates that the item is working as expected. No additional operation is required.
ERROR
ItemTypestring

The type of the item. Valid values:

  • Config: SAG configuration
  • Service: service quality
  • Internet: quality of connections to the Internet
Config
Detailsarray

The diagnosis.

string
The connection states of all Express connect ports are down and no IP address is specified for these ports: Port4
Levelstring

The diagnosis level of the item. Valid values:

  • error: severe
  • warning: warning
  • info: normal
error
Statisticsobject

The information about items of each diagnosis level for the current diagnosis type.

Warninginteger

The number of items of the WARNING level.

2
Errorinteger

The number of items of the ERROR level.

5
Totalinteger

The total number of items for the current diagnosis type.

10
Infointeger

The number of items of the INFO level.

3
UIdstring

The user ID (UID) of the Alibaba Cloud account to which the SAG instance belongs.

1688000000000000
EndTimeinteger

The timestamp when the system finishes diagnosing the item.

160274157
StartTimeinteger

The timestamp when the system starts to diagnose the item.

160274157
StoreTypestring

The storage type.

The value is set to both, which indicates that the data is stored in the SAG device and Log Service.

both
ReportSLSSuccessinteger

The status of the diagnosis report to be uploaded to Log Service.

  • 0: The system failed to upload the report.
  • 1: The system has uploaded the report to Log Service.
0
TotalNumberinteger

The total number of entries returned.

15
Levelobject

The diagnosis level.

Configurationstring

The diagnosis level of the SAG configuration.

info
Totalstring

The overall diagnosis level.

  • error: severe
  • warning: warning
  • info: normal
error
Bizstring

The diagnosis level of the service quality.

warning
Statisticsobject

The overall diagnosis level.

Warninginteger

The number of items of the WARNING level.

3
Errorinteger

The number of items of the ERROR level.

2
Totalinteger

The total number of items.

10
Infointeger

The number of items of the INFO level.

5

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
403MissingParameterThe 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 timeSummary of changesOperation
No change history