Partilhar via


ReplicationProtectedItemCollection.GetIfExists Método

Definição

Tenta obter detalhes para esse recurso do serviço.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}
  • Operação IdReplicationProtectedItems_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource> GetIfExists (string replicatedProtectedItemName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>
Public Overridable Function GetIfExists (replicatedProtectedItemName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 esperava-se que não estivesse vazia.

replicatedProtectedItemName é nulo.

Aplica-se a