DataReplicationJobCollection.Get(String, CancellationToken) Method

Definition

Gets the details of the job.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/jobs/{jobName}.
  • Operation Id. : Job_Get.
  • Default Api Version. : 2024-09-01.
public virtual Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationJobResource> Get(string jobName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationJobResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationJobResource>
Public Overridable Function Get (jobName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DataReplicationJobResource)

Parameters

jobName
String

The job name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobName is null.

jobName is an empty string, and was expected to be non-empty.

Applies to