首页 阿里云交易和账单管理API API参考指南 API目录 财务账单 QueryInstanceGaapCost - 查询月费用分摊服务

QueryInstanceGaapCost - 查询月费用分摊服务

该API不再更新。请前往使用如下API获取对应分摊成本: DescribeInstanceAmortizedCostByAmortizationPeriod - 查询实例摊销月摊销成本; DescribeProductAmortizedCostByAmortizationPeriod- 查询产品摊销月摊销成本; DescribeInstanceAmortizedCostByConsumePeriod- 查询实例账期月摊销成本; DescribeProductAmortizedCostByConsumePeriod- 查询产品账期月摊销成本。

调试

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

调试

授权信息

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

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
bss:DescribeGaapBillREAD
  • BssOpenApi
    *

请求参数

名称类型必填描述示例值
PageNuminteger

页码,默认值为1。

1
PageSizeinteger

每页数量,默认值:20,最大值:100。

20
BillingCyclestring

账单日期,YYYY-MM。

2020-03
ProductCodestring

产品代码。

rds
ProductTypestring

产品类型。

rds
SubscriptionTypestring

订阅类型。取值:

  • Subscription:预付费。
  • PayAsYouGo:后付费。
PayAsYouGo

返回参数

名称类型描述示例值
object
Codestring

状态码。

Success
Messagestring

错误信息。

Successful!
RequestIdstring

请求数据。

CCBB1BB9-22F1-4177-867B-7A75D665B488
Successboolean

是否成功。

true
Dataobject

返回数据。

PageNuminteger

页码。

1
PageSizeinteger

每页显示条数。

20
TotalCountinteger

总记录数。

20
HostIdstring

主机ID。

1.1.1.1
Modulesarray

费用信息。

object
GaapDeductedByCashCouponsstring

已分摊代金券抵扣。

0
SubscriptionTypestring

订阅类型。取值:

  • Subscription:预付费。
  • PayAsYouGo:后付费。
PayAsYouGo
MonthGaapPretaxAmountstring

本月分摊优惠后金额。

0
DeductedByCouponsstring

优惠券抵扣。

0
SubOrderIdstring

子订单号。

12434345
Regionstring

地域。

cn-hangzhou
OrderTypestring

订单类型:

  • New(新购)。
  • Renewal(续费)。
  • Upgrade(升级)。
  • Degrade(降级)。
New
MonthGaapDeductedByPrepaidCardstring

本月分摊储值卡抵扣。

0
UnallocatedDeductedByCashCouponsstring

未分摊代金券抵扣。

0
PretaxAmountLocalstring

本币币种已分摊优惠后金额(国际)。

0
BillingCyclestring

账期YYYY-MM。

2020-03
PayerAccountstring

付款人账户。

23534534
MonthGaapPretaxAmountLocalstring

本币币种对应的本月分摊优惠后金额(国际)。

0.99
AccountingUnitstring

财务核算单元。为预留字段,暂不支持。

GaapPretaxAmountLocalstring

本币币种已分摊优惠后金额。

0
UnallocatedDeductedByPrepaidCardstring

未分摊储值卡抵扣。

0
ProductTypestring

产品类型。

rds
PaymentAmountstring

现金。

0
MonthGaapPretaxGrossAmountstring

本月分摊原始金额。

0.99
BillTypestring

账单类型:

  • SubscriptionOrder (预付订单)。
  • PayAsYouGoBill (后付账单)。
  • Refund (退款)。
  • Adjustment (调账)。
SubscriptionOrder
PayTimestring

支付时间。

2018-06-15 15:59:57
PretaxGrossAmountstring

原始金额。

123
OrderIdstring

订单号。

213123213123
UnallocatedPricingDiscountstring

未分摊询价优惠。

0
MonthGaapDeductedByCashCouponsstring

本月分摊代金券抵扣。

0.75
UnallocatedPretaxGrossAmountstring

未分摊原始金额。

0
InstanceIDstring

实例ID。

OSSBAG-cn-0xl0xxxxxx
Tagstring

标签。

tag
Currencystring

币种。取值:

  • CNY。
  • USD。
  • JPY。
CNY
GaapDeductedByCouponsstring

已分摊优惠券抵扣。

0
DeductedByCashCouponsstring

代金券抵扣。

0
GaapDeductedByPrepaidCardstring

已分摊储值卡抵扣。

0
GaapPaymentAmountstring

已分摊现金。

0
UnallocatedPretaxAmountLocalstring

本币币种未分摊优惠后金额。

0
MonthGaapPricingDiscountstring

本月分摊询价优惠。

0,.25
PricingDiscountstring

询价优惠。

1
GaapPricingDiscountstring

已分摊询价优惠。

0
ResourceGroupstring

资源组。

默认资源组
UnallocatedDeductedByCouponsstring

未分摊优惠券抵扣。

0
PretaxAmountstring

优惠后金额。

0
UnallocatedPretaxAmountstring

未分摊优惠后金额。

0
GaapPretaxGrossAmountstring

已分摊原始金额。

0
UnallocatedPaymentAmountstring

未分摊现金。

0
PaymentCurrencystring

支付币种(国际)。

CNY
OwnerIDstring

所有者ID。

123213123123
DeductedByPrepaidCardstring

储值卡抵扣。

0
GaapPretaxAmountstring

已分摊优惠后金额。

0
MonthGaapDeductedByCouponsstring

本月分摊优惠券抵扣。

0
MonthGaapPaymentAmountstring

本月分摊现金。

0
UsageEndDatestring

服务结束时间。

2019-05-01 00:00:00
UsageStartDatestring

服务起始时间。

2019-04-01 00:00:00
ProductCodestring

产品代码。

rds

示例

正常返回示例

JSON格式

{
  "Code": "Success",
  "Message": "Successful!",
  "RequestId": "CCBB1BB9-22F1-4177-867B-7A75D665B488",
  "Success": true,
  "Data": {
    "PageNum": 1,
    "PageSize": 20,
    "TotalCount": 20,
    "HostId": "1.1.1.1",
    "Modules": {
      "Module": [
        {
          "GaapDeductedByCashCoupons": "0",
          "SubscriptionType": "PayAsYouGo",
          "MonthGaapPretaxAmount": "0",
          "DeductedByCoupons": "0",
          "SubOrderId": "12434345",
          "Region": "cn-hangzhou",
          "OrderType": "New",
          "MonthGaapDeductedByPrepaidCard": "0",
          "UnallocatedDeductedByCashCoupons": "0",
          "PretaxAmountLocal": "0",
          "BillingCycle": "2020-03",
          "PayerAccount": "23534534",
          "MonthGaapPretaxAmountLocal": "0.99",
          "AccountingUnit": "无",
          "GaapPretaxAmountLocal": "0",
          "UnallocatedDeductedByPrepaidCard": "0",
          "ProductType": "rds",
          "PaymentAmount": "0",
          "MonthGaapPretaxGrossAmount": "0.99",
          "BillType": "SubscriptionOrder",
          "PayTime": "2018-06-15 15:59:57",
          "PretaxGrossAmount": "123",
          "OrderId": "213123213123",
          "UnallocatedPricingDiscount": "0",
          "MonthGaapDeductedByCashCoupons": "0.75",
          "UnallocatedPretaxGrossAmount": "0",
          "InstanceID": "OSSBAG-cn-0xl0xxxxxx",
          "Tag": "tag",
          "Currency": "CNY",
          "GaapDeductedByCoupons": "0",
          "DeductedByCashCoupons": "0",
          "GaapDeductedByPrepaidCard": "0",
          "GaapPaymentAmount": "0",
          "UnallocatedPretaxAmountLocal": "0",
          "MonthGaapPricingDiscount": "0,.25",
          "PricingDiscount": "1",
          "GaapPricingDiscount": "0",
          "ResourceGroup": "默认资源组",
          "UnallocatedDeductedByCoupons": "0",
          "PretaxAmount": "0",
          "UnallocatedPretaxAmount": "0",
          "GaapPretaxGrossAmount": "0",
          "UnallocatedPaymentAmount": "0",
          "PaymentCurrency": "CNY",
          "OwnerID": "123213123123",
          "DeductedByPrepaidCard": "0",
          "GaapPretaxAmount": "0",
          "MonthGaapDeductedByCoupons": "0",
          "MonthGaapPaymentAmount": "0",
          "UsageEndDate": "2019-05-01 00:00:00",
          "UsageStartDate": "2019-04-01 00:00:00",
          "ProductCode": "rds"
        }
      ]
    }
  }
}

错误码

HTTP status code错误码错误信息
400NotApplicableThis API is not applicable for caller.
400NotAuthorizedThis API is not authorized for caller.
400MissingParameterAbsent some mandatory parameter for this request.
400InvalidParameterThis request contain some invalid parameter
400InvalidOwnerThe specified owner doesn't belong to caller.
400DurationInvalidParameter duration can only be positive integer.
400ProductNotFoundProduct not found.
400InvalidBillingCycleBillingCycle not Invalid.
400ProdCodeNotFindProduct code not find.
500InternalErrorThe request processing has failed due to some unknown error.

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

变更历史

变更时间变更内容概要操作
2022-12-26OpenAPI 错误码发生变更
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 400 变更
    删除错误码:500
2022-12-26OpenAPI 错误码发生变更
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 500 变更
    删除错误码:400
阿里云首页 阿里云交易和账单管理API 相关技术圈