ALIYUN::MSE::NacosConfig

更新时间:
复制 MD 格式

Creates a Nacos configuration in a Microservices Engine (MSE) instance.

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

Property Type Required Editable Description Constraint
Group String Yes No The ID of the group. None.
Desc String No No The description of the configuration. None.
Type String No No The format of the configuration. Valid values: TEXT, JSON, and XML.
DataId String Yes No The data ID. None.
InstanceId String Yes No The ID of the instance. None.
Content String No No The content of the configuration. None.
BetaIps String No No The IP addresses for the beta release of the configuration. None.
NamespaceId String No No The ID of the namespace. None.
Tags String No No The tags of the configuration. None.
AppName String No No The 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"
          }
        }
      }
    }