DefaultSecurityRulesOperations.List(String, String, CancellationToken) Method

Definition

Gets all default security rules in a network security group.

public virtual Azure.Pageable<Azure.ResourceManager.Network.Models.SecurityRule> List (string resourceGroupName, string networkSecurityGroupName, System.Threading.CancellationToken cancellationToken = default);
abstract member List : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.Models.SecurityRule>
override this.List : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.Models.SecurityRule>
Public Overridable Function List (resourceGroupName As String, networkSecurityGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SecurityRule)

Parameters

resourceGroupName
String

The name of the resource group.

networkSecurityGroupName
String

The name of the network security group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Pageable<SecurityRule>

Exceptions

resourceGroupName or networkSecurityGroupName is null.

Applies to