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

NetworkSecurityGroup Interface

Implements

public interface NetworkSecurityGroup
extends GroupableResource<NetworkManager,NetworkSecurityGroupInner>, Refreshable<NetworkSecurityGroup>, Updatable<Update>, UpdatableWithTags<NetworkSecurityGroup>, HasAssociatedSubnets

Network security group.

Method Summary

Modifier and Type Method and Description
abstract Map<String,NetworkSecurityRule> defaultSecurityRules()

Gets default security rules associated with this network security group.

abstract Set<String> networkInterfaceIds()

Gets the IDs of the network interfaces associated with this network security group.

abstract Map<String,NetworkSecurityRule> securityRules()

Gets security rules associated with this network security group.

Method Details

defaultSecurityRules

public abstract Map defaultSecurityRules()

Gets default security rules associated with this network security group.

Returns:

default security rules associated with this network security group, indexed by their name

networkInterfaceIds

public abstract Set networkInterfaceIds()

Gets the IDs of the network interfaces associated with this network security group.

Returns:

the IDs of the network interfaces associated with this network security group

securityRules

public abstract Map securityRules()

Gets security rules associated with this network security group.

Returns:

security rules associated with this network security group, indexed by their names

Applies to