查詢分賬賬單。分賬賬單API已升級,請使用新版API:DescribeSplitItemBill。
接口說明
- 分賬賬單 API 已升級,請使用新版 API: DescribeSplitItemBill 。此 API 不再提供 50000 行以后數據的查詢。
- 與費用中心-分賬賬單賬期數據一致
- 分賬賬單提供 12 月內賬期數據查詢
- 本數據需要用戶在控制臺分賬賬單頁面開通后才可提供
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
下表是API對應的授權信息,可以在RAM權限策略語句的Action
元素中使用,用來給RAM用戶或RAM角色授予調用此API的權限。具體說明如下:
- 操作:是指具體的權限點。
- 訪問級別:是指每個操作的訪問級別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權的資源類型。具體說明如下:
- 對于必選的資源類型,用背景高亮的方式表示。
- 對于不支持資源級授權的操作,用
全部資源
表示。
- 條件關鍵字:是指云產品自身定義的條件關鍵字。
- 關聯操作:是指成功執行操作所需要的其他權限。操作者必須同時具備關聯操作的權限,操作才能成功。
操作 | 訪問級別 | 資源類型 | 條件關鍵字 | 關聯操作 |
---|---|---|---|---|
bssapi:QuerySplitItemBill | READ |
|
| 無 |
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
BillingCycle | string | 是 | 賬單日期,YYYY-MM。 | 2020-03 |
ProductCode | string | 否 | 產品代碼。 | rds |
ProductType | string | 否 | 產品類型。 | rds |
SubscriptionType | string | 否 | 訂閱類型。取值: Subscription:預付費。 PayAsYouGo:后付費。 說明:必須和 ProductCode 參數一起使用。 | PayAsYouGo |
PageNum | integer | 否 | 頁碼,默認值為 1。 | 1 |
PageSize | integer | 否 | 每頁數量,默認值:20,最大值:300。 | 20 |
BillOwnerId | long | 否 | 資源歸屬賬號的 ID,資源歸屬賬號是實際使用資源的賬號。 | 123 |
返回參數
示例
正常返回示例
JSON
格式
{
"Code": "Success",
"Message": "Successful!",
"RequestId": "79EE7556-0CFD-44EB-9CD6-B3B526E3A85F",
"Success": true,
"Data": {
"PageNum": 1,
"BillingCycle": "2020-03",
"AccountID": "185xxxx3489",
"PageSize": 20,
"TotalCount": 2,
"AccountName": "test@test.aliyunid.com",
"Items": {
"Item": [
{
"SplitAccountID": "122",
"SubscriptionType": "PayAsYouGo",
"InstanceSpec": "ecs.sn1ne.3xlarge",
"DeductedByCoupons": 0,
"Region": "cn-hangzhou",
"OutstandingAmount": 0,
"PipCode": "rds",
"CommodityCode": "rds",
"NickName": "test",
"ProductDetail": "云數據庫RDS",
"Usage": "100",
"IntranetIP": "192.xx.xx.xx",
"UsageUnit": "GB",
"SplitCommodityCode": "rds",
"ProductType": "rds",
"DeductedByResourcePackage": "NULL",
"PaymentAmount": 0,
"SplitBillingCycle": "2020-06",
"ServicePeriod": "10",
"SplitItemName": "iZ28bycvyb4Z",
"ListPrice": "100",
"Zone": "cn-hangzhou-h",
"PretaxGrossAmount": 0,
"CashAmount": 0,
"InstanceConfig": "CPU:12",
"BillingDate": "2020-01-20",
"InternetIP": "34.xx.x.x",
"Item": "PayAsYouGoBill",
"SplitItemID": "i-28bycvyb4",
"InstanceID": "i-kjhdskjgshfdlkjfdh",
"Tag": "tag",
"Currency": "CNY",
"DeductedByCashCoupons": 0,
"BillingItem": "其他",
"CostUnit": "未分配",
"ListPriceUnit": "元",
"ResourceGroup": "默認資源組",
"PretaxAmount": 0,
"ServicePeriodUnit": "秒",
"ProductName": "云數據庫RDS",
"SplitProductDetail": "rds",
"AdjustAmount": 0,
"OwnerID": "169***013",
"DeductedByPrepaidCard": 0,
"InvoiceDiscount": 0,
"SplitAccountName": "12@test.com",
"BillingType": "其它",
"ProductCode": "rds"
}
]
}
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。