查询弹性伸缩组详情
更新时间:2026-07-22
描述
查询伸缩组的详情。
OpenAPI Explorer
去调试
您可以在 OpenAPI Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1GET /v1/group/{groupId}
2Host: as.bj.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| groupId | String | 是 | URL参数 | 伸缩组ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| groupId | String | 伸缩组ID |
| groupName | String | 伸缩组名称 |
| region | String | 伸缩组Region |
| status | String | 伸缩组状态 |
| vpcInfo | VpcInfo | 伸缩组子网信息 |
| zoneInfo | List<Object> | 伸缩组可用区信息 |
| config | GroupConfig | 伸缩组边界配置 |
| keypairId | String | 创建实例时使用的密钥对ID,非必填 |
| keypairName | String | 创建实例时使用的密钥对名称,非必填 |
| keepImageLogin | Boolean | 是否使用镜像预置密码 |
| blb | List<BlbInfo> | 伸缩组绑定BLB,可绑定多个 |
| blbUnbindWaitTime | Integer | BLB等待时间 |
| nodeNum | Integer | 伸缩组节点 |
| createTime | String | 创建时间 |
| rdsIds | String | rds的id |
| scsIds | String | scs的id |
| expansionStrategy | String | 伸缩组扩容策略 |
| shrinkageStrategy | String | 伸缩组缩容策略 |
| relationTag | Boolean | 是否绑定标签 |
| tags | List<TagInfo> | 伸缩组绑定标签 |
| cmdConfig | CmdConfig | 扩缩容脚本配置 |
| bccNameConfig | BccNameConfig | 创建 bcc 名称相关配置 |
| eipConfig | EipConfig | 共享带宽EIP配置信息 |
| healthCheck | HealthCheckConfig | 健康检查相关配置 |
请求示例
Plain Text
1GET /v1/group/
2Host: as.bj.baidubce.com
3Authorization: authorization string
返回示例
Plain Text
1200 Success
2
3{
4 "groupId" : "asg-nJGIweB6",
5 "groupName" : "demoGroup",
6 "region" : "bj",
7 "status" : "RUNNING",
8 "vpcInfo" : {
9 "vpcName" : "test",
10 "vpcId" : "vpc-2upbek0c20j7",
11 "vpcUuid" : "c610c526-d6c3-4cc8-bc23-548a2b5664c4"
12 },
13 "zoneInfo" : [ {
14 "zone" : "zoneA",
15 "subnetId" : "sbn-4wgp88t13u8e",
16 "subnetUuid" : "c33ab5dd-2357-4f4e-b526-e3e2e4a8e2c2",
17 "subnetName" : "test",
18 "nodeCount" : 0
19 }, {
20 "zone" : "zoneD",
21 "subnetId" : "sbn-0f2c1331b651",
22 "subnetUuid" : "8df84b73-0c75-43c8-822d-c7df8cbd93ee",
23 "subnetName" : "test-qa",
24 "nodeCount" : 1
25 } ],
26 "config" : {
27 "minNodeNum" : 1,
28 "maxNodeNum" : 15,
29 "cooldownInSec" : 60,
30 "expectNum" : -1,
31 "initNum" : 1
32 },
33 "keypairId" : "",
34 "keypairName" : "",
35 "keepImageLogin" : false,
36 "blb" : [ {
37 "blbId" : "lb-d575b684",
38 "blbName" : "test_blb",
39 "blbType" : "Blb",
40 "sgIds" : null
41 } ],
42 "blbUnbindWaitTime" : 5,
43 "nodeNum" : 1,
44 "createTime" : "2026-07-02T02:36:01Z",
45 "rdsIds" : "",
46 "scsIds" : "",
47 "expansionStrategy" : "Priority",
48 "shrinkageStrategy" : "Earlier",
49 "relationTag" : true,
50 "tags" : [ {
51 "tagKey" : "默认项目",
52 "tagValue" : "test"
53 } ],
54 "cmdConfig" : {
55 "hasDecreaseCmd" : true,
56 "decCmdStrategy" : "Proceed",
57 "decCmdData" : "echo \"hello scale down cmd\"",
58 "decCmdTimeout" : 3600,
59 "decCmdManual" : true,
60 "hasIncreaseCmd" : true,
61 "incCmdStrategy" : "Proceed",
62 "incCmdData" : "echo \"hello scale up cmd\"",
63 "incCmdTimeout" : 3600,
64 "incCmdManual" : true
65 },
66 "bccNameConfig" : {
67 "bccName" : "demo-bcc",
68 "bccHostname" : "demo-bcc",
69 "autoSeqSuffix" : true,
70 "openHostnameDomain" : false
71 },
72 "eipConfig" : {
73 "eipGroupBindStrategy" : "BALANCE",
74 "eipGroupUnbindStrategy" : "UNBIND",
75 "eipGroupIdList" : [ ],
76 "increase" : {
77 "enabled" : false,
78 "strategy" : "IPPriority"
79 },
80 "decrease" : {
81 "enabled" : false
82 },
83 "bandwidth" : {
84 "max" : null,
85 "min" : null,
86 "standard" : null
87 }
88 },
89 "healthCheck" : {
90 "healthCheckInterval" : 15,
91 "graceTime" : 300
92 }
93}
评价此篇文章
