Azure / Azure/azure-libraries-for-java
Azure SQL Backup Long Term Retention Policy calls old version
- Ngôn ngữ chính
- Java
- Star
- 97
- Fork
- 102
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ điểm vào của SQL API backupLongTermRetentionPolicies().listByDatabase(...) và kiểm tra yêu cầu mà nó tạo ra. So sánh URL có api-version=2014-04-01 của yêu cầu đó với endpoint 2017-03-01-preview được ghi trong tài liệu. Hoàn tất khi việc liệt kê các chính sách lưu giữ bản sao lưu của một cơ sở dữ liệu sử dụng endpoint được hỗ trợ mà không gặp lỗi chính sách lỗi thời.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, java, sql
- Lĩnh vực
- cloud, databases
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100