正在加载文档
最近更新时间: 2021-06-03 11:32:18
POST/v1/cm/price
| 名称 | 类型 | 位置 | 必须 | 描述 |
|---|---|---|---|---|
| infos | Enquiry[] | body | 是 | |
| 询价请求列表 |
|
| 名称 | 类型 | 描述 |
|---|---|---|
| region_id | string | |
| 地域 ID。您可以调用 DescribeRegions 查看最新的七牛云地域列表 |
| | cost_charge_type | string | 付费方式:
| | cost_charge_mode | string | 计费方式
| | cost_period_unit | string | 计费单位 Hour, Day, Week, Month, Year | | cost_period | integer | 计费周期 | | cost_period | integer | 计费周期 | | order_type | string | 订单类型
| | amount | integer | 数量 | | info_items | EnquiryItem[] | |
| 名称 | 类型 | 描述 |
|---|---|---|
| resource_type | string | 资源类型 |
| | resource_id | string | 资源 ID,升配询价时必填 | | expire_time | int64 | 过期时间,unix时间戳,升配询价时必填 | | item_info | EnquiryItemInfo | 资源价格相关参数 "ratio": 20 ,共享带宽 增强型95 必填 |
{
"infos": [
{
"region_id": "cn-shanghai",
"order_type": "create",
"amount": 1,
"cost_period_unit": "Day",
"cost_period": 1,
"cost_charge_type": "PostPaid",
"cost_charge_mode": "PayBy95",
"info_items": [
{
"resource_type": "common_bandwidth",
"item_info": {
"bandwidth": 200,
"ratio": 20
}
}
]
}
]
}| 名称 | 类型 | 描述 |
|---|---|---|
| instance_type | string | 实例规格,您可以通过以下接口查询 [实例/查看实例规格详情列表](/products/qvm/openapi-ecs/4-openapi-ecs-describe-instance-type) [实例/查看可用资源列表](/products/qvm/openapi-ecs/5-openapi-ecs-describe-available-resources) |
| 名称 | 类型 | 描述 |
|---|---|---|
| size | int | 云盘大小,单位 GB |
| category | int | |
| 云盘种类 |
资源池一取值范围:
资源池二取值范围:
| | performance_level | string |
云盘种类为 ESSD 云盘时必填,指定云盘的性能等级。取值范围:
|
| 名称 | 类型 | 描述 |
|---|---|---|
| bandwidth | int | 带宽大小,单位 Mbps |
| isp | string | |
| 线路类型 |
资源池一取值范围:
资源池二取值范围:
|
{
"infos": [
{
"region_id": "cn-qingdao",
"order_type": "create",
"amount": 1,
"cost_charge_mode": "PayByInstance",
"cost_charge_type": "PrePaid",
"cost_period": 1,
"cost_period_unit": "Month",
"info_items": [
{
"resource_type": "instance",
"item_info": {
"instance_type": "ecs.se1ne.2xlarge"
}
},
{
"resource_type": "disk",
"item_info": {
"category": "cloud_efficiency",
"size": 40
}
}
]
}
]
}| 名称 | 类型 | 描述 |
|---|---|---|
| request_id | string | 请求 ID |
| data | EnquiryResultItem[] | 价格信息 |
| 名称 | 类型 | 描述 |
|---|---|---|
| atomic_items | EnquiryAtomicItem[] | 计费单元列表 |
| 名称 | 类型 | 描述 |
|---|---|---|
| amount | int | 本计费单元实际计费数量 |
| price | float64 | 本计费单元总价格 |
| price_item | stirng | 计费单元 key |
{
"data": {
"infos": [
{
"amount": 1,
"info_items": [
{
"resource_type": "instance",
"item_info": {
"instance_type": "ecs.se1ne.2xlarge"
}
},
{
"resource_type": "disk",
"item_info": {
"category": "cloud_efficiency",
"size": 40
}
}
],
"atomic_items": [
{
"price_item": "qvm:instance:ecs.se1ne.2xlarge:for_trade:1month",
"product_item": "qvm:instance:ecs.se1ne.2xlarge",
"amount": 1,
"price": 1321.26,
"resource_type": "instance"
},
{
"price_item": "qvm:disk:cloud_efficiency:for_trade:1month",
"product_item": "qvm:disk:cloud_efficiency",
"amount": 4,
"price": 13.3,
"resource_type": "disk"
}
],
"cost_charge_type": "PrePaid",
"cost_charge_mode": "PayByInstance",
"cost_period_unit": "Month",
"cost_period": 1,
"cost_seconds": 0,
"order_type": "create",
"region_id": "cn-qingdao"
}
]
},
"request_id": "ScKvEWjlTG6Ba1kW"
}这篇文档有帮助吗?
正在加载反馈服务…