全部产品
Search
文档中心

资源编排:ACR资源

更新时间:Mar 16, 2026

AssociationProperty取值

说明

对应的AssociationPropertyMetadata

ALIYUN::ACR::Namespace::Name

查询容器镜像命名空间。

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

  • Status:命名空间状态,取值:

    • NORMAL:正常。

    • DELETING:删除中。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ACRNamespace": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ACR::Namespace::Name",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}",
        "Status": "NORMAL"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ACRNamespace:
    Type: String
    AssociationProperty: ALIYUN::ACR::Namespace::Name
    AssociationPropertyMetadata:
      RegionId: ${RegionId}
      Status: NORMAL

ALIYUN::ACR::Repo::RepoAttribute

查询个人版容器镜像仓库。

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

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ACRRepo": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ACR::Repo::RepoAttribute",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ACRRepo:
    Type: String
    AssociationProperty: ALIYUN::ACR::Repo::RepoAttribute
    AssociationPropertyMetadata:
      RegionId: ${RegionId}

ALIYUN::ACR::Repo::Tag

查询容器镜像标签信息。

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

  • RepoName:镜像仓库名称。

  • RepoNamespace:命名空间名称。

示例代码

JSON示例:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "ACRTag": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ACR::Repo::Tag",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML示例:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  ACRTag:
    Type: String
    AssociationProperty: ALIYUN::ACR::Repo::Tag
    AssociationPropertyMetadata:
      RegionId: ${RegionId}