NetworkSecurityRule Class
Describes a network security rule.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
NetworkSecurityRule
Constructor
NetworkSecurityRule(*, name: str, protocol: Union[str, azure.mgmt.servicefabricmanagedclusters.models._service_fabric_managed_clusters_management_client_enums.NsgProtocol], access: Union[str, azure.mgmt.servicefabricmanagedclusters.models._service_fabric_managed_clusters_management_client_enums.Access], priority: int, direction: Union[str, azure.mgmt.servicefabricmanagedclusters.models._service_fabric_managed_clusters_management_client_enums.Direction], description: Optional[str] = None, source_address_prefixes: Optional[List[str]] = None, destination_address_prefixes: Optional[List[str]] = None, source_port_ranges: Optional[List[str]] = None, destination_port_ranges: Optional[List[str]] = None, **kwargs)
Parameters
- protocol
- str or <xref:service_fabric_managed_clusters_management_client.models.NsgProtocol>
Required. Network protocol this rule applies to. Possible values include: "http", "https", "tcp", "udp", "icmp", "ah", "esp".
The destination address prefixes. CIDR or destination IP ranges.
- access
- str or <xref:service_fabric_managed_clusters_management_client.models.Access>
Required. The network traffic is allowed or denied. Possible values include: "allow", "deny".
- priority
- int
Required. The priority of the rule. The value can be in the range 1000 to 3000. Values outside this range are reserved for Service Fabric ManagerCluster Resource Provider. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- direction
- str or <xref:service_fabric_managed_clusters_management_client.models.Direction>
Required. Network security rule direction. Possible values include: "inbound", "outbound".
Feedback
Submit and view feedback for