全部產品
Search
文件中心

Resource Orchestration Service:ECI資源

更新時間:Mar 17, 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