DescribeCostOptimizationOverview - 成本数据概览

更新时间:
复制 MD 格式

成本优化-概览

接口说明

不兼容 Go SDK,如需要 Go SDK 请使用 DescribeAdvicesFlatPage API。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

advisor:DescribeCostOptimizationOverview

none

*全部资源

*

无 无

请求参数

名称

类型

必填

描述

示例值

AssumeAliyunId

integer

否

巡检主账号

11***********35

Token

string

否

请求所需的 Token(暂不支持)。

***

AssumeAliyunIdList

array

否

查询成员账号 id 集合

integer

否

查询成员账号 id 集合

[18**********00]

CheckPlanId

integer

否

返回参数

名称

类型

描述

示例值

object

Schema of Response

RequestId

string

Id of the request

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

Code

string

错误编码。

200

Data

object

查询结果对象体。

TaskId

integer

后台生成的任务 ID。

95***135

CurrentBillingCost

string

上一月支出金额

100

BillingCycleDate

string

账单周期(yyyy-MM)

100

OptCheckItemNum

string

可优化巡检项数量

100

OptResourceNum

string

最多可优化资源数量

100

ExpectedSavingCost

string

预计最多可节省金额

100

GmtModified

integer

巡检项结果更新时间,格式为 yyyy-mm-dd hh:mm:ss

2023-07-01 00:00:00

WaitProcessResourceCount

string

ProcessedResourceCount

string

ProcessedSaveAmount

string

Message

string

消息。

Internal service issue. Detail:.

Success

boolean

请求是否成功。

True

AccessDeniedDetail

object

访问被拒绝详细信息。

AuthAction

string

AuthAction

null

AuthPrincipalDisplayName

string

鉴权主体信息。

null

AuthPrincipalOwnerId

string

鉴权主账号 id。

null

AuthPrincipalType

string

授权主体类型。

null

EncodedDiagnosticMessage

string

异常信息

*****

NoPermissionType

string

无权限类型。

null

PolicyType

string

策略类型。

PauseNotify

示例

正常返回示例

JSON格式

{
  "RequestId": "566331F9-****-550F-B745-A730331F97A9",
  "Code": "200",
  "Data": {
    "TaskId": 0,
    "CurrentBillingCost": "100",
    "BillingCycleDate": "100",
    "OptCheckItemNum": "100",
    "OptResourceNum": "100",
    "ExpectedSavingCost": "100",
    "GmtModified": 0,
    "WaitProcessResourceCount": "",
    "ProcessedResourceCount": "",
    "ProcessedSaveAmount": ""
  },
  "Message": "Internal service issue. Detail:.",
  "Success": true,
  "AccessDeniedDetail": {
    "AuthAction": "null",
    "AuthPrincipalDisplayName": "null",
    "AuthPrincipalOwnerId": "null",
    "AuthPrincipalType": "null",
    "EncodedDiagnosticMessage": "*****",
    "NoPermissionType": "null",
    "PolicyType": "PauseNotify"
  }
}

错误码

HTTP status code

错误码

错误信息

描述

500 InternalError The request processing has failed due to some unknown error. 服务端错误。
403 Rd.NoMasterRole Login account is not RD management or co-management role. 登录账号不是RD管理或协管角色
403 Forbidden.NotActivated User has not activated Advisor Service. 用户未开通Advisor产品。
403 Forbidden.NotAuthorized User has not authorized Advisor to provide services.
403 Rd.NoManagePermission The RD management account does not have the specified member account management permission. RD管理账号没有指定成员账号管理权限
403 Forbidden.RAM The user is not authorized to operate on the specified resource, or this API does not support RAM. 未授权错误。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。