All Products
Search
Document Center

Resource Orchestration Service:ECI Resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values available for Elastic Container Instance (ECI) resources in ROS templates.

AssociationProperty values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::ECI::ContainerGroup::ContainerGroupId

Queries ECI container group information.

  • RegionId: the region ID. Default: the region where the stack resides.

  • VSwitchId: the ID of the virtual switch that hosts the instance.

  • ZoneId: the zone where the instance resides.

  • SecurityGroupId: the ID of the security group that hosts the instance.

  • ComputeCategory: the computing power category.

  • Status: the instance status. Valid values:

    • Pending: starting up.

    • Running: running.

    • The operation was successful.

    • Failed: the instance failed to run.

    • Scheduling: being created.

    • ScheduleFailed: creation failed.

    • Restarting: restarting.

    • Updating: updating.

    • Terminating: terminating.

    • Expired: the instance has expired.

Example code

JSON example:

{
  "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 example:

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