Azure / Azure/azure-libraries-for-java
Azure SQL Backup Long Term Retention Policy calls old version
- Lingua principale
- Java
- Stelle
- 97
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi,
Trying to list the backup retention policies. Latest version - 0.15.1
List retentions = az.getSQLAPI().inner().backupLongTermRetentionPolicies().listByDatabase(database.resourceGroupName(), database.sqlServerName(), database.name())
Get a message:
{"code":"0","message":"Configure long term retention policy with azure recovery service vault and policy is no longer supported. Please submit request with the new flexible retention policy","target":null,"details":[{"code":"0","message":"Configure long term retention policy with azure recovery service vault and policy is no longer supported. Please submit request with the new flexible retention policy","target":null,"severity":"16"}],"innererror":[]}
On the webservice method it's calling an old version:
..../databases/marketplace/backupLongTermRetentionPolicies?api-version=2014-04-01
There is a new one according to the doc:
https://docs.microsoft.com/en-us/rest/api/sql/backuplongtermretentionpolicies/listbydatabase
api-version=2017-03-01-preview
Thanks
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.