Azure / Azure/azure-libraries-for-java
Azure SQL Backup Long Term Retention Policy calls old version
- Dominant language
- Java
- Stars
- 97
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.