QueryInstanceGaapCost - 查询月费用分摊服务

更新时间:

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

调试

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

调试

授权信息

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

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

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

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

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

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

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

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

操作

访问级别

资源类型

条件关键字

关联操作

bss:DescribeGaapBill

get

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

PageNum

integer

页码,默认值为 1。

1

PageSize

integer

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

20

BillingCycle

string

账单日期,YYYY-MM。

2020-03

ProductCode

string

产品代码。

rds

ProductType

string

产品类型。

rds

SubscriptionType

string

订阅类型。取值:

  • Subscription:预付费。

  • PayAsYouGo:后付费。

PayAsYouGo

返回参数

名称

类型

描述

示例值

object

Code

string

状态码。

Success

Message

string

错误信息。

Successful!

RequestId

string

请求数据。

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

Success

boolean

是否成功。

true

Data

object

返回数据。

PageNum

integer

页码。

1

PageSize

integer

每页显示条数。

20

TotalCount

integer

总记录数。

20

HostId

string

主机 ID。

1.1.1.1

Modules

object

Module

array<object>

费用信息。

object

GaapDeductedByCashCoupons

string

已分摊代金券抵扣。

0

SubscriptionType

string

订阅类型。取值:

  • Subscription:预付费。

  • PayAsYouGo:后付费。

PayAsYouGo

MonthGaapPretaxAmount

string

本月分摊优惠后金额。

0

DeductedByCoupons

string

优惠券抵扣。

0

SubOrderId

string

子订单号。

12434345

Region

string

地域。

cn-hangzhou

OrderType

string

订单类型:

  • New(新购)。

  • Renewal(续费)。

  • Upgrade(升级)。

  • Degrade(降级)。

New

MonthGaapDeductedByPrepaidCard

string

本月分摊储值卡抵扣。

0

UnallocatedDeductedByCashCoupons

string

未分摊代金券抵扣。

0

PretaxAmountLocal

string

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

0

BillingCycle

string

账期 YYYY-MM。

2020-03

PayerAccount

string

付款人账户。

23534534

MonthGaapPretaxAmountLocal

string

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

0.99

AccountingUnit

string

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

GaapPretaxAmountLocal

string

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

0

UnallocatedDeductedByPrepaidCard

string

未分摊储值卡抵扣。

0

ProductType

string

产品类型。

rds

PaymentAmount

string

现金。

0

MonthGaapPretaxGrossAmount

string

本月分摊原始金额。

0.99

BillType

string

账单类型:

  • SubscriptionOrder (预付订单)。

  • PayAsYouGoBill (后付账单)。

  • Refund (退款)。

  • Adjustment (调账)。

SubscriptionOrder

PayTime

string

支付时间。

2018-06-15 15:59:57

PretaxGrossAmount

string

原始金额。

123

OrderId

string

订单号。

213123213123

UnallocatedPricingDiscount

string

未分摊询价优惠。

0

MonthGaapDeductedByCashCoupons

string

本月分摊代金券抵扣。

0.75

UnallocatedPretaxGrossAmount

string

未分摊原始金额。

0

InstanceID

string

实例 ID。

OSSBAG-cn-0xl0xxxxxx

Tag

string

标签。

tag

Currency

string

币种。取值:

  • CNY。

  • USD。

  • JPY。

CNY

GaapDeductedByCoupons

string

已分摊优惠券抵扣。

0

DeductedByCashCoupons

string

代金券抵扣。

0

GaapDeductedByPrepaidCard

string

已分摊储值卡抵扣。

0

GaapPaymentAmount

string

已分摊现金。

0

UnallocatedPretaxAmountLocal

string

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

0

MonthGaapPricingDiscount

string

本月分摊询价优惠。

0,.25

PricingDiscount

string

询价优惠。

1

GaapPricingDiscount

string

已分摊询价优惠。

0

ResourceGroup

string

资源组。

默认资源组

UnallocatedDeductedByCoupons

string

未分摊优惠券抵扣。

0

PretaxAmount

string

优惠后金额。

0

UnallocatedPretaxAmount

string

未分摊优惠后金额。

0

GaapPretaxGrossAmount

string

已分摊原始金额。

0

UnallocatedPaymentAmount

string

未分摊现金。

0

PaymentCurrency

string

支付币种(国际)。

CNY

OwnerID

string

所有者 ID。

123213123123

DeductedByPrepaidCard

string

储值卡抵扣。

0

GaapPretaxAmount

string

已分摊优惠后金额。

0

MonthGaapDeductedByCoupons

string

本月分摊优惠券抵扣。

0

MonthGaapPaymentAmount

string

本月分摊现金。

0

UsageEndDate

string

服务结束时间。

2019-05-01 00:00:00

UsageStartDate

string

服务起始时间。

2019-04-01 00:00:00

ProductCode

string

产品代码。

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

错误码

错误信息

描述

400 NotApplicable This API is not applicable for caller.
400 NotAuthorized This API is not authorized for caller.
400 MissingParameter Absent some mandatory parameter for this request.
400 InvalidParameter This request contain some invalid parameter
400 InvalidOwner The specified owner doesn't belong to caller. 用户身份错误
400 DurationInvalid Parameter duration can only be positive integer.
400 ProductNotFound Product not found.
400 InvalidBillingCycle BillingCycle not Invalid.
400 ProdCodeNotFind Product code not find.
500 InternalError The request processing has failed due to some unknown error.

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

变更历史

更多信息,参考变更详情