DnsNSRecordCollection.ExistsAsync(String, CancellationToken) Method

Definition

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{nsRecordName}
  • Operation Id: RecordSets_Get
C#
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(string nsRecordName, System.Threading.CancellationToken cancellationToken = default);

Parameters

nsRecordName
String

The name of the record set, relative to the name of the zone.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

nsRecordName is null.

Applies to

Product Versions
Azure SDK for .NET Latest, Preview