Partager via


PrivateDnsZoneResource.GetPrivateDnsSrvRecordAsync Méthode

Définition

Obtient un jeu d’enregistrements.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{srvRecordName}
  • IdRecordSets_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PrivateDns.PrivateDnsSrvRecordResource>> GetPrivateDnsSrvRecordAsync (string srvRecordName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPrivateDnsSrvRecordAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PrivateDns.PrivateDnsSrvRecordResource>>
override this.GetPrivateDnsSrvRecordAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.PrivateDns.PrivateDnsSrvRecordResource>>
Public Overridable Function GetPrivateDnsSrvRecordAsync (srvRecordName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of PrivateDnsSrvRecordResource))

Paramètres

srvRecordName
String

Nom du jeu d’enregistrements, relatif au nom de la zone.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

srvRecordName a la valeur null.

S’applique à