DefaultSecurityRulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:default_security_rules> attribute.

Inheritance
builtins.object
DefaultSecurityRulesOperations

Constructor

DefaultSecurityRulesOperations(*args, **kwargs)

Methods

get

Get the specified default network security rule.

list

Gets all default security rules in a network security group.

get

Get the specified default network security rule.

get(resource_group_name: str, network_security_group_name: str, default_security_rule_name: str, **kwargs: Any) -> SecurityRule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_security_group_name
Required
str

The name of the network security group. Required.

default_security_rule_name
Required
str

The name of the default security rule. Required.

Returns

Type Description

SecurityRule or the result of cls(response)

Exceptions

Type Description

list

Gets all default security rules in a network security group.

list(resource_group_name: str, network_security_group_name: str, **kwargs: Any) -> Iterable[SecurityRule]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

network_security_group_name
Required
str

The name of the network security group. Required.

Returns

Type Description

An iterator like instance of either SecurityRule or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>