如果您需要查看伸縮組的基本資料、伸縮組內執行個體、伸縮配置等資訊,您可以調用API DescribeScalingGroups查詢該伸縮組。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
請求參數
|
名稱 |
類型 |
是否必選 |
樣本值 |
描述 |
| Action | String | 是 | DescribeScalingGroups | 系統規定參數。取值:DescribeScalingGroups。 |
| RegionId | String | 是 | cn-qingdao | 伸縮組所屬地區的ID。 |
| PageNumber | Integer | 否 | 1 | 伸縮組列表的頁碼。起始值:1。 預設值:1。 |
| PageSize | Integer | 否 | 10 | 分頁查詢時設定的每頁行數。最大值:50。 預設值:10。 |
| ScalingGroupName | String | 否 | scalinggroup**** | 伸縮組的名稱。 |
| ScalingGroupName.1 | String | 否 | scalinggroup**** | ScalingGroupName.1為待查詢的伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.2 | String | 否 | scalinggroup**** | ScalingGroupName.2為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.3 | String | 否 | scalinggroup**** | ScalingGroupName.3為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.4 | String | 否 | scalinggroup**** | ScalingGroupName.4為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.5 | String | 否 | scalinggroup**** | ScalingGroupName.5為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.6 | String | 否 | scalinggroup**** | ScalingGroupName.6為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.7 | String | 否 | scalinggroup**** | ScalingGroupName.7為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.8 | String | 否 | scalinggroup**** | ScalingGroupName.8為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.9 | String | 否 | scalinggroup**** | ScalingGroupName.9為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.10 | String | 否 | scalinggroup**** | ScalingGroupName.10為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.11 | String | 否 | scalinggroup**** | ScalingGroupName.11為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.12 | String | 否 | scalinggroup**** | ScalingGroupName.12為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.13 | String | 否 | scalinggroup**** | ScalingGroupName.13為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.14 | String | 否 | scalinggroup**** | ScalingGroupName.14為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.15 | String | 否 | scalinggroup**** | ScalingGroupName.15為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.16 | String | 否 | scalinggroup**** | ScalingGroupName.16為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.17 | String | 否 | scalinggroup**** | ScalingGroupName.17為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.18 | String | 否 | scalinggroup**** | ScalingGroupName.18為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.19 | String | 否 | scalinggroup**** | ScalingGroupName.19為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| ScalingGroupName.20 | String | 否 | scalinggroup**** | ScalingGroupName.20為待查詢伸縮組的名稱。查詢結果會忽略失效的伸縮組名稱,並且不報錯。 |
| GroupType | String | 否 | ECS | 伸縮組管理的執行個體類型。取值範圍:
|
| ScalingGroupId.N | String | 否 | asg-bp14wlu85wrpchm0**** | ScalingGroupId.N為待查詢伸縮組的ID,N的取值範圍:1~20。查詢結果會忽略失效的伸縮組ID,並且不報錯。 |
| ResourceGroupId | String | 否 | rg-123**** | 待查詢的伸縮組所屬的資源群組ID。 說明 當沒有伸縮組屬於當前資源群組下時,查詢結果為空白,並且不會報錯。 |
| Tag.N.Key | String | 否 | Department | 伸縮組的標籤鍵。 |
| Tag.N.Value | String | 否 | Finance | 伸縮組的標籤值。 |
返回資料
名稱 |
類型 |
樣本值 |
描述 |
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | 請求ID。 |
| PageNumber | Integer | 1 | 當前頁碼。 |
| PageSize | Integer | 10 | 每頁行數。 |
| TotalCount | Integer | 1 | 伸縮組的總數。 |
| ScalingGroups | Array of ScalingGroup | 伸縮組資訊的集合。 |
|
| ScalingGroup | |||
| VpcId | String | vpc-bp1vwnn14rqpyiczj**** | 伸縮組所屬VPC的ID。 |
| CreationTime | String | 2014-08-14T10:58Z | 伸縮組的建立時間。 |
| TotalInstanceCount | Integer | 1 | 伸縮組內所有ECS執行個體的數量。 |
| ScalingGroupName | String | dyrSuvBOtO1dEdIlIbp**** | 伸縮組的名稱。 |
| SpotInstancePools | Integer | 5 | 指定可用執行個體規格的個數,伸縮組將按成本最低的多個規格均衡建立搶佔式執行個體。可能值:0~10。 當 |
| StoppedCapacity | Integer | 1 | 伸縮組中處於節省停機效果的執行個體數量。 |
| OnDemandPercentageAboveBaseCapacity | Integer | 20 | 伸縮組滿足最小按量執行個體數(OnDemandBaseCapacity)要求後,超出的執行個體中按量執行個體應占的比例。可能值:0~100。 當 |
| ModificationTime | String | 2014-08-14T10:58Z | 修改時間。 |
| MinSize | Integer | 1 | 伸縮組內ECS執行個體台數的最小值。 |
| ScalingGroupId | String | asg-bp14wlu85wrpchm0**** | 伸縮組的ID。 |
| CompensateWithOnDemand | Boolean | true | 當
|
| ScalingPolicy | String | recycle | 指定伸縮組的回收模式。可能值:
關於被移出執行個體的動作,請參見RemoveInstances。 |
| RemovingWaitCapacity | Integer | 1 | 伸縮組中處於移除掛起狀態的ECS執行個體的數量。 |
| ActiveCapacity | Integer | 1 | 已成功加入伸縮組,並正常啟動並執行ECS執行個體數量。 |
| OnDemandBaseCapacity | Integer | 30 | 已有伸縮組內所需要的按量執行個體數的最小值,可能值:0~1000。即當伸縮組內按量執行個體個數少於該最小值時,系統將優先建立按量執行個體。 當 |
| ProtectedCapacity | Integer | 1 | 伸縮組中處於保護中狀態的ECS執行個體的數量。 |
| HealthCheckType | String | ECS | 伸縮組的健全狀態檢查方式。可能值:
|
| LifecycleState | String | Active | 伸縮組的狀態資訊。可能值:
|
| GroupDeletionProtection | Boolean | true | 是否開啟了伸縮組刪除保護。可能值:
|
| ActiveScalingConfigurationId | String | asc-bp1et2qekq3ojr33**** | 伸縮組內生效的伸縮配置的ID。 |
| GroupType | String | ECS | 伸縮組管理的執行個體類型。 |
| MultiAZPolicy | String | PRIORITY | 多可用性區域伸縮組ECS執行個體擴縮容策略。可能值:
|
| RemovingCapacity | Integer | 0 | 正在移出伸縮組的ECS執行個體的數量。 |
| PendingWaitCapacity | Integer | 1 | 伸縮組中處於加入掛起狀態的ECS執行個體的數量。 |
| StandbyCapacity | Integer | 1 | 伸縮組中處於備用狀態的執行個體數量。 |
| PendingCapacity | Integer | 0 | 正在加入伸縮組,還未完成相關配置的ECS執行個體的數量。 |
| LaunchTemplateId | String | lt-m5e3ofjr1zn1aw7**** | 伸縮組使用的執行個體啟動模板的ID。 |
| TotalCapacity | Integer | 1 | 當伸縮組設定了執行個體規格權重,表示伸縮組內所有ECS執行個體的加權容量總和。否則,表示伸縮組內所有ECS執行個體的數量。 |
| DesiredCapacity | Integer | 5 | 伸縮組內ECS執行個體的期望數量,伸縮組會自動將ECS執行個體數量維持在期望執行個體數。 |
| SpotInstanceRemedy | Boolean | true | 是否開啟補齊搶佔式執行個體。開啟後,當收到搶佔式執行個體將被回收的系統訊息時,伸縮組將嘗試建立新的執行個體,替換掉將被回收的搶佔式執行個體。 |
| LaunchTemplateVersion | String | Default | 伸縮組使用的執行個體啟動模板的版本。 |
| RegionId | String | cn-qingdao | 伸縮組所屬的地區的ID。 |
| VSwitchId | String | vsw-bp1whw2u46cn8zubm**** | 伸縮組關聯虛擬交換器的ID。 |
| MaxSize | Integer | 2 | 伸縮組內ECS執行個體台數的最大值。 |
| DefaultCooldown | Integer | 60 | 伸縮組預設的冷卻時間。冷卻時間內,該伸縮組不執行其他的伸縮活動,僅針對CloudMonitor警示任務觸發的伸縮活動有效。 |
| VServerGroups | Array of VServerGroup | 後端伺服器組列表。 |
|
| VServerGroup | |||
| LoadBalancerId | String | 147b46d767c-cn-qingdao-cm5**** | 後端伺服器組所屬的Server Load Balancer執行個體的ID。 |
| VServerGroupAttributes | Array of VServerGroupAttribute | 後端伺服器組屬性。 |
|
| VServerGroupAttribute | |||
| VServerGroupId | String | rsp-bp12bjrny**** | 後端伺服器組的ID。 |
| Weight | Integer | 1 | 後端伺服器組的權重。 |
| Port | Integer | 22 | Server Load Balancer執行個體對外提供服務的連接埠號碼。 |
| LaunchTemplateOverrides | Array of LaunchTemplateOverride | 擴充啟動模板的執行個體規格資訊。 |
|
| LaunchTemplateOverride | |||
| WeightedCapacity | Integer | 4 | 指定執行個體規格的權重,即執行個體規格的單台執行個體在伸縮組中表示的容量大小。權重越大,滿足期望容量所需的本執行個體規格的執行個體數量越少。 |
| InstanceType | String | ecs.c5.xlarge | 指定的執行個體規格,會覆蓋啟動模板中的執行個體規格。 |
| SpotPriceLimit | Float | 0.025 | 本參數用於指定執行個體啟動模板覆蓋規格(即 說明 僅當 LaunchTemplateId參數指定了啟動模板時,該參數才生效。 |
| AlbServerGroups | Array of AlbServerGroup | ALB伺服器組的相關資訊集合。 |
|
| AlbServerGroup | |||
| AlbServerGroupId | String | sgp-ddwb0y0g6y9bjm**** | ALB伺服器組的ID。 |
| Weight | Integer | 100 | Auto Scaling將ECS執行個體添加到ALB伺服器組後,ECS執行個體作為後端伺服器的權重。 |
| Port | Integer | 80 | Auto Scaling將ECS執行個體添加到ALB伺服器組後,ECS執行個體使用的連接埠號碼。 |
| ServerGroups | Array of ServerGroup | 負載平衡伺服器組的相關資訊集合。 說明 您可以通過此參數擷取伸縮組關聯的ALB類型服務組和NLB類型伺服器組的相關資訊集合。 |
|
| ServerGroup | |||
| ServerGroupId | String | sgp-i9ouakeaerr***** | 伺服器組的ID。 |
| Type | String | ALB | 伺服器群組類型。可能值:
|
| Weight | Integer | 100 | Auto Scaling將ECS執行個體添加到伺服器組後,ECS執行個體作為後端伺服器的權重。 |
| Port | Integer | 80 | Auto Scaling將ECS執行個體添加到伺服器組後,ECS執行個體使用的連接埠號碼。 |
| RemovalPolicies | Array of String | OldestScalingConfiguration | ECS執行個體移出伸縮組的策略的集合。可能值:
|
| DBInstanceIds | Array of String | rm-bp15556qzebg1**** | 伸縮組關聯RDS執行個體的ID。 |
| LoadBalancerIds | Array of String | lb-bp19byhscefk3x0li**** | 伸縮組關聯的Server Load Balancer執行個體的ID列表。 |
| VSwitchIds | Array of String | vsw-bp1whw2u46cn8zubm**** | 伸縮組關聯虛擬交換器的ID集合。如果您使用了VSwitchIds參數,VSwitchId參數將被忽略。 |
| SuspendedProcesses | Array of String | ScaleIn | 暫停中的流程,如果沒有,則傳回值為空白。可能值:
|
| SystemSuspended | Boolean | true | Auto Scaling是否停止執行伸縮組內的伸縮活動。可能值:
|
| MonitorGroupId | String | 1497**** | 伸縮組關聯的CloudMonitor應用分組ID。 |
| AzBalance | Boolean | false | 伸縮組的容量是否在多個可用性區域間均衡分布,可能值:
|
| AllocationStrategy | String | priority | 容量分配策略,決定了伸縮組如何選擇可用的執行個體規格類型滿足容量。容量分布策略同時對按量和搶佔式容量生效。可能值:
|
| SpotAllocationStrategy | String | lowestPrice | 搶佔式容量分布策略。您可以通過該參數單獨指定搶佔式容量的分布策略(僅當
|
| MaxInstanceLifetime | Integer | null | 執行個體在伸縮組中存活的最大時間。單位為秒。 可能值:0或 預設值:null。 說明 ECI類型的伸縮組或停機不收費的伸縮組不支援設定該參數。 |
| CustomPolicyARN | String | acs:fc:cn-zhangjiakou:16145688****:services/ess_custom_terminate_policy.LATEST/functions/ess_custom_terminate_policy_name | 自訂縮容策略Function函數ARN。僅當RemovalPolicies配置第一個移除策略為CustomPolicy時生效。 |
| InitCapacity | Integer | 0 | 伸縮組中處於執行個體擴容前初始化狀態的執行個體數量。 |
| ResourceGroupId | String | rg-123**** | 伸縮組所屬的資源群組ID。 |
| LoadBalancerConfigs | Array of LoadBalancerConfig | 負載平衡CLB(原SLB)配置列表。 |
|
| LoadBalancerConfig | |||
| LoadBalancerId | String | 147b46d767c-cn-qingdao-cm5**** | 負載平衡CLB(原SLB)執行個體的ID。 |
| Weight | Integer | 10 | Auto Scaling將ECS執行個體添加到負載平衡CLB(原SLB)伺服器組後,ECS執行個體作為後端伺服器的權重。權重越高,ECS執行個體將被分配到越多的訪問請求。如果權重為0,則ECS執行個體不會收到訪問請求。 取值範圍:0~100。 |
| EnableDesiredCapacity | Boolean | false | 是否啟用期望執行個體數標識。可能值:
|
| Tags | Array of Tag | 伸縮組的標籤資訊集合。 |
|
| Tag | |||
| TagKey | String | Department | 伸縮組的標籤鍵。 |
| TagValue | String | Finance | 伸縮組的標籤值。 |
| Propagate | Boolean | false | 標識該標籤是否為可傳播標籤,可能值:
預設值:false。 |
| HealthCheckTypes | Array of String | ECS | 伸縮組的健全狀態檢查方式。可能值:
|
| DBInstances | Array of DBInstance | 伸縮組關聯的資料庫列表。 |
|
| DBInstance | |||
| DBInstanceId | String | rm-m5eqju85s45mu0*** | 資料庫執行個體ID。 |
| Type | String | RDS | 資料庫類型。可能值:
|
| SecurityGroupIds | Array of String | sg-uf65zt66cf2a0q47*** | 伸縮組是否會從資料庫安全性群組白名單移除關聯資料庫列表中的安全性群組。當CreateScalingGroup介面中的
|
| SpotCapacity | Integer | 0 | 伸縮組中搶佔式執行個體的數量。 |
| StopInstanceTimeout | Integer | 60 | 縮容流程中等待ECS執行個體停機成功的逾時時間,單位為秒。 |
| CapacityOptions | Object | 容量選項。 |
|
| OnDemandBaseCapacity | Integer | 0 | 已有伸縮組內所需要的按量執行個體數的最小值,當伸縮組內按量執行個體個數少於該值時,系統將優先建立按量執行個體。可能值:0~1000。 |
| OnDemandPercentageAboveBaseCapacity | Integer | 0 | 伸縮組滿足最小按量執行個體數 |
| CompensateWithOnDemand | Boolean | true | 當
|
| SpotAutoReplaceOnDemand | Boolean | false | 當開啟
|
樣本
請求樣本
http(s)://ess.aliyuncs.com/?Action=DescribeScalingGroups
&RegionId=cn-qingdao
&PageNumber=1
&PageSize=10
&ScalingGroupName=scalinggroup****
&ScalingGroupName.1=scalinggroup****
&ScalingGroupName.2=scalinggroup****
&ScalingGroupName.3=scalinggroup****
&ScalingGroupName.4=scalinggroup****
&ScalingGroupName.5=scalinggroup****
&ScalingGroupName.6=scalinggroup****
&ScalingGroupName.7=scalinggroup****
&ScalingGroupName.8=scalinggroup****
&ScalingGroupName.9=scalinggroup****
&ScalingGroupName.10=scalinggroup****
&ScalingGroupName.11=scalinggroup****
&ScalingGroupName.12=scalinggroup****
&ScalingGroupName.13=scalinggroup****
&ScalingGroupName.14=scalinggroup****
&ScalingGroupName.15=scalinggroup****
&ScalingGroupName.16=scalinggroup****
&ScalingGroupName.17=scalinggroup****
&ScalingGroupName.18=scalinggroup****
&ScalingGroupName.19=scalinggroup****
&ScalingGroupName.20=scalinggroup****
&GroupType=ECS
&ScalingGroupId=["asg-bp14wlu85wrpchm0****"]
&ResourceGroupId=rg-123****
&Tag=[{"Key":"Department","Value":"Finance"}]
&公用請求參數
正常返回樣本
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeScalingGroupsResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<TotalCount>1</TotalCount>
<ScalingGroups>
<VpcId>vpc-bp1vwnn14rqpyiczj****</VpcId>
<CreationTime>2014-08-14T10:58Z</CreationTime>
<TotalInstanceCount>1</TotalInstanceCount>
<ScalingGroupName>dyrSuvBOtO1dEdIlIbp****</ScalingGroupName>
<SpotInstancePools>5</SpotInstancePools>
<StoppedCapacity>1</StoppedCapacity>
<OnDemandPercentageAboveBaseCapacity>20</OnDemandPercentageAboveBaseCapacity>
<ModificationTime>2014-08-14T10:58Z</ModificationTime>
<MinSize>1</MinSize>
<ScalingGroupId>asg-bp14wlu85wrpchm0****</ScalingGroupId>
<CompensateWithOnDemand>true</CompensateWithOnDemand>
<ScalingPolicy>recycle</ScalingPolicy>
<RemovingWaitCapacity>1</RemovingWaitCapacity>
<ActiveCapacity>1</ActiveCapacity>
<OnDemandBaseCapacity>30</OnDemandBaseCapacity>
<ProtectedCapacity>1</ProtectedCapacity>
<HealthCheckType>ECS</HealthCheckType>
<LifecycleState>Active</LifecycleState>
<GroupDeletionProtection>true</GroupDeletionProtection>
<ActiveScalingConfigurationId>asc-bp1et2qekq3ojr33****</ActiveScalingConfigurationId>
<GroupType>ECS</GroupType>
<MultiAZPolicy>PRIORITY</MultiAZPolicy>
<RemovingCapacity>0</RemovingCapacity>
<PendingWaitCapacity>1</PendingWaitCapacity>
<StandbyCapacity>1</StandbyCapacity>
<PendingCapacity>0</PendingCapacity>
<LaunchTemplateId>lt-m5e3ofjr1zn1aw7****</LaunchTemplateId>
<TotalCapacity>1</TotalCapacity>
<DesiredCapacity>5</DesiredCapacity>
<SpotInstanceRemedy>true</SpotInstanceRemedy>
<LaunchTemplateVersion>Default</LaunchTemplateVersion>
<RegionId>cn-qingdao</RegionId>
<VSwitchId>vsw-bp1whw2u46cn8zubm****</VSwitchId>
<MaxSize>2</MaxSize>
<DefaultCooldown>60</DefaultCooldown>
<VServerGroups>
<LoadBalancerId>147b46d767c-cn-qingdao-cm5****</LoadBalancerId>
<VServerGroupAttributes>
<VServerGroupId>rsp-bp12bjrny****</VServerGroupId>
<Weight>1</Weight>
<Port>22</Port>
</VServerGroupAttributes>
</VServerGroups>
<LaunchTemplateOverrides>
<WeightedCapacity>4</WeightedCapacity>
<InstanceType>ecs.c5.xlarge</InstanceType>
<SpotPriceLimit>0.025</SpotPriceLimit>
</LaunchTemplateOverrides>
<AlbServerGroups>
<AlbServerGroupId>sgp-ddwb0y0g6y9bjm****</AlbServerGroupId>
<Weight>100</Weight>
<Port>80</Port>
</AlbServerGroups>
<ServerGroups>
<ServerGroupId>sgp-i9ouakeaerr*****</ServerGroupId>
<Type>ALB</Type>
<Weight>100</Weight>
<Port>80</Port>
</ServerGroups>
<RemovalPolicies>OldestScalingConfiguration</RemovalPolicies>
<DBInstanceIds>rm-bp15556qzebg1****</DBInstanceIds>
<LoadBalancerIds>lb-bp19byhscefk3x0li****</LoadBalancerIds>
<VSwitchIds>vsw-bp1whw2u46cn8zubm****</VSwitchIds>
<SuspendedProcesses>ScaleIn</SuspendedProcesses>
<SystemSuspended>true</SystemSuspended>
<MonitorGroupId>1497****</MonitorGroupId>
<AzBalance>false</AzBalance>
<AllocationStrategy>priority</AllocationStrategy>
<SpotAllocationStrategy>lowestPrice</SpotAllocationStrategy>
<CustomPolicyARN>acs:fc:cn-zhangjiakou:16145688****:services/ess_custom_terminate_policy.LATEST/functions/ess_custom_terminate_policy_name</CustomPolicyARN>
<InitCapacity>0</InitCapacity>
<ResourceGroupId>rg-123****</ResourceGroupId>
<LoadBalancerConfigs>
<LoadBalancerId>147b46d767c-cn-qingdao-cm5****</LoadBalancerId>
<Weight>10</Weight>
</LoadBalancerConfigs>
<EnableDesiredCapacity>false</EnableDesiredCapacity>
<Tags>
<TagKey>Department</TagKey>
<TagValue>Finance</TagValue>
<Propagate>false</Propagate>
</Tags>
<HealthCheckTypes>ECS</HealthCheckTypes>
<DBInstances>
<DBInstanceId>rm-m5eqju85s45mu0***</DBInstanceId>
<Type>RDS</Type>
<SecurityGroupIds>sg-uf65zt66cf2a0q47***</SecurityGroupIds>
</DBInstances>
<SpotCapacity>0</SpotCapacity>
<StopInstanceTimeout>60</StopInstanceTimeout>
<CapacityOptions>
<OnDemandBaseCapacity>0</OnDemandBaseCapacity>
<OnDemandPercentageAboveBaseCapacity>0</OnDemandPercentageAboveBaseCapacity>
<CompensateWithOnDemand>true</CompensateWithOnDemand>
<SpotAutoReplaceOnDemand>false</SpotAutoReplaceOnDemand>
</CapacityOptions>
</ScalingGroups>
</DescribeScalingGroupsResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"PageNumber" : 1,
"PageSize" : 10,
"TotalCount" : 1,
"ScalingGroups" : [ {
"VpcId" : "vpc-bp1vwnn14rqpyiczj****",
"CreationTime" : "2014-08-14T10:58Z",
"TotalInstanceCount" : 1,
"ScalingGroupName" : "dyrSuvBOtO1dEdIlIbp****",
"SpotInstancePools" : 5,
"StoppedCapacity" : 1,
"OnDemandPercentageAboveBaseCapacity" : 20,
"ModificationTime" : "2014-08-14T10:58Z",
"MinSize" : 1,
"ScalingGroupId" : "asg-bp14wlu85wrpchm0****",
"CompensateWithOnDemand" : true,
"ScalingPolicy" : "recycle",
"RemovingWaitCapacity" : 1,
"ActiveCapacity" : 1,
"OnDemandBaseCapacity" : 30,
"ProtectedCapacity" : 1,
"HealthCheckType" : "ECS",
"LifecycleState" : "Active",
"GroupDeletionProtection" : true,
"ActiveScalingConfigurationId" : "asc-bp1et2qekq3ojr33****",
"GroupType" : "ECS",
"MultiAZPolicy" : "PRIORITY",
"RemovingCapacity" : 0,
"PendingWaitCapacity" : 1,
"StandbyCapacity" : 1,
"PendingCapacity" : 0,
"LaunchTemplateId" : "lt-m5e3ofjr1zn1aw7****",
"TotalCapacity" : 1,
"DesiredCapacity" : 5,
"SpotInstanceRemedy" : true,
"LaunchTemplateVersion" : "Default",
"RegionId" : "cn-qingdao",
"VSwitchId" : "vsw-bp1whw2u46cn8zubm****",
"MaxSize" : 2,
"DefaultCooldown" : 60,
"VServerGroups" : [ {
"LoadBalancerId" : "147b46d767c-cn-qingdao-cm5****",
"VServerGroupAttributes" : [ {
"VServerGroupId" : "rsp-bp12bjrny****",
"Weight" : 1,
"Port" : 22
} ]
} ],
"LaunchTemplateOverrides" : [ {
"WeightedCapacity" : 4,
"InstanceType" : "ecs.c5.xlarge",
"SpotPriceLimit" : 0.025
} ],
"AlbServerGroups" : [ {
"AlbServerGroupId" : "sgp-ddwb0y0g6y9bjm****",
"Weight" : 100,
"Port" : 80
} ],
"ServerGroups" : [ {
"ServerGroupId" : "sgp-i9ouakeaerr*****",
"Type" : "ALB",
"Weight" : 100,
"Port" : 80
} ],
"RemovalPolicies" : [ "OldestScalingConfiguration" ],
"DBInstanceIds" : [ "rm-bp15556qzebg1****" ],
"LoadBalancerIds" : [ "lb-bp19byhscefk3x0li****" ],
"VSwitchIds" : [ "vsw-bp1whw2u46cn8zubm****" ],
"SuspendedProcesses" : [ "ScaleIn" ],
"SystemSuspended" : true,
"MonitorGroupId" : "1497****",
"AzBalance" : false,
"AllocationStrategy" : "priority",
"SpotAllocationStrategy" : "lowestPrice",
"CustomPolicyARN" : "acs:fc:cn-zhangjiakou:16145688****:services/ess_custom_terminate_policy.LATEST/functions/ess_custom_terminate_policy_name",
"InitCapacity" : 0,
"ResourceGroupId" : "rg-123****",
"LoadBalancerConfigs" : [ {
"LoadBalancerId" : "147b46d767c-cn-qingdao-cm5****",
"Weight" : 10
} ],
"EnableDesiredCapacity" : false,
"Tags" : [ {
"TagKey" : "Department",
"TagValue" : "Finance",
"Propagate" : false
} ],
"HealthCheckTypes" : [ "ECS" ],
"DBInstances" : [ {
"DBInstanceId" : "rm-m5eqju85s45mu0***",
"Type" : "RDS",
"SecurityGroupIds" : [ "sg-uf65zt66cf2a0q47***" ]
} ],
"SpotCapacity" : 0,
"StopInstanceTimeout" : 60,
"CapacityOptions" : {
"OnDemandBaseCapacity" : 0,
"OnDemandPercentageAboveBaseCapacity" : 0,
"CompensateWithOnDemand" : true,
"SpotAutoReplaceOnDemand" : false
}
} ]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。