Restorable Gremlin Databases - List

De gebeurtenisfeed weergeven van alle mutaties die zijn uitgevoerd op alle Azure Cosmos DB Gremlin-databases onder het restorable-account. Dit helpt in een scenario waarin de database per ongeluk is verwijderd om de verwijderingstijd op te halen. 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}/restorableGremlinDatabases?api-version=2023-11-15

URI-parameters

Name In Vereist Type Description
instanceId
path True

string

De instanceId GUID van een restorable 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.

Antwoorden

Name Type Description
200 OK

RestorableGremlinDatabasesListResult

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

CosmosDBRestorableGremlinDatabaseList

Sample Request

GET https://management.azure.com/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinDatabases?api-version=2023-11-15

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableGremlinDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases",
      "name": "59c21367-b98b-4a8e-abb7-b6f46600decc",
      "properties": {
        "resource": {
          "_rid": "DLB14gAAAA==",
          "eventTimestamp": "2020-09-02T19:45:03Z",
          "ownerId": "Database1",
          "ownerResourceId": "PD5DALigDgw=",
          "operationType": "Create",
          "canUndelete": "invalid"
        }
      }
    },
    {
      "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases",
      "name": "8456cb17-cdb0-4c6a-8db8-d0ff3f886257",
      "properties": {
        "resource": {
          "_rid": "ESXNLAAAAA==",
          "eventTimestamp": "2020-09-02T19:53:42Z",
          "ownerId": "Database1",
          "ownerResourceId": "PD5DALigDgw=",
          "operationType": "Delete",
          "canUndelete": "notRestorable",
          "canUndeleteReason": "Database already exists. Only deleted resources can be restored within same account."
        }
      }
    }
  ]
}

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 Gremlin-database-gebeurtenis

RestorableGremlinDatabaseGetResult

Een Azure Cosmos DB Gremlin-database-gebeurtenis

RestorableGremlinDatabasesListResult

Het antwoord van de list-bewerking, dat de Gremlin-database-gebeurtenissen en hun 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 waarin wordt aangegeven 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 Gremlin-database-gebeurtenis

Name Type Description
_rid

string

Een door het systeem gegenereerde eigenschap. Een unieke id.

canUndelete

string

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

canUndeleteReason

string

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

eventTimestamp

string

Het tijdstip waarop deze database-gebeurtenis heeft plaatsgevonden.

operationType

OperationType

Het bewerkingstype van deze database-gebeurtenis.

ownerId

string

De naam van deze Gremlin-database.

ownerResourceId

string

De resource-id van deze Gremlin-database.

RestorableGremlinDatabaseGetResult

Een Azure Cosmos DB Gremlin-database-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 Gremlin-database-gebeurtenis

type

string

Het type Azure-resource.

RestorableGremlinDatabasesListResult

Het antwoord van de list-bewerking, dat de Gremlin-database-gebeurtenissen en hun eigenschappen bevat.

Name Type Description
value

RestorableGremlinDatabaseGetResult[]

Lijst met Gremlin-database-gebeurtenissen en hun eigenschappen.