Share via


DnsExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Dns.

public static class DnsExtensions
type DnsExtensions = class
Public Module DnsExtensions
Inheritance
DnsExtensions

Methods

GetDnsAaaaRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsAaaaRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsAaaaRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsAaaaRecordResource(ResourceIdentifier) instead.

GetDnsARecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsARecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsARecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsARecordResource(ResourceIdentifier) instead.

GetDnsCaaRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsCaaRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsCaaRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsCaaRecordResource(ResourceIdentifier) instead.

GetDnsCnameRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsCnameRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsCnameRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsCnameRecordResource(ResourceIdentifier) instead.

GetDnsDSRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsDSRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsDSRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsDSRecordResource(ResourceIdentifier) instead.

GetDnsMXRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsMXRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsMXRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsMXRecordResource(ResourceIdentifier) instead.

GetDnsNaptrRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsNaptrRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsNaptrRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsNaptrRecordResource(ResourceIdentifier) instead.

GetDnsNSRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsNSRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsNSRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsNSRecordResource(ResourceIdentifier) instead.

GetDnsPtrRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsPtrRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsPtrRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsPtrRecordResource(ResourceIdentifier) instead.

GetDnsResourceReferencesByTargetResources(SubscriptionResource, DnsResourceReferenceContent, CancellationToken)

Returns the DNS records specified by the referencing targetResourceIds.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/getDnsResourceReference
  • Operation Id: DnsResourceReference_GetByTargetResources
  • Default Api Version: 2023-07-01-preview
GetDnsResourceReferencesByTargetResourcesAsync(SubscriptionResource, DnsResourceReferenceContent, CancellationToken)

Returns the DNS records specified by the referencing targetResourceIds.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/getDnsResourceReference
  • Operation Id: DnsResourceReference_GetByTargetResources
  • Default Api Version: 2023-07-01-preview
GetDnssecConfigResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnssecConfigResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a DnssecConfigResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnssecConfigResource(ResourceIdentifier) instead.

GetDnsSoaRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsSoaRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsSoaRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsSoaRecordResource(ResourceIdentifier) instead.

GetDnsSrvRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsSrvRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsSrvRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsSrvRecordResource(ResourceIdentifier) instead.

GetDnsTlsaRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsTlsaRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsTlsaRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsTlsaRecordResource(ResourceIdentifier) instead.

GetDnsTxtRecordResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsTxtRecordResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a DnsTxtRecordResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsTxtRecordResource(ResourceIdentifier) instead.

GetDnsZone(ResourceGroupResource, 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
GetDnsZoneAsync(ResourceGroupResource, 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
GetDnsZoneResource(ArmClient, ResourceIdentifier)

Gets an object representing a DnsZoneResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a DnsZoneResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDnsZoneResource(ResourceIdentifier) instead.

GetDnsZones(ResourceGroupResource)

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

GetDnsZones(SubscriptionResource, Nullable<Int32>, CancellationToken)

Lists the DNS zones in all resource groups in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/dnszones
  • Operation Id: Zones_List
  • Default Api Version: 2023-07-01-preview
  • Resource: DnsZoneResource
GetDnsZonesAsync(SubscriptionResource, Nullable<Int32>, CancellationToken)

Lists the DNS zones in all resource groups in a subscription.

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

Applies to