DescribeAdvisorChecksFoPages

Updated at:

Queries the settings of inspection items by page.

Operation description

This operation is incompatible with the Go SDK. To use the Go SDK, call the DescribeAdvicesFlatPage operation.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

advisor:DescribeAdvisorChecksFoPages

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

The page number. Starting value: 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page.

10

Name

string

No

The name of the inspection item.

****

Category

string

No

This parameter is invalid. Cost optimization is not supported.

*

Product

string

No

The code of the cloud service.

ecs

Status

string

No

The status of the diagnostic item. Valid values:

  • enabled: Available.

  • disabled: Disabled.

enabled

Token

string

No

The credential token.

***

BizCategory

string

No

The inspection type.

2

AssumeAliyunId

integer

No

The primary account for inspection.

11*********35

CheckTypes

array

No

This parameter is invalid. Cost optimization is not supported.

integer

No

The inspection category.

*

Source

string

No

This parameter is invalid. Cost optimization is not supported.

*

Language

string

No

The language.

zh

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

566331F9-5AB3-550F-B745-A730331F97A9

Code

string

The error code.

200

Data

array<object>

The query result object.

array<object>

The query results.

PageNo

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

Total

integer

The total number of entries.

100

Result

array<object>

The query result object.

object

The query result object.

Name

string

The name of the inspection item.

ECS low utilization check

Code

string

The code of the inspection item.

EcsCostLowUtilizationCheck

Tips

string

The brief description of the inspection suggestion.

For ECS low utilization, downgrade the instance configuration based on your actual business needs. For more information, see the documentation

Category

string

The category of the inspection item. Valid values:

  • 21: Low resource utilization.

  • 22: Idle resources.

  • 23: Billing method.

  • 24: Generation upgrade.

21

SubCategory

array

This field is not supported.

integer

Not supported.

*

Status

string

The status of the diagnostic item. Valid values:

  • enabled: Available.

  • disabled: Disabled.

enabled

ConfigSupport

string

Specifies whether custom configuration is supported.

false

ViewColumn

string

The display columns, which specify the configurations for displaying inspection item details in the console.

[{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_resourceId\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_resourceName\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_regionId\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_instanceChargeType\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_instanceType\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_severity\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_costBefore\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_costAfter\"},{\"type\":\"DEFAULT\",\"key\":\"EcsCostIdleCheck_costSavings\"},{\"type\":\"DEFAULT\",\"key\":\"First_time\"},{\"type\":\"DEFAULT\",\"key\":\"Duration_time\"}]

OperateColumn

string

The operation fields, which use JSON fields defined in frontend templates or diagnostic suggestion actions.

[{\"type\":\"template\",\"value\":\"cloudmonitor.console.aliyun.com/index.htm?custom_trace=ecs_console#/hostDetail/chart/instanceId=${Resource.resourceId}&system=Linux&region=${Resource.regionId}&aliyunhost=true\",\"key\":\"Detail\"},{\"type\":\"template\",\"value\":\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\",\"key\":\"Refresh\"}]

InspectionScope

string

The inspection scope.

false

Product

string

The code of the cloud service.

ECS

Description

string

The description of the inspection item, including recommended operations and operation instructions.

Intelligent Advisor checks all ECS instances in the account. For ECS instances of the r5 or g5 instance family, upgrade them to r6 or g6

Source

string

The source of the inspection item. Valid values:

  • Advisor: Custom inspection items created by Intelligent Advisor.

  • Governance: Cloud Governance Center.

  • Config: configuration audit.

Advisor

RiskLevel

integer

The risk level. Valid values:

  • 1: Warning.

  • 2: Critical.

1

Success

boolean

Indicates whether the request is successful.

True

Message

string

The message details.

OK

Examples

Success response

JSON format

{
  "RequestId": "566331F9-5AB3-550F-B745-A730331F97A9",
  "Code": "200",
  "Data": [
    {
      "PageNo": 1,
      "PageSize": 10,
      "Total": 100,
      "Result": [
        {
          "Name": "ECS low utilization check",
          "Code": "EcsCostLowUtilizationCheck",
          "Tips": "For ECS instances with low utilization, consider downgrading the instance configurations based on your actual business requirements. For more information, see the documentation",
          "Category": "21",
          "SubCategory": [
            0
          ],
          "Status": "enabled",
          "ConfigSupport": "false",
          "ViewColumn": "[{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_resourceId\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_resourceName\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_regionId\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_instanceChargeType\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_instanceType\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_severity\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_costBefore\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_costAfter\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"EcsCostIdleCheck_costSavings\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"First_time\\\"},{\\\"type\\\":\\\"DEFAULT\\\",\\\"key\\\":\\\"Duration_time\\\"}]",
          "OperateColumn": "[{\\\"type\\\":\\\"template\\\",\\\"value\\\":\\\"cloudmonitor.console.aliyun.com/index.htm?custom_trace=ecs_console#/hostDetail/chart/instanceId=${Resource.resourceId}&system=Linux&region=${Resource.regionId}&aliyunhost=true\\\",\\\"key\\\":\\\"Detail\\\"},{\\\"type\\\":\\\"template\\\",\\\"value\\\":\\\"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\\\",\\\"key\\\":\\\"Refresh\\\"}]\n",
          "InspectionScope": "false",
          "Product": "ECS",
          "Description": "Intelligent Advisor checks all ECS instances within the account. For ECS instances of the r5 or g5 instance families, we recommend upgrading them to the r6 or g6 instance families",
          "Source": "Advisor",
          "RiskLevel": 1
        }
      ]
    }
  ],
  "Success": true,
  "Message": "OK"
}

Error codes

HTTP status code

Error code

Error message

Description

500 InternalError The request processing has failed due to some unknown error. A server error occurred.
403 Rd.NoManagePermission The RD management account does not have the specified member account management permission. The RD management account does not have the specified member account management permission.
403 Rd.NoMasterRole Login account is not RD management or co-management role. Logon account is not RD management or co-management role
403 Forbidden.NotActivated User has not activated Advisor Service. The user has not opened the Advisor product.
403 Forbidden.NotAuthorized User has not authorized Advisor to provide services.
403 Forbidden.RAM User not authorized to operate on the specified resource, or this API doesn't support RAM. Authentication failed.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.