ALIYUN::MSE::NacosService类型用于创建Nacos服务。
语法
{
  "Type": "ALIYUN::MSE::NacosService",
  "Properties": {
    "GroupName": String,
    "InstanceId": String,
    "ServiceName": String,
    "ProtectThreshold": String,
    "Ephemeral": Boolean,
    "NamespaceId": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
|---|---|---|---|---|---|
| GroupName | String | 否 | 否 | 分组名称。 | 无 | 
| InstanceId | String | 是 | 否 | 实例ID。 | 无 | 
| ServiceName | String | 是 | 否 | 服务名称。 | 无 | 
| ProtectThreshold | String | 否 | 否 | 保护阈值。 | 无 | 
| Ephemeral | Boolean | 否 | 否 | 是否临时节点标志。 | 取值: 
 | 
| NamespaceId | String | 否 | 否 | 命名空间ID。 | 无 | 
返回值
Fn::GetAtt
无
示例
- JSON格式- { "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "InstanceId": { "Type": "String", "Description": "The ID of the instance." }, "ServiceName": { "Type": "String", "Description": "The name of the service." } }, "Resources": { "NacosService": { "Type": "ALIYUN::MSE::NacosService", "Properties": { "InstanceId": { "Ref": "InstanceId" }, "ServiceName": { "Ref": "ServiceName" }, "Ephemeral": false } } } }