DnsResolverExtensions.GetDnsResolvers Method

Definition

Overloads

GetDnsResolvers(ResourceGroupResource)

Gets a collection of DnsResolverResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDnsResolvers() instead.

GetDnsResolvers(SubscriptionResource, Nullable<Int32>, CancellationToken)

Lists DNS resolvers in all resource groups of a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers
  • Operation Id: DnsResolvers_List
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsResolverResource

GetDnsResolvers(ResourceGroupResource)

Source:
DnsResolverExtensions.cs
Source:
DnsResolverExtensions.cs

Gets a collection of DnsResolverResources in the ResourceGroupResource. MockingTo mock this method, please mock GetDnsResolvers() instead.

public static Azure.ResourceManager.DnsResolver.DnsResolverCollection GetDnsResolvers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetDnsResolvers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DnsResolver.DnsResolverCollection
<Extension()>
Public Function GetDnsResolvers (resourceGroupResource As ResourceGroupResource) As DnsResolverCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DnsResolverResources and their operations over a DnsResolverResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDnsResolvers(SubscriptionResource, Nullable<Int32>, CancellationToken)

Source:
DnsResolverExtensions.cs
Source:
DnsResolverExtensions.cs

Lists DNS resolvers in all resource groups of a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers
  • Operation Id: DnsResolvers_List
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsResolverResource
public static Azure.Pageable<Azure.ResourceManager.DnsResolver.DnsResolverResource> GetDnsResolvers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDnsResolvers : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DnsResolver.DnsResolverResource>
<Extension()>
Public Function GetDnsResolvers (subscriptionResource As SubscriptionResource, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DnsResolverResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

top
Nullable<Int32>

The maximum number of results to return. If not specified, returns up to 100 results.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DnsResolverResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to