你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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'>