Compartilhar via


DataReplicationPolicyCollection.GetIfExistsAsync Método

Definição

Tenta obter detalhes desse recurso do serviço.

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

Parâmetros

policyName
String

O nome da política.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

policyName é nulo.

Aplica-se a