ALIYUN::MSE::NacosService

更新时间:
复制 MD 格式

Creates a Nacos service.

Syntax

{
  "Type": "ALIYUN::MSE::NacosService",
  "Properties": {
    "GroupName": String,
    "InstanceId": String,
    "ServiceName": String,
    "ProtectThreshold": String,
    "Ephemeral": Boolean,
    "NamespaceId": String
  }
}

Properties

Property Type Required Editable Description Constraint
GroupName String No No The name of the group. None.
InstanceId String Yes No The ID of the instance. None.
ServiceName String Yes No The name of the service. None.
ProtectThreshold String No No The protection threshold. None.
Ephemeral Boolean No No Specifies whether the service instance is a temporary node. Valid values:
  • true
  • false
NamespaceId String No No The ID of the namespace. None.

Return values

Fn::GetAtt

None.

Examples

  • YAML format

    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
  • JSON format

    {
      "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
          }
        }
      }
    }