Compartilhar via


DataReplicationVaultResource.GetDataReplicationPolicy 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> GetDataReplicationPolicy (string policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDataReplicationPolicy : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
override this.GetDataReplicationPolicy : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.RecoveryServicesDataReplication.DataReplicationPolicyResource>
Public Overridable Function GetDataReplicationPolicy (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