Freigeben über


DataReplicationWorkflowCollection.GetIfExistsAsync Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}
  • Vorgang IdWorkflow_Get
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationWorkflowResource>> GetIfExistsAsync (string jobName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationWorkflowResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationWorkflowResource>>
Public Overridable Function GetIfExistsAsync (jobName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of DataReplicationWorkflowResource))

Parameter

jobName
String

Der Name des Auftrags (Workflow).

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: