Tous les produits
Search
Centre de documentation

CloudOps Orchestration Service:ACS-ESS-EnableInstanceHealthCheck

Dernière mise à jour :Aug 11, 2026

Nom du modèle

ACS-ESS-EnableInstanceHealthCheck

Exécuter maintenant

Description du modèle

Active les contrôles d'intégrité des instances Elastic Compute Service (ECS) dans un groupe de mise à l'échelle.

Type de modèle

Automatisé

Propriétaire

Alibaba Cloud

Paramètres d'entrée

Paramètre

Description

Type

Obligatoire

Valeur par défaut

Limite

scalingGroupId

ID du groupe de mise à l'échelle.

String

Oui

regionId

ID de la région.

String

Non

{{ ACS::RegionId }}

OOSAssumeRole

Rôle Resource Access Management (RAM) assumé par le service CloudOps Orchestration Service (OOS).

String

Non

""

Paramètres de sortie

Aucun

Stratégie requise pour exécuter le modèle

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "ess:DescribeScalingGroups",
                "ess:ModifyScalingGroup"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

Références

ACS-ESS-EnableInstanceHealthCheck

Contenu du modèle

FormatVersion: OOS-2019-06-01
Description:
  en: Enables health checks for ECS instances in the scaling group
  zh-cn: 开启ESS伸缩组中的ECS实例的健康检查
  name-en: ACS-ESS-EnableInstanceHealthCheck
  name-zh-cn: 开启ESS伸缩组中的ECS实例的健康检查
  categories:
    - elastic_manage
Parameters:
  regionId:
    Type: String
    Label:
      en: RegionId
      zh-cn: 地域ID
    AssociationProperty: RegionId
    Default: '{{ ACS::RegionId }}'
  scalingGroupId:
    Label:
      en: ScalingGroupId
      zh-cn: 待修改伸缩组的ID
    Type: String
  OOSAssumeRole:
    Label:
      en: OOSAssumeRole
      zh-cn: OOS扮演的RAM角色
    Type: String
    Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
  - Name: checkForScalingGroupAvalible
    Action: 'ACS::CheckFor'
    Description:
      en: Check weather the Scaling Group is avaliable
      zh-cn: 检查伸缩组状态是否可用
    Properties:
      Service: ESS
      API: DescribeScalingGroups
      Parameters:
        RegionId: '{{ regionId }}'
        ScalingGroupId1: '{{ scalingGroupId }}'
      DesiredValues:
        - Active
        - Inactive
      PropertySelector: ScalingGroups.ScalingGroup[].LifecycleState
  - Name: modifyScalingGroup
    Action: 'ACS::ExecuteAPI'
    Description:
      en: Modify the health check status of the ECS flex group
      zh-cn: 修改ECS伸缩组的健康检查状态
    Properties:
      Service: ESS
      API: ModifyScalingGroup
      Parameters:
        RegionId: '{{ regionId }}'
        ScalingGroupId: '{{ scalingGroupId }}'
        HealthCheckType: 'ECS'