获取资源包详情与用量
获取资源包详情与用量
Path Parameters
id string required
合同包详情ID
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
rp_details object[]
资源包详情
id string
ID
sku_id string required
region string required
zone string required
total_number int32 required
available_number int32 required
billing_items object[]
contract_detail_id string
合同包详情ID
billing_item_id string
billing_item_key string
total_value int64
value_unit string
available_value int64
sku_name string required
spu_id string required
spu_name string required
attributes object[]
display_name string
property_name string
value string
value_unit string
backend_catalog_code string required
contract_name string required
{
"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": "2024-11-04T06:28:48.812Z",
"contract_end_time": "2024-11-04T06:28:48.812Z",
"backend_catalog_code": "string",
"effective_state": "FUTURE",
"create_time": "2024-11-04T06:28:48.812Z",
"update_time": "2024-11-04T06:28:48.812Z",
"creator_name": "string",
"updater_name": "string",
"contract_name": "string"
}
]
}
Default error response
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
@type string
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...