Compartilhar via


RecoveryServicesSiteRecoveryExtensions.GetSiteRecoveryJobAsync Método

Definição

Obtenha os detalhes de um trabalho de Site Recovery do Azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationJobs/{jobName}
  • IdReplicationJobs_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryJobResource>> GetSiteRecoveryJobAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, string jobName, System.Threading.CancellationToken cancellationToken = default);
static member GetSiteRecoveryJobAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryJobResource>>
<Extension()>
Public Function GetSiteRecoveryJobAsync (resourceGroupResource As ResourceGroupResource, resourceName As String, jobName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SiteRecoveryJobResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

resourceName
String

O nome do cofre dos serviços de recuperação.

jobName
String

Job identifier.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

resourceName ou jobName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

resourceName ou jobName é nulo.

Aplica-se a