ALIYUN::MSE::NacosService is used to create a Nacos service.

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
GroupNameStringNoNoThe name of the group. None.
InstanceIdStringYesNoThe ID of the instance. None.
ServiceNameStringYesNoThe name of the service. None.
ProtectThresholdStringNoNoThe protection threshold. None.
EphemeralBooleanNoNoSpecifies whether to mark the instance as a temporary node. Valid values:
  • true
  • false
NamespaceIdStringNoNoThe 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
          }
        }
      }
    }