Compartilhar via


DataReplicationPolicyCollection.Get(String, CancellationToken) Método

Definição

Obtém os detalhes da política.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}
  • Operação IdPolicy_Get
public virtual Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource> Get (string policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
Public Overridable Function Get (policyName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(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 esperava-se que não estivesse vazia.

policyName é nulo.

Aplica-se a