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

Resource Orchestration Service:ALIYUN::ECS::JoinSecurityGroup

最終更新日:Jan 16, 2025

ALIYUN::ECS::JoinSecurityGroup は、1 つ以上の ECS インスタンスを指定されたセキュリティグループに追加するために使用されます。

構文

{
  "Type": "ALIYUN::ECS::JoinSecurityGroup",
  "Properties": {
    "InstanceId": String,
    "InstanceIdList": List,
    "SecurityGroupId": String,
    "NetworkInterfaceList": List
  }
}

プロパティ

プロパティ必須編集可能説明制約
SecurityGroupId String はい いいえ セキュリティグループの ID。 なし
InstanceId String いいえ いいえ セキュリティグループに追加される ECS インスタンスの ID。 なし
InstanceIdList List いいえ はい セキュリティグループに追加される ECS インスタンスの ID。 なし
NetworkInterfaceList List いいえ はい 弾性ネットワークインターフェース (ENI) の ID。 なし

レスポンスパラメータ

Fn::GetAtt

なし

  • YAML 形式

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      SG:
        Type: ALIYUN::ECS::JoinSecurityGroup
        Properties:
          SecurityGroupId: sg-m5eagh7rzys2z8sa****
          InstanceIdList:
          - i-m5e505h9bgsio0wy****
          - i-m5e505hio0wyjc6r****
  • JSON 形式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "SG": {
          "Type": "ALIYUN::ECS::JoinSecurityGroup",
          "Properties": {
            "SecurityGroupId": "sg-m5eagh7rzys2z8sa****",
            "InstanceIdList": [
              "i-m5e505h9bgsio0wy****",
              "i-m5e505hio0wyjc6r****"
            ]
          }
        }
      }
    }