DescribeCostCheckAdvices

Updated at:

Queries the details of cost optimization results.

Operation description

This API is not compatible with the Go SDK. To use the Go SDK, call the DescribeAdvicesFlatPage API.

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:DescribeCostCheckAdvices

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

CheckId

string

No

The code of the check item.

EcsCostLowUtilizationCheck

ResourceName

string

No

The name of the resource.

test

Severity

string

No

The severity level. Valid values:

  • 1: Warning.

  • 2: Critical.

1

RegionIds

array

No

The list of edge node IDs. This is a filter condition for the query. Multiple values are supported and separated by commas (,). By default, all edge nodes are queried.

string

No

The region information.

[\"cn-beijing\"]

ResourceIds

array

No

The list of resource IDs, which are the instance IDs.

string

No

The ID of the instance to query.

[\"trigger_hotfix_install\"]

PageNumber

integer

No

The page number of the instance status list. Pages start from 1. Default value: 1.

6

PageSize

integer

No

The number of entries per page.

10

Language

string

No

The language used.

zh

TagKeys

array

No

The list of tag keys that meet the conditions.

string

No

The tag key.

[]

TagValues

array

No

The tag values.

string

No

The tag values.

['x20', 'x29', 'x30']

AssumeAliyunIdList

array

No

The IDs of the member accounts to query.

integer

No

The IDs of the member accounts to query.

[1802******3100]

TagList

array<object>

No

The list of tags.

object

No

The list of tags.

TagKey

string

No

The tag key.

ecs_***_shanghai

TagValue

array

No

The tag values.

string

No

The tag values.

region

CheckPlanId

integer

No

ResourceGroupIdList

array

No

string

No

ResourceId

string

No

Response elements

Element

Type

Description

Example

object

Schema of Response

Data

object

The query result object.

TotalCount

integer

The total number of records.

0

PageNumber

integer

The current page number.

4

PageSize

integer

The number of entries per page.

10

CheckId

string

The code of the check item.

EcsHighCpuUtilization

AdviceList

array<object>

The list of inspection results.

array<object>

The inspection result.

AliyunId

integer

The Alibaba Cloud user ID.

111******767

ResourceId

string

The resource or instance ID.

i-2ze5*****ef7d2lk63in

ResourceName

string

The name of the resource.

1200***bles_df

Product

string

The code of the cloud service.

ecs

RegionId

string

The region information.

cn-shanghai

Severity

string

The severity level. Valid values:

  • 1: Warning.

  • 2: Critical.

1

Content

string

The JSON details of the result, which are consistent with the display column format configured in the console.

{'Domains': [{'Status': 'success', '': 'cn', 'DomainName': 'www.****.com', Region'Desc': 'ok'}]}

StartTime

integer

The start time.

2025-02-04T16:00:00Z

EndTime

integer

The end time of the query. The time is displayed in UTC+0 and follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format.

2025-03-05T02:02:00Z

GmtDeleted

integer

The deletion time.

2025-03-05T02:02:00Z

Url

string

The URL to navigate to the resource corresponding to the inspection item.

https://fs1.xuece.cn/exam/import/***/30***0-9d16-c07b43c8ca6a.png

UserName

string

The username.

test

ZoneId

string

The zone ID.

cn-beijing-h

Tags

array<object>

The service tag keys.

object

The tag key.

TagKey

string

The tag key.

autoTest-7

TagValue

string

The tag value.

basic

AccountFolderId

string

The resource folder ID.

1

AccountFolderName

string

The resource folder name.

1

Email

string

Email

xxx

RequestId

string

Id of the request

566331F9-****-550F-B745-A730331F97A9

Success

string

Indicates whether the request is successful.

True

Message

string

The message.

OK

Code

string

The error code.

200

Examples

Success response

JSON format

{
  "Data": {
    "TotalCount": 0,
    "PageNumber": 4,
    "PageSize": 10,
    "CheckId": "EcsHighCpuUtilization",
    "AdviceList": [
      {
        "AliyunId": 0,
        "ResourceId": "i-2ze5*****ef7d2lk63in",
        "ResourceName": "1200***bles_df",
        "Product": "ecs",
        "RegionId": "cn-shanghai",
        "Severity": "1",
        "Content": "{'Domains': [{'Status': 'success', '': 'cn', 'DomainName': 'www.****.com', Region'Desc': 'ok'}]}",
        "StartTime": 0,
        "EndTime": 0,
        "GmtDeleted": 0,
        "Url": "https://fs1.xuece.cn/exam/import/***/30***0-9d16-c07b43c8ca6a.png",
        "UserName": "test",
        "ZoneId": "cn-beijing-h",
        "Tags": [
          {
            "TagKey": "autoTest-7",
            "TagValue": "basic"
          }
        ],
        "AccountFolderId": "1",
        "AccountFolderName": "1",
        "Email": "xxx"
      }
    ]
  },
  "RequestId": "566331F9-****-550F-B745-A730331F97A9",
  "Success": "True",
  "Message": "OK",
  "Code": "200"
}

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 Forbidden.NotActivated User has not activated Advisor Service. The user has not opened the Advisor product.
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.RAM User not authorized to operate on the specified resource, or this API doesn't support RAM. Authentication failed.
403 Forbidden.NotAuthorized User has not authorized Advisor to provide services.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.