Freigeben über


AutomationJobCollection.GetAsync(String, String, CancellationToken) Methode

Definition

Rufen Sie den durch den Auftragsnamen identifizierten Auftrag ab.

  • Anfordern von Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  • Vorgang IdJob_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationJobResource>> GetAsync (string jobName, string clientRequestId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationJobResource>>
override this.GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationJobResource>>
Public Overridable Function GetAsync (jobName As String, Optional clientRequestId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationJobResource))

Parameter

jobName
String

Der Auftragsname.

clientRequestId
String

Identifiziert diese spezifische Clientanforderung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

jobName ist NULL.

Gilt für: