Azure / Azure/azure-libraries-for-java

Azure SQL Backup Long Term Retention Policy calls old version

オープン
#593 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
customer-reported SQL
主要言語
Java
スター
97
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

SQL API のエントリポイント backupLongTermRetentionPolicies().listByDatabase(...) から開始し、それが生成するリクエストを調べます。api-version=2014-04-01 の URL を、ドキュメントに記載された 2017-03-01-preview エンドポイントと比較します。完了の条件は、データベースのバックアップ保持ポリシーを一覧表示する際に、廃止されたポリシーに関するエラーが発生せず、サポートされているエンドポイントが使用されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, java, sql
領域
cloud, databases
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。