Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::NLB::SecurityGroupAttachment

Última atualização: Jun 27, 2026

Vincula um grupo de segurança a uma instância do Network Load Balancer (NLB).

Sintaxe

{
  "Type": "ALIYUN::NLB::SecurityGroupAttachment",
  "Properties": {
    "LoadBalancerId": String,
    "SecurityGroupIds": List
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

LoadBalancerId

String

Sim

Não

ID da instância NLB à qual vincular o grupo de segurança.

Nenhuma.

SecurityGroupIds

List

Sim

Não

IDs dos grupos de segurança.

Especifique até 10 grupos de segurança.

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      LoadBalancerId:
        Description:
          en: The ID of the network-based server load balancer instance to be bound to
            the security group.
        Type: String
      SecurityGroupIds:
        AssociationProperty: List[Parameter]
        Description:
          en: List of security group id.
        MaxLength: 10
        Type: Json
    Resources:
      SecurityGroupAttachment:
        Properties:
          LoadBalancerId:
            Ref: LoadBalancerId
          SecurityGroupIds:
            Ref: SecurityGroupIds
        Type: ALIYUN::NLB::SecurityGroupAttachment
                            
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "LoadBalancerId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the network-based server load balancer instance to be bound to the security group."
          }
        },
        "SecurityGroupIds": {
          "AssociationProperty": "List[Parameter]",
          "Type": "Json",
          "Description": {
            "en": "List of security group id."
          },
          "MaxLength": 10
        }
      },
      "Resources": {
        "SecurityGroupAttachment": {
          "Type": "ALIYUN::NLB::SecurityGroupAttachment",
          "Properties": {
            "LoadBalancerId": {
              "Ref": "LoadBalancerId"
            },
            "SecurityGroupIds": {
              "Ref": "SecurityGroupIds"
            }
          }
        }
      }
    }