All Products
Search
Document Center

Auto Scaling:DescribeDiagnoseReports

Last Updated:Jul 22, 2025

Queries the diagnostic reports.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
ess:DescribeDiagnoseReportsget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the scaling group.

cn-shenzhen
ScalingGroupIdstringYes

The ID of the scaling group.

asg-2vcis7yglxtm*****
ReportIdsarrayNo

The IDs of the diagnostic reports. You can specify at most 20 IDs.

stringNo

The ID of the diagnostic report.

dr-j6c7wvdzk5103bkm8cx4
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page.

10

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

ECA123C6-107B-5F70-A177-740A7224C996
Reportsarray<object>

The diagnostic reports.

Reportobject

The diagnostic report.

UserIdstring

The user ID of the scaling group.

161456884*******
RegionIdstring

The ID of the region.

cn-qingdao
ScalingGroupIdstring

The ID of the scaling group.

asg-bp124uve5iph3*****
Detailsarray<object>

The details of the diagnostic report.

Detailobject
DiagnoseTypestring

The type of the diagnostic item. Valid values:

  • AccountArrearage: Checks whether your Alibaba Cloud account has overdue payments.
  • AccountNotEnoughBalance: Checks whether the balance of your Alibaba Cloud account at the China site (aliyun.com) is greater than or equal to CNY 100.
  • ElasticStrength: Checks whether the instance types that are specified in the scaling configuration are sufficient.
  • VSwitch: Checks whether a specific vSwitch can work as expected. For example, if a vSwitch is deleted, the vSwitch cannot provide services and an exception occurs.
  • SecurityGroup: Checks whether a specific security group can work as expected. For example, if a security group is deleted, the security group cannot provide services and an exception occurs.
  • KeyPair: Checks whether the key pair is available. If the specified key pair is deleted, specify another key pair for the scaling group.
  • SlbBackendServerQuota: Checks whether the number of ECS instances that are added to the default server group and the vServer groups of the SLB instances associated with the scaling group has reached the upper limit.
  • AlbBackendServerQuota: Checks whether the number of ECS instances that are added to the backend server groups of the ALB instances associated with the scaling group has reached the upper limit.
  • NlbBackendServerQuota: Checks whether the number of ECS instances that are added to the backend server groups of the NLB instances associated with the scaling group has reached the upper limit.
AccountArrearage
ResourceIdstring

The ID of the resource.

sg-280ih****
Statusstring

The status of the diagnostic item. Valid values:

  • Normal: The diagnostic result is normal.
  • Warn: The diagnostic result is warning.
  • Critical: The diagnostic result is critical.
Normal
ErrorCodestring

The error code of the diagnostic item. Valid values:

  • VSwitchIdNotFound: The vSwitch does not exist.
  • SecurityGroupNotFound: The security group does not exist.
  • KeyPairNotFound: The key pair does not exist.
  • SlbBackendServerQuotaExceeded: The number of ECS instances that are added to the default server group and the vServer groups of the SLB instances associated with the scaling group has reached the upper limit.
  • AlbBackendServerQuotaExceeded: The number of ECS instances that are attached to the ALB instances of the scaling group has reached the upper limit.
  • NlbBackendServerQuotaExceeded: The number of ECS instances that are attached to the NLB instances of the scaling group has reached the upper limit.
  • AccountArrearage: Your account has overdue payments.
  • AccountNotEnoughBalance: The balance of your Alibaba Cloud account is less than CNY 100.
  • ElasticStrengthAlert: The inventory levels are lower than expected.
VSwitchIdNotFound
ReportIdstring

The ID of the diagnostic report.

dr-bp14p0cjp7wvjob5l6hk
ProcessStatusstring

The status of the diagnostic report. Valid values:

  • processing: The diagnosis is in progress.
  • Finished: The diagnosis is complete.
Finished
DiagnoseStatusstring

The status of the diagnostic item. Only the severe status is displayed in the diagnostic report. Valid values:

  • Normal: The diagnostic result is normal.
  • Warn: The diagnostic result is warning.
  • Critical: The diagnostic result is critical.
Normal
CreationTimestring

The time when the diagnostic report was created.

2024-08-23T02:22:30Z
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries per page.

10
TotalCountinteger

The total number of diagnostic reports.

5

Examples

Sample success responses

JSONformat

{
  "RequestId": "ECA123C6-107B-5F70-A177-740A7224C996",
  "Reports": [
    {
      "UserId": "161456884*******",
      "RegionId": "cn-qingdao",
      "ScalingGroupId": "asg-bp124uve5iph3*****",
      "Details": [
        {
          "DiagnoseType": "AccountArrearage",
          "ResourceId": "sg-280ih****",
          "Status": "Normal",
          "ErrorCode": "VSwitchIdNotFound"
        }
      ],
      "ReportId": "dr-bp14p0cjp7wvjob5l6hk",
      "ProcessStatus": "Finished",
      "DiagnoseStatus": "Normal",
      "CreationTime": "2024-08-23T02:22:30Z"
    }
  ],
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 5
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history