Delen via


Restorable Database Accounts - List

Een lijst met alle restorable Azure Cosmos DB-databaseaccounts die beschikbaar zijn in het abonnement. Voor deze aanroep is de machtiging Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read vereist.

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

URI-parameters

Name In Vereist Type Description
subscriptionId
path True

string

minLength: 1

De id van het doelabonnement.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

RestorableDatabaseAccountsListResult

De bewerking is voltooid.

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

CosmosDBRestorableDatabaseAccountNoLocationList

Voorbeeldaanvraag

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

Voorbeeldrespons

{
  "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"
          }
        ]
      }
    }
  ]
}

Definities

Name Description
ApiType

Opsomming om het API-type van het restorable databaseaccount aan te geven.

CloudError

Een foutreactie van de service.

ErrorResponse

Foutreactie.

RestorableDatabaseAccountGetResult

Een azure Cosmos DB-databaseaccount dat kan worden overgeslagen.

RestorableDatabaseAccountsListResult

Het antwoord van de lijstbewerking, die de restorable databaseaccounts en de bijbehorende eigenschappen bevat.

RestorableLocationResource

Eigenschappen van het regionale restorable account.

ApiType

Opsomming om het API-type van het restorable databaseaccount aan te geven.

Waarde Description
Cassandra
Gremlin
GremlinV2
MongoDB
Sql
Table

CloudError

Een foutreactie van de service.

Name Type Description
error

ErrorResponse

Foutreactie.

ErrorResponse

Foutreactie.

Name Type Description
code

string

Foutcode.

message

string

Foutbericht dat aangeeft waarom de bewerking is mislukt.

RestorableDatabaseAccountGetResult

Een azure Cosmos DB-databaseaccount dat kan worden overgeslagen.

Name Type Description
id

string

De unieke resource-id van de ARM-resource.

location

string

De locatie van de resourcegroep waartoe de resource behoort.

name

string

De naam van de ARM-resource.

properties.accountName

string

De naam van het globale databaseaccount

properties.apiType

ApiType

Het API-type van het restorable databaseaccount.

properties.creationTime

string (date-time)

De aanmaaktijd van het restorable databaseaccount (ISO-8601-indeling).

properties.deletionTime

string (date-time)

Het tijdstip waarop het restorable databaseaccount is verwijderd (ISO-8601-indeling).

properties.oldestRestorableTime

string (date-time)

Het minst recente tijdstip waarop het databaseaccount kan worden hersteld (ISO-8601-indeling).

properties.restorableLocations

RestorableLocationResource[]

Lijst met regio's waaruit het databaseaccount kan worden hersteld.

type

string

Het type Azure-resource.

RestorableDatabaseAccountsListResult

Het antwoord van de lijstbewerking, die de restorable databaseaccounts en de bijbehorende eigenschappen bevat.

Name Type Description
value

RestorableDatabaseAccountGetResult[]

Lijst met restorable databaseaccounts en de bijbehorende eigenschappen.

RestorableLocationResource

Eigenschappen van het regionale restorable account.

Name Type Description
creationTime

string (date-time)

De aanmaaktijd van het regionale restorable databaseaccount (ISO-8601-indeling).

deletionTime

string (date-time)

Het tijdstip waarop het regionale restorable databaseaccount is verwijderd (ISO-8601-indeling).

locationName

string

De locatie van het regionale restorable account.

regionalDatabaseAccountInstanceId

string

De exemplaar-id van het regionale restorable account.