次の方法で共有


Long Term Retention Backups - List By Resource Group Server

特定のサーバーの長期保有バックアップをListsします。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups?api-version=2021-11-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups?onlyLatestPerDatabase={onlyLatestPerDatabase}&databaseState={databaseState}&api-version=2021-11-01

URI パラメーター

名前 / 必須 説明
locationName
path True

string

データベースの場所

longTermRetentionServerName
path True

string

サーバーの名前

resourceGroupName
path True

string

リソースが含まれているリソース グループの名前。 この値は、Azure リソース マネージャー API またはポータルから取得できます。

subscriptionId
path True

string

Azure サブスクリプションを識別するサブスクリプション ID。

api-version
query True

string

要求で使用する API のバージョン。

databaseState
query

databaseState

ライブ データベース、削除されたデータベース、またはすべてのデータベースに対してクエリを実行するかどうか。

onlyLatestPerDatabase
query

boolean

各データベースの最新のバックアップのみを取得するかどうか。

応答

名前 説明
200 OK

LongTermRetentionBackupListResult

バックアップの一覧が正常に取得されました。

Other Status Codes

エラー応答: ***

  • 404 SubscriptionDoesNotHaveServer - 要求されたサーバーが見つかりませんでした

  • 404 ServerNotInSubscriptionResourceGroup - 指定されたサーバーが、指定されたリソース グループとサブスクリプションに存在しません。

Get all long term retention backups under the server.

要求のサンプル

GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionBackups?api-version=2021-11-01

応答のサンプル

{
  "value": [
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase1/longTermRetentionBackups/55555555-6666-7777-8888-999999999999;131637960820000000",
      "name": "55555555-6666-7777-8888-999999999999;131637960820000000",
      "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups",
      "properties": {
        "serverName": "testserver",
        "serverCreateTime": "2017-03-10T08:00:00Z",
        "databaseName": "testDatabase1",
        "databaseDeletionTime": null,
        "backupTime": "2017-08-23T08:00:00Z",
        "backupStorageRedundancy": "Geo"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase2/longTermRetentionBackups/12341234-1234-1234-1234-123123123123;131657960820000000",
      "name": "12341234-1234-1234-1234-123123123123;131657960820000000",
      "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups",
      "properties": {
        "serverName": "testserver",
        "serverCreateTime": "2017-03-10T08:00:00Z",
        "databaseName": "testDatabase2",
        "databaseDeletionTime": null,
        "backupTime": "2017-08-30T08:00:00Z",
        "backupStorageRedundancy": "Geo"
      }
    },
    {
      "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testResourceGroup/providers/Microsoft.Sql/locations/japaneast/longTermRetentionServers/testserver/longTermRetentionDatabases/testDatabase3/longTermRetentionBackups/43214321-4321-4321-4321-321321321321;131677960820000000",
      "name": "43214321-4321-4321-4321-321321321321;131667960820000000",
      "type": "Microsoft.Sql/locations/longTermRetentionServers/longTermRetentionDatabases/longTermRetentionBackups",
      "properties": {
        "serverName": "testserver",
        "serverCreateTime": "2017-03-10T08:00:00Z",
        "databaseName": "testDatabase3",
        "databaseDeletionTime": null,
        "backupTime": "2017-09-06T08:00:00Z",
        "backupStorageRedundancy": "Geo"
      }
    }
  ]
}

定義

名前 説明
BackupStorageRedundancy

コピーしたバックアップのストレージ冗長の種類

databaseState

ライブ データベース、削除されたデータベース、またはすべてのデータベースに対してクエリを実行するかどうか。

LongTermRetentionBackup

長期保有期間のバックアップ。

LongTermRetentionBackupListResult

長期保有バックアップの一覧。

BackupStorageRedundancy

コピーしたバックアップのストレージ冗長の種類

名前 説明
Geo

string

GeoZone

string

Local

string

Zone

string

databaseState

ライブ データベース、削除されたデータベース、またはすべてのデータベースに対してクエリを実行するかどうか。

名前 説明
All

string

Deleted

string

Live

string

LongTermRetentionBackup

長期保有期間のバックアップ。

名前 説明
id

string

リソースの ID

name

string

リソース名。

properties.backupExpirationTime

string

長期保有バックアップの有効期限が切れる時間。

properties.backupStorageRedundancy

BackupStorageRedundancy

バックアップのストレージ冗長の種類

properties.backupTime

string

バックアップが作成された時刻

properties.databaseDeletionTime

string

データベースの削除時刻

properties.databaseName

string

バックアップが属しているデータベースの名前

properties.requestedBackupStorageRedundancy

BackupStorageRedundancy

バックアップのストレージ冗長の種類

properties.serverCreateTime

string

サーバーの作成時刻。

properties.serverName

string

バックアップ データベースが属しているサーバー名。

type

string

リソースの種類。

LongTermRetentionBackupListResult

長期保有バックアップの一覧。

名前 説明
nextLink

string

結果の次のページを取得するためのリンク。

value

LongTermRetentionBackup[]

結果の配列。