Condividi tramite


DnsZoneCollection Class

Definition

A class representing a collection of DnsZoneResource and their operations. Each DnsZoneResource in the collection will belong to the same instance of ResourceGroupResource. To get a DnsZoneCollection instance call the GetDnsZones method from an instance of ResourceGroupResource.

public class DnsZoneCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Dns.DnsZoneResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Dns.DnsZoneResource>
type DnsZoneCollection = class
    inherit ArmCollection
    interface seq<DnsZoneResource>
    interface IEnumerable
    interface IAsyncEnumerable<DnsZoneResource>
Public Class DnsZoneCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of DnsZoneResource), IEnumerable(Of DnsZoneResource)
Inheritance
DnsZoneCollection
Implements

Constructors

DnsZoneCollection()

Initializes a new instance of the DnsZoneCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, DnsZoneData, Nullable<ETag>, String, CancellationToken)

Creates or updates a DNS zone. Does not modify DNS records within the zone.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_CreateOrUpdate
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
CreateOrUpdateAsync(WaitUntil, String, DnsZoneData, Nullable<ETag>, String, CancellationToken)

Creates or updates a DNS zone. Does not modify DNS records within the zone.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_CreateOrUpdate
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_Get
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_Get
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
Get(String, CancellationToken)

Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_Get
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
GetAll(Nullable<Int32>, CancellationToken)

Lists the DNS zones within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones
  • Operation Id: Zones_ListByResourceGroup
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
GetAllAsync(Nullable<Int32>, CancellationToken)

Lists the DNS zones within a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones
  • Operation Id: Zones_ListByResourceGroup
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
GetAsync(String, CancellationToken)

Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_Get
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_Get
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}
  • Operation Id: Zones_Get
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<DnsZoneResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DnsZoneResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to