获取资源包列表
获取资源包列表
Query Parameters
sku_id string[]
规格ID
order_by string
排序
page_size int32
分页大小
page_token string
分页
action string
version string
spu_id string
商品ID
rid_name string
资源ID/名称
billing_model enum
Possible values: [BM_UNSPECIFIED
, BM_USAGE
, BM_MONTHLY
, BM_YEARLY
]
计费模式
Responses
- 200
- default
OK
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
resource_packages 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
next_page_token string
total_size int32
page_number int32
page_size int32
{
"resource_packages": [
{
"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.810Z",
"contract_end_time": "2024-11-04T06:28:48.810Z",
"backend_catalog_code": "string",
"effective_state": "FUTURE",
"create_time": "2024-11-04T06:28:48.810Z",
"update_time": "2024-11-04T06:28:48.810Z",
"creator_name": "string",
"updater_name": "string",
"contract_name": "string"
}
],
"next_page_token": "string",
"total_size": 0,
"page_number": 0,
"page_size": 0
}
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...