Compartilhar via


ReplicationProtectedItemCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

  • Caminho da solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}
  • IdReplicationProtectedItems_Get de operação
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>> GetIfExistsAsync (string replicatedProtectedItemName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>>
Public Overridable Function GetIfExistsAsync (replicatedProtectedItemName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of ReplicationProtectedItemResource))

Parâmetros

replicatedProtectedItemName
String

Nome do item protegido por replicação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

replicatedProtectedItemName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

replicatedProtectedItemName é nulo.

Aplica-se a