全部产品
Search
文档中心

资源编排:ECI资源

更新时间:Mar 16, 2026

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ECI::ContainerGroup::ContainerGroupId

查询ECI实例容器组的信息。

  • RegionId:地域ID(默认为资源栈所属地域)。

  • VSwitchId:实例所属的虚拟交换机 ID。

  • ZoneId:实例所属的可用区。

  • SecurityGroupId:实例所属的安全组 ID。

  • ComputeCategory:算力类别。

  • Status:实例状态。取值范围:

    • Pending:启动中。

    • Running:运行中。

    • Succeeded:运行成功。

    • Failed:运行失败。

    • Scheduling:创建中。

    • ScheduleFailed:创建失败。

    • Restarting:重启中。

    • Updating:更新中。

    • Terminating:终止中。

    • Expired:过期。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ECIContainerGroupId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECI::ContainerGroup::ContainerGroupId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "Status": "Running"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ECIContainerGroupId:
    Type: String
    AssociationProperty: ALIYUN::ECI::ContainerGroup::ContainerGroupId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      Status: Running