获取资源组视角账单统计列表 | 大装置帮助中心
跳到主要内容

获取资源组视角账单统计列表

接口描述

GET /v1/bills/aggBills/resourceGroup/billDetails 获取资源组视角账单统计列表

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

名称位置类型必须描述
filterquerystringfalse筛选条件
order_byquerystringfalse排序
page_sizequeryinteger(int32)false分页大小
page_tokenquerystringfalse分页页码
billing_account_idquerystringfalse计费账户ID

请求体(Request Body)

请求示例(Request Example)

curl --request GET \
--url https://finance.sensecoreapi.dev/boss/invoice/v1/bills/aggBills/resourceGroup/billDetails \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'

响应参数(Response Parameters)

StatusMeaningDescriptionSchema
200OKOKListResourceGroupViewBillDetailsResponse

响应示例(Response Example)

200 Response

{
"resource_group_view_bill_details": [
{
"id": "string",
"resource_owner_id": "string",
"resource_owner_name": "string",
"resource_group_id": "string",
"resource_group_name": "string",
"subscription_id": "string",
"billing_account_id": "string",
"bill_month": "string",
"spu_id": "string",
"spu_name": "string",
"amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"original_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"discount_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"coupon_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"voucher_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"paid_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"unpaid_amount": {
"currency_code": "string",
"units": 0,
"nanos": 0
},
"state": "BS_UNSPECIFIED",
"payment_model": "PM_UNSPECIFIED",
"create_time": "2019-08-24T14:15:22Z",
"sku_id": "string",
"sku_name": "string",
"quantity": 0,
"billing_item_property_name": "string",
"billing_item_display_name": "string",
"consume_type": "CT_UNSPECIFIED",
"consume_desc": "string",
"resource_name": "string",
"subscription_name": "string",
"resource_instance_id": "string",
"management_group_display_name": "string",
"billing_account_display_name": "string",
"management_group_uuid": "string",
"backend_catalog_id": "string",
"backend_catalog_displayname": "string",
"tenant_id": "string",
"tenant_type": "string"
}
],
"next_page_token": "string",
"total_size": 0,
"filter": {
"resource_owner": {
"property1": "string",
"property2": "string"
},
"subscription_owner": {
"property1": "string",
"property2": "string"
},
"billing_accounts": {
"property1": "string",
"property2": "string"
},
"boss_filters": [
{
"id": "string",
"display_name": "string",
"children": [
{}
]
}
]
}
}

数据结构(Schemas)

BillHourlyDetail

名称类型必须限制描述
idstringfalseread-only账单ID
resource_owner_idstringfalseread-only资源拥有者ID
resource_owner_namestringfalseread-only资源拥有者账户名
resource_group_idstringfalseread-only所属资源组ID
resource_group_namestringfalseread-only所属资源组名称
subscription_idstringfalseread-only所属订阅
billing_account_idstringfalseread-only计费账户
bill_monthstringfalseread-only帐期 yyyyMMDDhh-hh
spu_idstringfalseread-only产品ID
spu_namestringfalseread-only产品名称
amountMoneyfalsenone价格
original_amountMoneyfalsenone价格
discount_amountMoneyfalsenone价格
coupon_amountMoneyfalsenone价格
voucher_amountMoneyfalsenone价格
paid_amountMoneyfalsenone价格
unpaid_amountMoneyfalsenone价格
statestring(enum)falseread-only账单状态
payment_modelstring(enum)falseread-only付费模式 预付款/后付款
create_timestring(date-time)falseread-only创建时间
sku_idstringfalseread-onlySKU ID
sku_namestringfalseread-onlySKU 名称
quantityinteger(int64)falseread-only消费数量
billing_item_property_namestringfalseread-only计费项key
billing_item_display_namestringfalseread-only计费项名称
consume_typestring(enum)falseread-only消费类型
consume_descstringfalseread-only消费描述
resource_namestringfalseread-only资源名称
subscription_namestringfalseread-only所属订阅名称
resource_instance_idstringfalseread-only资源ID
management_group_display_namestringfalseread-only所属管理组
billing_account_display_namestringfalseread-only账户名称
management_group_uuidstringfalseread-only管理组uuid
backend_catalog_idstringfalseread-only所属类目ID
backend_catalog_displaynamestringfalseread-only所属类目名
tenant_idstringfalseread-only租户ID
tenant_typestringfalseread-only租户类型

state Enumerated Values

枚举值
BS_UNSPECIFIED
BS_PENDING
BS_DUE
BS_PAYING
BS_PAID
BS_FAILED
BS_WRITEOFF
BS_CANCELED
PM_UNSPECIFIED
PM_PREPAID
PM_POSTPAID
CT_UNSPECIFIED
CT_CONSUMPTION
CT_REFUND
CT_RECONCILIATION

BossFilter

名称类型必须限制描述
idstringfalsenone类目/SPU/SKU ID
display_namestringfalsenone类目/SPU/SKU 显示名
children[BossFilter]falsenone子级筛选数据 一般分三级 顶级为类目次级为SPU三级为SKU

FilterData

名称类型必须限制描述
resource_ownerobjectfalsenone资源实例所属用户 可选 MAP<id,display_name>
» additionalPropertiesstringfalsenonenone
subscription_ownerobjectfalsenone所属订阅 可选MAP<id,display_name>
» additionalPropertiesstringfalsenonenone
billing_accountsobjectfalsenone所属计费账户 可选 MAP<id,display_name>
» additionalPropertiesstringfalsenonenone
boss_filters[BossFilter]falsenoneboss数据层级筛选项

ListResourceGroupViewBillDetailsResponse

名称类型必须限制描述
resource_group_view_bill_details[BillHourlyDetail]falseread-only账单记录
next_page_tokenstringfalsenone分页页码
total_sizeinteger(int32)falsenone总记录
filterFilterDatafalsenone筛选数据

Money

名称类型必须限制描述
currency_codestringfalsenone货币代码, 参考ISO 4217
unitsinteger(int64)falsenone价格整数部分
nanosinteger(int32)falsenone价格小数部分