查询智能购买组详情-九游平台
功能介绍
查询指定智能购买组的详细信息。
调试
您可以在中调试该接口。
uri
get /v2/{domain_id}/auto-launch-groups/{auto_launch_group_id}
参数 |
是否必选 |
描述 |
---|---|---|
domain_id |
是 |
租户域id。 |
auto_launch_group_id |
是 |
智能购买组id。 |
请求消息
无
响应消息
响应参数如表2所示。
参数 |
参数类型 |
描述 |
---|---|---|
auto_launch_group |
object |
智能购买组详细信息,详情请参见表3。 |
参数 |
参数类型 |
描述 |
---|---|---|
name |
string |
智能购买组名称。 |
type |
string |
请求类型。
|
status |
string |
智能购买组的运行状态。
|
task_state |
string |
智能购买组的任务状态。
|
target_capacity |
integer |
智能购买组目标容量。 实例数量或者cpu个数目标容量大于等于stable_capacity。竞价实例的容量为满配容量减去stable_capacity。 |
stable_capacity |
integer |
按需实例目标容量。 目标容量指实例数量或cpu个数,必须小于等于target_capacity,智能购买组中可以没有按需实例。 |
current_capacity |
integer |
当前已经购买成功的总算力。 |
current_stable_capacity |
integer |
当前已经购买成功的按需算力。 |
excess_fulfilled_capacity_behavior |
string |
超过目标容量或目标容量减少时的实例中断行为。
|
instances_behavior_with_expiration |
string |
请求到期时正在运行实例的中断行为。
|
valid_since |
string |
请求开始时间,格式为yyyy-mm-ddthh:mm:ssz。 |
valid_until |
string |
请求结束时间,格式为yyyy-mm-ddthh:mm:ssz。 |
region_specs |
object |
智能购买组在各个区域的配置,详情请参见表4。 |
allocation_strategy |
string |
实例分配策略。
|
spot_price |
double |
用户愿意为竞价实例每小时支付的最高价格。如果overrides中没有提供价格,可以使用该价格。 |
created_at |
string |
智能购买组创建时间。 |
参数 |
参数类型 |
描述 |
---|---|---|
region_id |
string |
区域id。 |
expect_target_capacity |
integer |
区域内期望的总算力容量。 |
expect_stable_capacity |
integer |
区域内期望的稳定算力容量。 |
launch_template_config |
object |
启动模板配置,详情请参见表5。 |
参数 |
参数类型 |
描述 |
---|---|---|
launch_template |
object |
实例的启动模板,详情请参见表6。 |
overrides |
array of objects |
实例的详细信息,详情请参见表7。 |
参数 |
参数类型 |
描述 |
---|---|---|
launch_template_id |
string |
实例的启动模板id,唯一标识一个启动模板。 |
version |
string |
启动模板版本号。 |
参数 |
参数类型 |
描述 |
---|---|---|
availability_zone_id |
string |
可用区id |
flavor_id |
string |
实例规格id |
spot_price |
double |
用户愿意为竞价实例每小时支付的最高价格。 |
priority |
integer |
优先级。数值越小,优先级越高,优先购买。 |
weighted_capacity |
double |
实例规格的权重。 |
请求示例
查询指定的智能购买组详情信息。
get https://{endpoint}/v2/{domain_id}/auto-launch-groups/{auto_launch_group_id}
响应示例
{ "auto_launch_group": { "name": "test", "type": "maintain", "status": "active", "task_state": "fulfilled", "target_capacity": 10, "stable_capacity": 5, "current_capacity": 10, "current_stable_capacity": 5, "excess_fulfilled_capacity_behavior": "terminate", "instances_behavior_with_expiration": "terminate", "valid_since": "2022-11-04t15:58:13z", "valid_until": "2022-11-06t15:58:13z", "region_specs": [ { "region_id": "region1", "expect_target_capacity": 10, "expect_stable_capacity": 5, "launch_template_config": { "launch_template": { "launch_template_id": "c516c350-7091-4490-9338-47ddb90360f2", "version": "1.0" }, "overrides": [ { "availability_zone_id": "az1", "flavor_id": "s3.large.2", "spot_price": 2.0, "priority": 4, "weighted_capacity": 6 }, { "availability_zone_id": "az2", "flavor_id": "s3.large.2", "spot_price": 2.0, "priority": 4, "weighted_capacity": 12 } ] } } ], "allocation_strategy": "lowest_price", "spot_price": 0.5, "created_at": "2022-11-03t15:58:13z" } }
返回值
请参考通用请求返回值。
错误码
请参考。
相关文档
意见反馈
文档内容是否对您有帮助?
如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨