Freigeben über


DevTestLabResource.GetDevTestLabNotificationChannelAsync Methode

Definition

Benachrichtigungskanal abrufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/notificationchannels/{name}
  • Vorgang IdNotificationChannels_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelResource>> GetDevTestLabNotificationChannelAsync (string name, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevTestLabNotificationChannelAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelResource>>
override this.GetDevTestLabNotificationChannelAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabNotificationChannelResource>>
Public Overridable Function GetDevTestLabNotificationChannelAsync (name As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevTestLabNotificationChannelResource))

Parameter

name
String

Gibt den Namen des Benachrichtigungskanals an.

expand
String

Geben Sie die $expand-Abfrage an. Beispiel: 'properties($select=webHookUrl)'.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

name ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

name ist NULL.

Gilt für: