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

Resource Orchestration Service:ALIYUN::GA::EndpointGroup

最終更新日:Jan 16, 2025

ALIYUN::GA::EndpointGroup は、エンドポイントグループを作成するために使用されます。

構文

{
  "Type": "ALIYUN::GA::EndpointGroup",
  "Properties": {
    "HealthCheckIntervalSeconds": Integer,
    "EndpointGroupRegion": String,
    "TrafficPercentage": Integer,
    "Description": String,
    "HealthCheckPath": String,
    "HealthCheckProtocol": String,
    "ThresholdCount": Integer,
    "HealthCheckPort": Integer,
    "AcceleratorId": String,
    "EndpointConfigurations": List,
    "Name": String,
    "ListenerId": String
    "HealthCheckEnabled": Boolean,
    "EndpointGroupType": String,
    "EndpointRequestProtocol": String
  }
}

プロパティ

Propertyタイプ必須編集可能説明制約
HealthCheckIntervalSecondsIntegerNoYesヘルスチェックの実行間隔。単位:秒。
EndpointGroupRegionStringYesNoエンドポイントグループが配置されているリージョンのID。なし
TrafficPercentageIntegerNoYesリスナーが複数のエンドポイントグループに関連付けられている場合のエンドポイントグループの重み。なし
DescriptionStringNoYesエンドポイントグループの説明。なし
HealthCheckPathStringNoYesヘルスチェックリクエストの送信先パス。なし
HealthCheckProtocolStringNoYesヘルスチェックリクエストの送信に使用するプロトコル。有効な値:
  • tcp: TCPプロトコル。
  • http: HTTPプロトコル。
  • https: HTTPSプロトコル。
ThresholdCountIntegerNoYesエンドポイントが異常と見なされるまでに到達する必要がある、連続したヘルスチェックの失敗回数。なし
HealthCheckPortIntegerNoYesヘルスチェックに使用されるポート。なし
AcceleratorIdStringYesNoクエリ対象のGlobal Accelerator(GA)インスタンスのID。なし
EndpointConfigurationsListYesYesエンドポイント。最大 4 つのエンドポイントを指定できます。

詳細については、EndpointConfigurations プロパティをご参照ください。

NameStringNoYesエンドポイントグループの名前。なし
ListenerIdStringYesNoリスナーのID。なし
HealthCheckEnabledBooleanNoYesヘルスチェック機能を有効にするかどうかを指定します。有効な値:
  • true: はい。 これがデフォルト値です。
  • false: いいえ。
EndpointGroupTypeStringNoNoエンドポイントグループのタイプ。有効な値:
  • default: デフォルトのエンドポイントグループ。 これがデフォルト値です。
  • virtual: 仮想エンドポイントグループ。
説明 HTTPリスナーと HTTPS リスナーのみが仮想エンドポイントグループをサポートします。
EndpointRequestProtocolStringNoYesバックエンドサービスで使用されるプロトコル。有効な値:
  • HTTP: これがデフォルト値です。
  • HTTPS
説明
  • このプロパティは、エンドポイントグループに関連付けられているリスナーが HTTP または HTTPS プロトコルを使用している場合にのみ設定できます。
  • HTTPリスナーの場合、バックエンドサービスで使用されるプロトコルは HTTP である必要があります。

EndpointConfigurations 構文

"EndpointConfigurations": [
  {
    "Type": String,
    "Endpoint": String,
    "Weight": Integer,
    "EnableClientIPPreservation": Boolean,
    "EnableProxyProtocol": Boolean
  }
]

EndpointConfigurations プロパティ

Propertyタイプ必須編集可能説明制約
TypeStringYesYesエンドポイントのタイプ。有効な値:
  • Domain: カスタムドメイン名。
  • Ip: カスタム IP アドレス。
EndpointStringYesYesエンドポイントの IP アドレスまたはドメイン名。なし
WeightIntegerYesYesエンドポイントの重み。なし
EnableClientIPPreservationBooleanNoYesTCP Option Address(TOA)モジュールを使用してクライアント IP アドレスを保持するかどうかを指定します。有効な値:
  • true: はい。
  • false: いいえ。 これがデフォルト値です。
EnableProxyProtocolBooleanNoYesTCP TOA モジュールを使用して、エンドポイントにアクセスするクライアントの IP アドレスを取得して保持するかどうかを指定します。なし

レスポンスパラメータ

Fn::GetAtt

EndpointGroupId: エンドポイントグループのID。

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AcceleratorId:
        Type: String
        Description: エンドポイントグループを関連付ける Global Accelerator インスタンスの ID。 // The ID of the Global Accelerator instance with which the endpoint group will be associated.
      ListenerId:
        Type: String
        Description: エンドポイントグループに関連付けるリスナーの ID。 // The ID of the listener to be associated with the endpoint group.
    Resources:
      EndpointGroup:
        Type: ALIYUN::GA::EndpointGroup
        Properties:
          EndpointGroupRegion: cn-beijing
          AcceleratorId:
            Ref: AcceleratorId
          EndpointConfigurations:
            - Type: Ip
              Endpoint: 10.10.10.1
              Weight: 100
          Name: TestEndpointGroup
          ListenerId:
            Ref: ListenerId
    Outputs:
      EndpointGroupId:
        Description: エンドポイントグループの ID。 // The ID of the endpoint group.
        Value:
          Fn::GetAtt:
            - EndpointGroup
            - EndpointGroupId
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AcceleratorId": {
          "Type": "String",
          "Description": "エンドポイントグループを関連付ける Global Accelerator インスタンスの ID。" // The ID of the Global Accelerator instance with which the endpoint group will be associated.
        },
        "ListenerId": {
          "Type": "String",
          "Description": "エンドポイントグループに関連付けるリスナーの ID。" // The ID of the listener to be associated with the endpoint group.
        }
      },
      "Resources": {
        "EndpointGroup": {
          "Type": "ALIYUN::GA::EndpointGroup",
          "Properties": {
            "EndpointGroupRegion": "cn-beijing",
            "AcceleratorId": {
              "Ref": "AcceleratorId"
            },
            "EndpointConfigurations": [
              {
                "Type": "Ip",
                "Endpoint": "10.10.10.1",
                "Weight": 100
              }
            ],
            "Name": "TestEndpointGroup",
            "ListenerId": {
              "Ref": "ListenerId"
            }
          }
        }
      },
      "Outputs": {
        "EndpointGroupId": {
          "Description": "エンドポイントグループの ID。", // The ID of the endpoint group.
          "Value": {
            "Fn::GetAtt": [
              "EndpointGroup",
              "EndpointGroupId"
            ]
          }
        }
      }
    }