Compartir a través de


DataProtectionBackupPolicyCollection.Get(String, CancellationToken) Método

Definición

Obtiene una directiva de copia de seguridad que pertenece a un almacén de copia de seguridad.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}
  • IdBackupPolicies_Get de operación
public virtual Azure.Response<Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupPolicyResource> Get (string backupPolicyName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupPolicyResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DataProtectionBackup.DataProtectionBackupPolicyResource>
Public Overridable Function Get (backupPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DataProtectionBackupPolicyResource)

Parámetros

backupPolicyName
String

Cadena que se va a usar.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

backupPolicyName es una cadena vacía y se espera que no esté vacía.

backupPolicyName es null.

Se aplica a