Bagikan melalui


Restorable Database Accounts - List

Lists semua akun database Azure Cosmos DB yang dapat dipulihkan yang tersedia di bawah langganan. Panggilan ini memerlukan izin 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read'.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts?api-version=2024-05-15

Parameter URI

Nama Dalam Diperlukan Jenis Deskripsi
subscriptionId
path True

string

ID langganan target.

api-version
query True

string

Versi API yang digunakan untuk operasi ini.

Respons

Nama Jenis Deskripsi
200 OK

RestorableDatabaseAccountsListResult

Operasi berhasil diselesaikan.

Other Status Codes

CloudError

Respons kesalahan yang menjelaskan mengapa operasi gagal.

Keamanan

azure_auth

Alur OAuth2 Azure Active Directory

Jenis: oauth2
Alur: implicit
URL Otorisasi: https://login.microsoftonline.com/common/oauth2/authorize

Cakupan

Nama Deskripsi
user_impersonation Meniru akun pengguna Anda

Contoh

CosmosDBRestorableDatabaseAccountNoLocationList

Permintaan sampel

GET https://management.azure.com/subscriptions/subid/providers/Microsoft.DocumentDB/restorableDatabaseAccounts?api-version=2024-05-15

Respon sampel

{
  "value": [
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d",
      "name": "d9b26648-2f53-4541-b3d8-3044f4f9810d",
      "location": "West US",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts",
      "properties": {
        "accountName": "ddb1",
        "creationTime": "2020-04-11T21:56:15Z",
        "deletionTime": "2021-03-12T22:05:09Z",
        "oldestRestorableTime": "2021-03-12T22:05:09Z",
        "apiType": "Sql",
        "restorableLocations": [
          {
            "locationName": "South Central US",
            "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
            "creationTime": "2020-10-30T21:13:10Z",
            "deletionTime": "2020-10-30T21:13:35Z"
          },
          {
            "locationName": "West US",
            "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
            "creationTime": "2020-10-30T21:13:10Z"
          }
        ]
      }
    },
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4",
      "name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4",
      "location": "East US",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts",
      "properties": {
        "accountName": "ddb2",
        "creationTime": "2020-05-01T08:05:18Z",
        "oldestRestorableTime": "2020-05-01T08:05:18Z",
        "apiType": "Sql",
        "restorableLocations": [
          {
            "locationName": "South Central US",
            "regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
            "creationTime": "2020-10-30T21:13:10Z",
            "deletionTime": "2020-10-30T21:13:35Z"
          },
          {
            "locationName": "West US",
            "regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
            "creationTime": "2020-10-30T21:13:10Z"
          }
        ]
      }
    }
  ]
}

Definisi

Nama Deskripsi
ApiType

Enum untuk menunjukkan jenis API akun database yang dapat di memulihkan.

CloudError

Respons kesalahan dari layanan.

ErrorResponse

Respons Kesalahan.

RestorableDatabaseAccountGetResult

Akun database azure Cosmos DB yang dapat di memulihkan.

RestorableDatabaseAccountsListResult

Respons operasi Daftar, yang berisi akun database yang dapat di memulihkan dan propertinya.

RestorableLocationResource

Properti akun regional yang dapat di-restorable.

ApiType

Enum untuk menunjukkan jenis API akun database yang dapat di memulihkan.

Nama Jenis Deskripsi
Cassandra

string

Gremlin

string

GremlinV2

string

MongoDB

string

Sql

string

Table

string

CloudError

Respons kesalahan dari layanan.

Nama Jenis Deskripsi
error

ErrorResponse

Respons Kesalahan.

ErrorResponse

Respons Kesalahan.

Nama Jenis Deskripsi
code

string

Kode Kesalahan.

message

string

Pesan kesalahan yang menunjukkan mengapa operasi gagal.

RestorableDatabaseAccountGetResult

Akun database azure Cosmos DB yang dapat di memulihkan.

Nama Jenis Deskripsi
id

string

Pengidentifikasi sumber daya unik sumber daya ARM.

location

string

Lokasi grup sumber daya tempat sumber daya berada.

name

string

Nama sumber daya ARM.

properties.accountName

string

Nama akun database global

properties.apiType

ApiType

Jenis API dari akun database yang dapat di-restorable.

properties.creationTime

string

Waktu pembuatan akun database yang dapat di memulihkan (format ISO-8601).

properties.deletionTime

string

Waktu di mana akun database yang dapat di memulihkan telah dihapus (format ISO-8601).

properties.oldestRestorableTime

string

Waktu terakhir di mana akun database dapat dipulihkan ke (format ISO-8601).

properties.restorableLocations

RestorableLocationResource[]

Daftar wilayah tempat akun database dapat dipulihkan.

type

string

Jenis sumber daya Azure.

RestorableDatabaseAccountsListResult

Respons operasi Daftar, yang berisi akun database yang dapat di memulihkan dan propertinya.

Nama Jenis Deskripsi
value

RestorableDatabaseAccountGetResult[]

Daftar akun database yang dapat dipublis dan propertinya.

RestorableLocationResource

Properti akun regional yang dapat di-restorable.

Nama Jenis Deskripsi
creationTime

string

Waktu pembuatan akun database regional yang dapat di memulihkan (format ISO-8601).

deletionTime

string

Waktu di mana akun database regional yang dapat di memulihkan telah dihapus (format ISO-8601).

locationName

string

Lokasi akun regional yang dapat di-restorable.

regionalDatabaseAccountInstanceId

string

Id instans akun regional yang dapat di-restorable.