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
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 to mark the instance as a temporary node. | Valid values:
|
NamespaceId | String | No | No | The ID of the namespace. | None. |
Return values
Fn::GetAtt
None.
Examples
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 } } } }