Megosztás a következőn keresztül:


IWatcherOperations.GetWithHttpMessagesAsync Metódus

Definíció

Kérje le a figyelő neve alapján azonosított figyelőt. http://aka.ms/azureautomationsdk/watcheroperations

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Watcher>> GetWithHttpMessagesAsync (string resourceGroupName, string automationAccountName, string watcherName, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Automation.Models.Watcher>>
Public Function GetWithHttpMessagesAsync (resourceGroupName As String, automationAccountName As String, watcherName As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Watcher))

Paraméterek

resourceGroupName
String

Egy Azure-erőforráscsoport neve.

automationAccountName
String

Az Automation-fiók neve.

watcherName
String

A figyelő neve.

customHeaders
Dictionary<String,List<String>>

A kérelemhez hozzáadandó fejlécek.

cancellationToken
CancellationToken

A lemondási jogkivonat.

Válaszok

Kivételek

A művelet érvénytelen állapotkód visszaadásakor lett eldobva

A válasz deszerializálásának sikertelenségével kapcsolatos hiba

A kötelező paraméter null értékének megadásakor történik

A következőre érvényes: