Restorable Tables - List

De gebeurtenisfeed weergeven van alle mutaties die zijn uitgevoerd op alle Azure Cosmos DB-tabellen. Dit is handig in het scenario waarin de tabel per ongeluk is verwijderd. Voor deze API is de machtiging Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read vereist

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableTables?api-version=2023-11-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableTables?api-version=2023-11-15&startTime={startTime}&endTime={endTime}

URI-parameters

Name In Vereist Type Description
instanceId
path True

string

De instanceId GUID van een herstelbaar databaseaccount.

location
path True

string

Cosmos DB-regio, met spaties tussen woorden en elk woord met een hoofdletter.

subscriptionId
path True

string

De id van het doelabonnement.

api-version
query True

string

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

endTime
query

string

Eindtijd van gebeurtenisfeed voor herstelbare tabellen.

startTime
query

string

Begintijd van gebeurtenisfeed voor herstelbare tabellen.

Antwoorden

Name Type Description
200 OK

RestorableTablesListResult

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
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

CosmosDBRestorableTableList

Sample Request

GET https://management.azure.com/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableTables?api-version=2023-11-15

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableTables/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableTables",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Table1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Create",
          "canUndelete": "invalid"
        }
      }
    },
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableTables/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableTables",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Table1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Delete",
          "canUndelete": "notRestorable",
          "canUndeleteReason": "Collection with same name already exist as live collection."
        }
      }
    }
  ]
}

Definities

Name Description
CloudError

Een foutreactie van de service.

ErrorResponse

Foutreactie.

OperationType

Opsomming om het bewerkingstype van de gebeurtenis aan te geven.

Resource

De resource van een Azure Cosmos DB Table-gebeurtenis

RestorableTableGetResult

Een Azure Cosmos DB Table-gebeurtenis

RestorableTablesListResult

Het antwoord van de list-bewerking, dat de Tabel-gebeurtenissen en de bijbehorende eigenschappen bevat.

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.

OperationType

Opsomming om het bewerkingstype van de gebeurtenis aan te geven.

Name Type Description
Create

string

Delete

string

Recreate

string

Replace

string

SystemOperation

string

Resource

De resource van een Azure Cosmos DB Table-gebeurtenis

Name Type Description
_rid

string

Een door het systeem gegenereerde eigenschap. Een unieke id.

canUndelete

string

Een status van deze tabel om te bepalen of deze tabel kan worden hersteld in hetzelfde account.

canUndeleteReason

string

De reden waarom deze tabel niet kan worden hersteld in hetzelfde account.

eventTimestamp

string

Het tijdstip waarop deze tabel-gebeurtenis heeft plaatsgevonden.

operationType

OperationType

Het bewerkingstype van deze tabel-gebeurtenis.

ownerId

string

De naam van deze tabel.

ownerResourceId

string

De resource-id van deze tabel.

RestorableTableGetResult

Een Azure Cosmos DB Table-gebeurtenis

Name Type Description
id

string

De unieke resource-id van de ARM-resource.

name

string

De naam van de ARM-resource.

properties.resource

Resource

De resource van een Azure Cosmos DB Table-gebeurtenis

type

string

Het type Azure-resource.

RestorableTablesListResult

Het antwoord van de list-bewerking, dat de Tabel-gebeurtenissen en de bijbehorende eigenschappen bevat.

Name Type Description
value

RestorableTableGetResult[]

Lijst met Tabel-gebeurtenissen en hun eigenschappen.