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 | 否 | 是 | 环境类型。 | 取值:
|
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"
]
}
}
}
}