ALIYUN::MSE::NacosConfig is used to create a Nacos configuration.

Syntax

{
  "Type": "ALIYUN::MSE::NacosConfig",
  "Properties": {
    "Group": String,
    "Desc": String,
    "Type": String,
    "DataId": String,
    "InstanceId": String,
    "Content": String,
    "BetaIps": String,
    "NamespaceId": String,
    "Tags": String,
    "AppName": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
GroupStringYesNoThe ID of the group. None.
DescStringNoNoThe description of the configuration. None.
TypeStringNoNoThe format of the configuration. Supported formats include TEXT, JSON, and XML.
DataIdStringYesNoThe data ID. None.
InstanceIdStringYesNoThe ID of the instance. None.
ContentStringNoNoThe content of the configuration. None.
BetaIpsStringNoNoThe list of IP addresses where the beta release of the configuration is performed. None.
NamespaceIdStringNoNoThe ID of the namespace. None.
TagsStringNoNoThe tags of the configuration. None.
AppNameStringNoNoThe name of the application. None.

Return values

Fn::GetAtt

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      Group:
        Type: String
        Description: The ID of the group.
      DataId:
        Type: String
        Description: The data ID.
      InstanceId:
        Type: String
        Description: The ID of the instance.
    Resources:
      NacosConfig:
        Type: ALIYUN::MSE::NacosConfig
        Properties:
          Group:
            Ref: Group
          DataId:
            Ref: DataId
          InstanceId:
            Ref: InstanceId
          Type: JSON
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "Group": {
          "Type": "String",
          "Description": "The ID of the group."
        },
        "DataId": {
          "Type": "String",
          "Description": "The data ID."
        },
        "InstanceId": {
          "Type": "String",
          "Description": "The ID of the instance."
        }
      },
      "Resources": {
        "NacosConfig": {
          "Type": "ALIYUN::MSE::NacosConfig",
          "Properties": {
            "Group": {
              "Ref": "Group"
            },
            "DataId": {
              "Ref": "DataId"
            },
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "Type": "JSON"
          }
        }
      }
    }