すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::MSE::NacosService

最終更新日:Jan 16, 2025

ALIYUN::MSE::NacosService は、Nacos サービスを作成するために使用されます。

構文

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

プロパティ

プロパティタイプ必須編集可能説明制約
GroupNameStringいいえいいえグループの名前。なし。
InstanceIdStringはいいいえインスタンスの ID。なし。
ServiceNameStringはいいいえサービスの名前。なし。
ProtectThresholdStringいいえいいえ保護しきい値。なし。
EphemeralBooleanいいえいいえインスタンスを一時ノードとしてマークするかどうかを指定します。有効な値:
  • true
  • false
NamespaceIdStringいいえいいえ名前空間の ID。なし。

戻り値

Fn::GetAtt

なし。

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