Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::MSE::ServiceSource

Última atualização: Jun 27, 2026

O recurso ALIYUN::MSE::ServiceSource cria uma origem de serviço Nacos.

Sintaxe

{
  "Type": "ALIYUN::MSE::ServiceSource",
  "Properties": {
    "GatewayUniqueId": String,
    "IngressOptions": Map,
    "GroupList": List,
    "Address": String,
    "PathList": List,
    "Source": String,
    "Name": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

GatewayUniqueId

String

Sim

Não

ID exclusivo do gateway.

Nenhuma.

IngressOptions

Map

Não

Não

Configurações de Ingress.

Para mais informações, consulte Propriedades de IngressOptions.

GroupList

List

Não

Não

Grupos aos quais o serviço pertence.

Máximo: 10.

Address

String

Não

Não

Endereço de registro. Se vazio, o sistema gera automaticamente com base na instância selecionada.

Nenhuma.

PathList

List

Não

Não

Caminhos raiz do serviço.

Máximo: 10.

source

String

Sim

Não

Origem do serviço.

Valores válidos:

  • K8s: cluster do Container Service for Kubernetes (ACK)

  • MSE: instância do Microservices Engine (MSE) Nacos

  • MSE_ZK: instância do ZooKeeper

  • EDAS: namespace do Enterprise Distributed Application Service (EDAS)

  • SAE: namespace do Serverless App Engine (SAE)

Name

String

Sim

Não

Nome do recurso.

  • Se Source for K8s, especifique o nome do cluster ACK.

  • Se Source for MSE, especifique o ID da instância Nacos.

  • Se Source for MSE_ZK, especifique o ID da instância ZooKeeper.

  • Se Source for EDAS, especifique o ID do namespace EDAS.

  • Se Source for SAE, especifique o ID do namespace SAE.

Sintaxe de IngressOptions

"IngressOptions": {
  "IngressClass": String,
  "EnableStatus": String,
  "WatchNamespace": String,
  "EnableIngress": String
}

Propriedades de IngressOptions

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

IngressClass

String

Não

Não

Monitoramento de classes de Ingress.

Nenhuma.

EnableStatus

String

Não

Não

Atualize o status do Ingress.

Valores válidos:

  • true

  • false

WatchNamespace

String

Não

Não

Namespace a ser monitorado.

Nenhuma.

EnableIngress

String

Não

Não

Ative o Ingress.

Valores válidos:

  • true

  • false

Valores de retorno

Fn::GetAtt

  • GatewayUniqueId: ID exclusivo do gateway.

  • Address: endereço de registro.

  • Id: ID da origem do serviço.

  • Name: nome da instância.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      GatewayUniqueId:
        Description: The unique ID of the gateway.
        Type: String
      Name:
        Description: 'The name.
          If Source=K8s, this parameter specifies the name of the ACK cluster.
          If Source=MSE, this parameter specifies the ID of the Nacos instance.
          If Source=MSE_ZK, this parameter specifies the ID of the ZooKeeper instance.
          If Source=EDAS, this parameter specifies the ID of the EDAS namespace.
          If Source=SAE, this parameter specifies the ID of the SAE namespace.'
        Type: String
      Source:
        AllowedValues:
        - K8s
        - MSE
        - MSE_ZK
        - EDAS
        - SAE
        Description: 'The service source. Valid values:
          K8s: ACK cluster
          MSE: MSE Nacos instance'
        Type: String
    Resources:
      ServiceSource:
        Properties:
          GatewayUniqueId:
            Ref: GatewayUniqueId
          Name:
            Ref: Name
          Source:
            Ref: Source
        Type: ALIYUN::MSE::ServiceSource
    Outputs:
      Address:
        Description: Registration Address. If not specified, it will be automatically
          generated based on the selected instance.
        Value:
          Fn::GetAtt:
          - ServiceSource
          - Address
      GatewayUniqueId:
        Description: The unique ID of the gateway.
        Value:
          Fn::GetAtt:
          - ServiceSource
          - GatewayUniqueId
      Id:
        Description: The ID of service source.
        Value:
          Fn::GetAtt:
          - ServiceSource
          - Id
      Name:
        Description: 'The name.
          If Type is set to K8s, this parameter specifies the name of the ACK cluster.
          If Type is set to NACOS, this parameter specifies the ID of the Nacos instance.'
        Value:
          Fn::GetAtt:
          - ServiceSource
          - Name
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "GatewayUniqueId": {
          "Description": "The unique ID of the gateway.",
          "Type": "String"
        },
        "Name": {
          "Description": "The name. If Source=K8s, this parameter specifies the name of the ACK cluster. If Source=MSE, this parameter specifies the ID of the Nacos instance. If Source=MSE_ZK, this parameter specifies the ID of the ZooKeeper instance. If Source=EDAS, this parameter specifies the ID of the EDAS namespace. If Source=SAE, this parameter specifies the ID of the SAE namespace.",
          "Type": "String"
        },
        "Source": {
          "AllowedValues": [
            "K8s",
            "MSE",
            "MSE_ZK",
            "EDAS",
            "SAE"
          ],
          "Description": "The service source. Valid values: K8s: ACK cluster MSE: MSE Nacos instance",
          "Type": "String"
        }
      },
      "Resources": {
        "ServiceSource": {
          "Properties": {
            "GatewayUniqueId": {
              "Ref": "GatewayUniqueId"
            },
            "Name": {
              "Ref": "Name"
            },
            "Source": {
              "Ref": "Source"
            }
          },
          "Type": "ALIYUN::MSE::ServiceSource"
        }
      },
      "Outputs": {
        "Address": {
          "Description": "Registration Address. If not specified, it will be automatically generated based on the selected instance.",
          "Value": {
            "Fn::GetAtt": [
              "ServiceSource",
              "Address"
            ]
          }
        },
        "GatewayUniqueId": {
          "Description": "The unique ID of the gateway.",
          "Value": {
            "Fn::GetAtt": [
              "ServiceSource",
              "GatewayUniqueId"
            ]
          }
        },
        "Id": {
          "Description": "The ID of service source.",
          "Value": {
            "Fn::GetAtt": [
              "ServiceSource",
              "Id"
            ]
          }
        },
        "Name": {
          "Description": "The name. If Type is set to K8s, this parameter specifies the name of the ACK cluster. If Type is set to NACOS, this parameter specifies the ID of the Nacos instance.",
          "Value": {
            "Fn::GetAtt": [
              "ServiceSource",
              "Name"
            ]
          }
        }
      }
    }