全部产品
Search
文档中心

资源编排:ALIYUN::CMS2::AddonRelease

更新时间:Jul 07, 2026

ALIYUN::CMS2::AddonRelease类型用于安装接入组件。

语法

{
  "Type": "ALIYUN::CMS2::AddonRelease",
  "Properties": {
    "AddonVersion": String,
    "AddonName": String,
    "PolicyId": String,
    "EntityRules": Map,
    "EnvType": String,
    "Lang": String,
    "ParentAddonReleaseId": String,
    "ReleaseName": String,
    "Values": Map,
    "Workspace": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AddonName

String

插件名称。

AddonVersion

String

插件版本。

PolicyId

String

集成策略 ID。

EntityRules

Map

实体发现规则模型。

更多信息,请参考EntityRules属性

EnvType

String

环境类型。

取值:

  • CS :

    容器环境

  • ECS :

    ECS 环境

  • Cloud :

    云服务环境

Lang

String

插件的语言。

ParentAddonReleaseId

String

父插件发布版本 ID。

ReleaseName

String

插件发布版本名称。

Values

Map

插件发布版本的值。

Workspace

String

插件发布版本的工作空间。

EntityRules语法

"EntityRules": {
  "FieldRules": List,
  "EntityTypes": List,
  "Annotations": List,
  "ResourceGroupId": String,
  "RegionIds": List,
  "IpMatchRule": List,
  "Labels": List,
  "InstanceIds": List,
  "Tags": List
}

EntityRules属性

属性名称

类型

必须

允许更新

描述

约束

Annotations

List

注解匹配集合。

更多信息,请参考Annotations属性

EntityTypes

List

实体类型集合。

FieldRules

List

属性匹配规则。

更多信息,请参考FieldRules属性

InstanceIds

List

实例 ID 集合。

IpMatchRule

List

IP 匹配规则集合。

更多信息,请参考IpMatchRule属性

Labels

List

标签匹配集合。

更多信息,请参考Labels属性

RegionIds

List

地域 ID 集合。

ResourceGroupId

String

资源组 ID。

Tags

List

通过标签发现服务。

更多信息,请参考Tags属性

FieldRules语法

"FieldRules": [
  {
    "Op": String,
    "FieldValues": List,
    "FieldKey": String
  }
]

FieldRules属性

属性名称

类型

必须

允许更新

描述

约束

FieldKey

String

属性的键。

FieldValues

List

属性的值集合。

Op

String

操作。

Annotations语法

"Annotations": [
  {
    "Op": String,
    "TagKey": String,
    "TagValues": List
  }
]

Annotations属性

属性名称

类型

必须

允许更新

描述

约束

Op

String

操作。

TagKey

String

注解的键。

TagValues

List

注解的值集合。

IpMatchRule语法

"IpMatchRule": [
  {
    "IpFieldKey": String,
    "IpCIDR": String
  }
]

IpMatchRule属性

属性名称

类型

必须

允许更新

描述

约束

IpCIDR

String

IP 的 CIDR 网段。

IpFieldKey

String

IP 字段的键。

Labels语法

"Labels": [
  {
    "Op": String,
    "TagKey": String,
    "TagValues": List
  }
]

Labels属性

属性名称

类型

必须

允许更新

描述

约束

Op

String

操作。

TagKey

String

标签的键。

TagValues

List

标签的值集合。

Tags语法

"Tags": [
  {
    "Op": String,
    "TagKey": String,
    "TagValues": List
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Op

String

操作。

TagKey

String

标记的键。

TagValues

List

标记的值集合。

返回值

Fn::GetAtt

ReleaseName:插件发布版本名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AddonName:
    Description:
      en: The name of the add-on.
    Required: true
    Type: String
  AddonVersion:
    Description:
      en: The version of the add-on.
    Required: true
    Type: String
  EntityRules:
    AssociationPropertyMetadata:
      Parameters:
        Annotations:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              AssociationPropertyMetadata:
                Parameters:
                  Op:
                    Description:
                      en: Operation.
                    Required: true
                    Type: String
                  TagKey:
                    Description:
                      en: The key of the annotation.
                    Required: true
                    Type: String
                  TagValues:
                    AssociationProperty: List[Parameter]
                    AssociationPropertyMetadata:
                      Parameter:
                        Description:
                          en: The value of the annotation.
                        Required: false
                        Type: String
                    Description:
                      en: The value sets of the annotation.
                    Required: true
                    Type: Json
              Description:
                en: Annotation details.
              Required: false
              Type: Json
          Description:
            en: Annotation matching sets.
          Required: false
          Type: Json
        EntityTypes:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              Description:
                en: Entity type.
              Required: false
              Type: String
          Description:
            en: Entity type sets.
          Required: false
          Type: Json
        FieldRules:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              AssociationPropertyMetadata:
                Parameters:
                  FieldKey:
                    Description:
                      en: The key of the attribute.
                    Required: true
                    Type: String
                  FieldValues:
                    AssociationProperty: List[Parameter]
                    AssociationPropertyMetadata:
                      Parameter:
                        Description:
                          en: The value of the attribute.
                        Required: false
                        Type: String
                    Description:
                      en: The value sets of the attribute.
                    Required: true
                    Type: Json
                  Op:
                    Description:
                      en: Operation.
                    Required: true
                    Type: String
              Description:
                en: Attribute details.
              Required: false
              Type: Json
          Description:
            en: Attribute matching rules.
          Required: false
          Type: Json
        InstanceIds:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              Description:
                en: Instance ID.
              Required: false
              Type: String
          Description:
            en: Instance ID sets.
          Required: false
          Type: Json
        IpMatchRule:
          AssociationProperty: List[Parameters]
          AssociationPropertyMetadata:
            Parameters:
              IpCIDR:
                Description:
                  en: The CIDR of the IP.
                Required: false
                Type: String
              IpFieldKey:
                Description:
                  en: The key of the IP field.
                Required: false
                Type: String
          Description:
            en: IP matching rule sets.
          Required: false
          Type: Json
        Labels:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              AssociationPropertyMetadata:
                Parameters:
                  Op:
                    Description:
                      en: Operation.
                    Required: true
                    Type: String
                  TagKey:
                    Description:
                      en: The key of the label.
                    Required: true
                    Type: String
                  TagValues:
                    AssociationProperty: List[Parameter]
                    AssociationPropertyMetadata:
                      Parameter:
                        Description:
                          en: The value of the label.
                        Required: false
                        Type: String
                    Description:
                      en: The value sets of the label.
                    Required: true
                    Type: Json
              Description:
                en: Label details.
              Required: false
              Type: Json
          Description:
            en: Label matching sets.
          Required: false
          Type: Json
        RegionIds:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            Parameter:
              Description:
                en: Region ID.
              Required: false
              Type: String
          Description:
            en: Region ID sets.
          Required: false
          Type: Json
        ResourceGroupId:
          AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
          Description:
            en: Resource group ID.
          Required: false
          Type: String
        Tags:
          AssociationProperty: List[Parameter]
          AssociationPropertyMetadata:
            ListMetadata:
              Order:
                - Key
                - Value
            Parameter:
              AssociationPropertyMetadata:
                Parameters:
                  Op:
                    Description:
                      en: Operation.
                    Required: true
                    Type: String
                  TagKey:
                    Description:
                      en: The key of the tag.
                    Required: true
                    Type: String
                  TagValues:
                    AssociationProperty: List[Parameter]
                    AssociationPropertyMetadata:
                      Parameter:
                        Description:
                          en: The value of the tag.
                        Required: false
                        Type: String
                    Description:
                      en: The value sets of the tag.
                    Required: true
                    Type: Json
              Description:
                en: Discovery information using tags.
              Required: false
              Type: Json
          Description:
            en: Discover services through tags.
          Required: false
          Type: Json
    Description:
      en: Entity discovery rules model.
    Required: false
    Type: Json
  EnvType:
    AllowedValues:
      - CS
      - ECS
      - Cloud
    Description:
      en: The environment type.
    Required: false
    Type: String
  Lang:
    Description:
      en: The language of the add-on.
    Required: false
    Type: String
  ParentAddonReleaseId:
    Description:
      en: The ID of the parent add-on release.
    Required: false
    Type: String
  PolicyId:
    Description:
      en: The ID of the integration policy.
    Required: true
    Type: String
  ReleaseName:
    Description:
      en: The name of the add-on release.
    Required: false
    Type: String
  Values:
    Description:
      en: The values of the add-on release.
    Required: false
    Type: Json
  Workspace:
    Description:
      en: The workspace of the add-on release.
    Required: false
    Type: String
Resources:
  AddonRelease:
    Properties:
      AddonName:
        Ref: AddonName
      AddonVersion:
        Ref: AddonVersion
      EntityRules:
        Ref: EntityRules
      EnvType:
        Ref: EnvType
      Lang:
        Ref: Lang
      ParentAddonReleaseId:
        Ref: ParentAddonReleaseId
      PolicyId:
        Ref: PolicyId
      ReleaseName:
        Ref: ReleaseName
      Values:
        Ref: Values
      Workspace:
        Ref: Workspace
    Type: ALIYUN::CMS2::AddonRelease
Outputs:
  ReleaseName:
    Description: The name of the add-on release.
    Value:
      Fn::GetAtt:
        - AddonRelease
        - ReleaseName
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AddonVersion": {
      "Type": "String",
      "Description": {
        "en": "The version of the add-on."
      },
      "Required": true
    },
    "ParentAddonReleaseId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the parent add-on release."
      },
      "Required": false
    },
    "Values": {
      "Type": "Json",
      "Description": {
        "en": "The values of the add-on release."
      },
      "Required": false
    },
    "AddonName": {
      "Type": "String",
      "Description": {
        "en": "The name of the add-on."
      },
      "Required": true
    },
    "Lang": {
      "Type": "String",
      "Description": {
        "en": "The language of the add-on."
      },
      "Required": false
    },
    "ReleaseName": {
      "Type": "String",
      "Description": {
        "en": "The name of the add-on release."
      },
      "Required": false
    },
    "EntityRules": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "FieldRules": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "AssociationPropertyMetadata": {
                  "Parameters": {
                    "Op": {
                      "Type": "String",
                      "Description": {
                        "en": "Operation."
                      },
                      "Required": true
                    },
                    "FieldValues": {
                      "AssociationPropertyMetadata": {
                        "Parameter": {
                          "Type": "String",
                          "Description": {
                            "en": "The value of the attribute."
                          },
                          "Required": false
                        }
                      },
                      "Type": "Json",
                      "AssociationProperty": "List[Parameter]",
                      "Description": {
                        "en": "The value sets of the attribute."
                      },
                      "Required": true
                    },
                    "FieldKey": {
                      "Type": "String",
                      "Description": {
                        "en": "The key of the attribute."
                      },
                      "Required": true
                    }
                  }
                },
                "Type": "Json",
                "Description": {
                  "en": "Attribute details."
                },
                "Required": false
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Attribute matching rules."
            },
            "Required": false
          },
          "EntityTypes": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "Type": "String",
                "Description": {
                  "en": "Entity type."
                },
                "Required": false
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Entity type sets."
            },
            "Required": false
          },
          "Annotations": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "AssociationPropertyMetadata": {
                  "Parameters": {
                    "Op": {
                      "Type": "String",
                      "Description": {
                        "en": "Operation."
                      },
                      "Required": true
                    },
                    "TagKey": {
                      "Type": "String",
                      "Description": {
                        "en": "The key of the annotation."
                      },
                      "Required": true
                    },
                    "TagValues": {
                      "AssociationPropertyMetadata": {
                        "Parameter": {
                          "Type": "String",
                          "Description": {
                            "en": "The value of the annotation."
                          },
                          "Required": false
                        }
                      },
                      "Type": "Json",
                      "AssociationProperty": "List[Parameter]",
                      "Description": {
                        "en": "The value sets of the annotation."
                      },
                      "Required": true
                    }
                  }
                },
                "Type": "Json",
                "Description": {
                  "en": "Annotation details."
                },
                "Required": false
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Annotation matching sets."
            },
            "Required": false
          },
          "ResourceGroupId": {
            "Type": "String",
            "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
            "Description": {
              "en": "Resource group ID."
            },
            "Required": false
          },
          "RegionIds": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "Type": "String",
                "Description": {
                  "en": "Region ID."
                },
                "Required": false
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Region ID sets."
            },
            "Required": false
          },
          "IpMatchRule": {
            "AssociationPropertyMetadata": {
              "Parameters": {
                "IpFieldKey": {
                  "Type": "String",
                  "Description": {
                    "en": "The key of the IP field."
                  },
                  "Required": false
                },
                "IpCIDR": {
                  "Type": "String",
                  "Description": {
                    "en": "The CIDR of the IP."
                  },
                  "Required": false
                }
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameters]",
            "Description": {
              "en": "IP matching rule sets."
            },
            "Required": false
          },
          "Labels": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "AssociationPropertyMetadata": {
                  "Parameters": {
                    "Op": {
                      "Type": "String",
                      "Description": {
                        "en": "Operation."
                      },
                      "Required": true
                    },
                    "TagKey": {
                      "Type": "String",
                      "Description": {
                        "en": "The key of the label."
                      },
                      "Required": true
                    },
                    "TagValues": {
                      "AssociationPropertyMetadata": {
                        "Parameter": {
                          "Type": "String",
                          "Description": {
                            "en": "The value of the label."
                          },
                          "Required": false
                        }
                      },
                      "Type": "Json",
                      "AssociationProperty": "List[Parameter]",
                      "Description": {
                        "en": "The value sets of the label."
                      },
                      "Required": true
                    }
                  }
                },
                "Type": "Json",
                "Description": {
                  "en": "Label details."
                },
                "Required": false
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Label matching sets."
            },
            "Required": false
          },
          "InstanceIds": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "Type": "String",
                "Description": {
                  "en": "Instance ID."
                },
                "Required": false
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Instance ID sets."
            },
            "Required": false
          },
          "Tags": {
            "AssociationPropertyMetadata": {
              "Parameter": {
                "AssociationPropertyMetadata": {
                  "Parameters": {
                    "Op": {
                      "Type": "String",
                      "Description": {
                        "en": "Operation."
                      },
                      "Required": true
                    },
                    "TagKey": {
                      "Type": "String",
                      "Description": {
                        "en": "The key of the tag."
                      },
                      "Required": true
                    },
                    "TagValues": {
                      "AssociationPropertyMetadata": {
                        "Parameter": {
                          "Type": "String",
                          "Description": {
                            "en": "The value of the tag."
                          },
                          "Required": false
                        }
                      },
                      "Type": "Json",
                      "AssociationProperty": "List[Parameter]",
                      "Description": {
                        "en": "The value sets of the tag."
                      },
                      "Required": true
                    }
                  }
                },
                "Type": "Json",
                "Description": {
                  "en": "Discovery information using tags."
                },
                "Required": false
              },
              "ListMetadata": {
                "Order": [
                  "Key",
                  "Value"
                ]
              }
            },
            "Type": "Json",
            "AssociationProperty": "List[Parameter]",
            "Description": {
              "en": "Discover services through tags."
            },
            "Required": false
          }
        }
      },
      "Type": "Json",
      "Description": {
        "en": "Entity discovery rules model."
      },
      "Required": false
    },
    "PolicyId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the integration policy."
      },
      "Required": true
    },
    "EnvType": {
      "Type": "String",
      "Description": {
        "en": "The environment type."
      },
      "AllowedValues": [
        "CS",
        "ECS",
        "Cloud"
      ],
      "Required": false
    },
    "Workspace": {
      "Type": "String",
      "Description": {
        "en": "The workspace of the add-on release."
      },
      "Required": false
    }
  },
  "Resources": {
    "AddonRelease": {
      "Type": "ALIYUN::CMS2::AddonRelease",
      "Properties": {
        "AddonVersion": {
          "Ref": "AddonVersion"
        },
        "ParentAddonReleaseId": {
          "Ref": "ParentAddonReleaseId"
        },
        "Values": {
          "Ref": "Values"
        },
        "AddonName": {
          "Ref": "AddonName"
        },
        "Lang": {
          "Ref": "Lang"
        },
        "ReleaseName": {
          "Ref": "ReleaseName"
        },
        "EntityRules": {
          "Ref": "EntityRules"
        },
        "PolicyId": {
          "Ref": "PolicyId"
        },
        "EnvType": {
          "Ref": "EnvType"
        },
        "Workspace": {
          "Ref": "Workspace"
        }
      }
    }
  },
  "Outputs": {
    "ReleaseName": {
      "Description": "The name of the add-on release.",
      "Value": {
        "Fn::GetAtt": [
          "AddonRelease",
          "ReleaseName"
        ]
      }
    }
  }
}