Tüm Ürünler
Search
Belge Merkezi

Resource Orchestration Service:ALIYUN::ENS::NetworkAclAssociation

Son Güncelleme:Oct 05, 2026

Bir ağ erişim kontrol listesini (ACL) ağlarla ilişkilendirir.

Söz dizimi

{
  "Type": "ALIYUN::ENS::NetworkAclAssociation",
  "Properties": {
    "NetworkAclId": String,
    "NetworkIds": List
  }
}

Özellikler


Özellik


Tür


Gerekli


Düzenlenebilir


Açıklama


Kısıtlama


NetworkAclId


String


Evet


Hayır


ACL kimliği.


Yok.


NetworkIds


List


Evet


Hayır


Ağ ACL'si ile ilişkilendirmek istediğiniz ağların kimlikleri.


En fazla 30 ağ kimliği belirtebilirsiniz.

Dönüş değerleri

Fn::GetAtt

NetworkAclId: ACL kimliği.

Örnekler

YAML biçimi

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  NetworkAclId:
    Type: String
    Description:
      en: The ID of the network ACL.
    Required: true
  NetworkIds:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The network id which you want to associate the network ACL.
    Required: true
    MinLength: 1
    MaxLength: 30
Resources:
  NetworkAclAssociation:
    Type: ALIYUN::ENS::NetworkAclAssociation
    Properties:
      NetworkAclId:
        Ref: NetworkAclId
      NetworkIds:
        Ref: NetworkIds
Outputs:
  NetworkAclId:
    Description: The network acl id to associate.
    Value:
      Fn::GetAtt:
        - NetworkAclAssociation
        - NetworkAclId

JSON biçimi

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "NetworkAclId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the network ACL."
      },
      "Required": true
    },
    "NetworkIds": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The network id which you want to associate the network ACL."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 30
    }
  },
  "Resources": {
    "NetworkAclAssociation": {
      "Type": "ALIYUN::ENS::NetworkAclAssociation",
      "Properties": {
        "NetworkAclId": {
          "Ref": "NetworkAclId"
        },
        "NetworkIds": {
          "Ref": "NetworkIds"
        }
      }
    }
  },
  "Outputs": {
    "NetworkAclId": {
      "Description": "The network acl id to associate.",
      "Value": {
        "Fn::GetAtt": [
          "NetworkAclAssociation",
          "NetworkAclId"
        ]
      }
    }
  }
}