다음을 통해 공유


DnsResolverExtensions.GetDnsForwardingRulesets Method

Definition

Overloads

GetDnsForwardingRulesets(ResourceGroupResource)

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

GetDnsForwardingRulesets(SubscriptionResource, Nullable<Int32>, CancellationToken)

Lists DNS forwarding rulesets in all resource groups of a subscription.

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

GetDnsForwardingRulesets(ResourceGroupResource)

Source:
DnsResolverExtensions.cs
Source:
DnsResolverExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of DnsForwardingRulesetResources and their operations over a DnsForwardingRulesetResource.

Exceptions

resourceGroupResource is null.

Applies to

GetDnsForwardingRulesets(SubscriptionResource, Nullable<Int32>, CancellationToken)

Source:
DnsResolverExtensions.cs
Source:
DnsResolverExtensions.cs

Lists DNS forwarding rulesets in all resource groups of a subscription.

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

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 DnsForwardingRulesetResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to