All Products
Search
Document Center

Resource Orchestration Service:CR resources

Last Updated:Jun 23, 2026

The following table describes the AssociationProperty values and AssociationPropertyMetadata for Container Registry (CR) resources in Resource Orchestration Service (ROS).

AssociationProperty values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::CR::Instance::InstanceId

Query information about Container Registry Enterprise Edition instances.

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

  • InstanceStatus: the instance status. Valid values:

    • PENDING: initializing.

    • INIT_ERROR: initialization failed.

    • STARTING: starting.

    • RUNNING: running.

    • STOPPING: stopping.

    • STOPPED: stopped.

    • DELETING: deleting.

    • DELETED: deleted.

  • Example code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RegionId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::RegionId"
        },
        "CRInstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::CR::Instance::InstanceId",
          "AssociationPropertyMetadata": {
            "RegionId": "${RegionId}",
            "InstanceStatus": "RUNNING"
          }
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RegionId:
        Type: String
        AssociationProperty: ALIYUN::ECS::RegionId
      CRInstanceId:
        Type: String
        AssociationProperty: ALIYUN::CR::Instance::InstanceId
        AssociationPropertyMetadata:
          RegionId: ${RegionId}
          InstanceStatus: RUNNING

ALIYUN::CR::NameSpace::Name

Query information about Container Registry Enterprise Edition namespaces.

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

  • NamespaceStatus: the namespace status. Valid values:

    • NORMAL: normal.

    • DELETING: deleting.

  • InstanceId: the instance ID.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "CRNameSpace": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CR::NameSpace::Name",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "NamespaceStatus": "NORMAL"
      }
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  CRNameSpace:
    Type: String
    AssociationProperty: ALIYUN::CR::NameSpace::Name
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      NamespaceStatus: NORMAL

ALIYUN::CR::Repository::RepoName

Query information about Container Registry Enterprise Edition repositories.

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

  • RepoStatus: the repository status. Valid values:

    • NORMAL: normal.

    • DELETING: deleting.

    • DELETED: deleted.

    • ALL: all repository statuses.

  • InstanceId: the instance ID.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "CRRepository": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CR::Repository::RepoName",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "RepoStatus": "NORMAL"
      }
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  CRRepository:
    Type: String
    AssociationProperty: ALIYUN::CR::Repository::RepoName
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      RepoStatus: NORMAL

ALIYUN::CR::Repository::Tag

Query information about Container Registry Enterprise Edition image tags.

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

  • RepoId: the repository ID.

  • InstanceId: the instance ID.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "CRRepositoryTag": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::CR::Repository::Tag",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  CRRepositoryTag:
    Type: String
    AssociationProperty: ALIYUN::CR::Repository::Tag
    AssociationPropertyMetadata:
      RegionId: ${RegionId}