Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::MSE::NacosService

Última atualização: Jun 27, 2026

Cria um serviço Nacos.

Sintaxe

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

Propriedades

Propriedade Tipo Obrigatória Editável Descrição Restrição
GroupName String Não Não Nome do grupo. Nenhuma.
InstanceId String Sim Não ID da instância. Nenhuma.
ServiceName String Sim Não Nome do serviço. Nenhuma.
ProtectThreshold String Não Não Limiar de proteção. Nenhuma.
Ephemeral Boolean Não Não Indica se a instância de serviço é um nó temporário. Valores válidos:
  • true
  • false
NamespaceId String Não Não ID do namespace. Nenhuma.

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

  • Formato YAML

    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
  • Formato 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
          }
        }
      }
    }