Partilhar via


DataReplicationVaultResource.GetDataReplicationProtectedItemAsync Método

Definição

Obtém os detalhes do item protegido.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/protectedItems/{protectedItemName}
  • IdProtectedItem_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>> GetDataReplicationProtectedItemAsync (string protectedItemName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDataReplicationProtectedItemAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>>
override this.GetDataReplicationProtectedItemAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationProtectedItemResource>>
Public Overridable Function GetDataReplicationProtectedItemAsync (protectedItemName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataReplicationProtectedItemResource))

Parâmetros

protectedItemName
String

O nome do item protegido.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

protectedItemName é nulo.

Aplica-se a