获取资源包详情与用量 | 大装置帮助中心
跳到主要内容

获取资源包详情与用量

接口描述

GET /v2/resourcepackages/{id} 获取资源包详情与用量

请求头(Request Header)

参考认证(authentication)

请求参数(Request Parameters)

名称位置类型必须描述
idpathstringtrue合同包详情ID

请求体(Request Body)

请求示例(Request Example)

curl --request GET \
--url https://finance.sensecoreapi.dev/boss/account/v2/resourcepackages/string \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'

响应参数(Response Parameters)

StatusMeaningDescriptionSchema
200OKOKResourcePackageDetails

响应示例(Response Example)

200 Response

{
"rp_details": [
{
"id": "string",
"contract_detail_id": "string",
"sku_id": "string",
"region": "string",
"zone": "string",
"total_number": 0,
"available_number": 0,
"billing_items": [
{
"contract_detail_id": "string",
"billing_item_id": "string",
"billing_item_key": "string",
"total_value": 0,
"value_unit": "string",
"available_value": 0,
"display_name": "string",
"available_value_pretty": "string",
"total_value_pretty": "string",
"used_value_pretty": "string"
}
],
"contract_id": "string",
"sku_name": "string",
"spu_id": "string",
"spu_name": "string",
"attributes": [
{
"display_name": "string",
"property_name": "string",
"value": "string",
"value_unit": "string"
}
],
"contract_start_time": "2019-08-24T14:15:22Z",
"contract_end_time": "2019-08-24T14:15:22Z",
"backend_catalog_code": "string",
"effective_state": "FUTURE",
"create_time": "2019-08-24T14:15:22Z",
"update_time": "2019-08-24T14:15:22Z",
"creator_name": "string",
"updater_name": "string",
"contract_name": "string"
}
]
}

数据结构(Schemas)

ResourcePackageDetail

名称类型必须限制描述
idstringfalsenoneID
contract_detail_idstringfalseread-onlynone
sku_idstringtruenonenone
regionstringtruenonenone
zonestringtruenonenone
total_numberinteger(int32)truenonenone
available_numberinteger(int32)truenonenone
billing_items[ResourcePackageDetailBillingItem]falsenonenone
contract_idstringfalseread-onlynone
sku_namestringtruenonenone
spu_idstringtruenonenone
spu_namestringtruenonenone
attributes[ResourcePackageSkuAttribute]falsenonenone
contract_start_timestring(date-time)falseread-onlynone
contract_end_timestring(date-time)falseread-onlynone
backend_catalog_codestringtruenonenone
effective_statestring(enum)falseread-onlynone
create_timestring(date-time)falseread-onlyoutput only
update_timestring(date-time)falseread-onlyoutput only
creator_namestringfalseread-onlynone
updater_namestringfalseread-onlynone
contract_namestringtruenonenone

effective_state Enumerated Values

枚举值
FUTURE
VALID
EXPIRED

ResourcePackageDetailBillingItem

名称类型必须限制描述
contract_detail_idstringfalsenone合同包详情ID
billing_item_idstringfalsenonenone
billing_item_keystringfalsenonenone
total_valueinteger(int64)falsenonenone
value_unitstringfalsenonenone
available_valueinteger(int64)falsenonenone
display_namestringfalseread-onlynone
available_value_prettystringfalseread-onlynone
total_value_prettystringfalseread-onlynone
used_value_prettystringfalseread-onlynone

ResourcePackageDetails

名称类型必须限制描述
rp_details[ResourcePackageDetail]falsenone资源包详情

ResourcePackageSkuAttribute

名称类型必须限制描述
display_namestringfalsenonenone
property_namestringfalsenonenone
valuestringfalsenonenone
value_unitstringfalsenonenone