Dela via


MockableNetworkSubscriptionResource.GetNetworkSecurityGroupsAsync Method

Definition

Gets all network security groups in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups
  • Operation Id: NetworkSecurityGroups_ListAll
  • Default Api Version: 2024-03-01
  • Resource: NetworkSecurityGroupResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkSecurityGroupResource> GetNetworkSecurityGroupsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetworkSecurityGroupsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkSecurityGroupResource>
override this.GetNetworkSecurityGroupsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.NetworkSecurityGroupResource>
Public Overridable Function GetNetworkSecurityGroupsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NetworkSecurityGroupResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of NetworkSecurityGroupResource that may take multiple service requests to iterate over.

Applies to