Sdílet prostřednictvím


Restorable Gremlin Graphs - List

Zobrazte kanál událostí všech mutací provedených ve všech grafech Gremlin služby Azure Cosmos DB v konkrétní databázi. To pomáhá ve scénáři, kdy se kontejner omylem odstranil. Toto rozhraní API vyžaduje oprávnění Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read.

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

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
instanceId
path True

string

Identifikátor GUID instanceId obnovitelného databázového účtu.

location
path True

string

Oblast Cosmos DB s mezerami mezi slovy a jednotlivými slovy velkými písmeny

subscriptionId
path True

string

minLength: 1

ID cílového předplatného.

api-version
query True

string

minLength: 1

Verze rozhraní API, která se má použít pro tuto operaci.

endTime
query

string

Obnovitelný čas ukončení kanálu událostí v grafech Gremlin

restorableGremlinDatabaseRid
query

string

ID prostředku databáze Gremlin.

startTime
query

string

Čas spuštění kanálu událostí v grafech Gremlin s možností obnovení

Odpovědi

Name Typ Description
200 OK

RestorableGremlinGraphsListResult

Operace byla úspěšně dokončena.

Other Status Codes

CloudError

Chybová odpověď popisující, proč operace selhala.

Zabezpečení

azure_auth

Azure Active Directory OAuth2 Flow

Typ: oauth2
Tok: implicit
URL autorizace: https://login.microsoftonline.com/common/oauth2/authorize

Rozsahy

Name Description
user_impersonation Zosobnění uživatelského účtu

Příklady

CosmosDBRestorableGremlinGraphList

Ukázkový požadavek

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

Ukázková odpověď

{
  "value": [
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGraphs",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Graph1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Create",
          "canUndelete": "invalid"
        }
      }
    },
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGraphs",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Graph1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Delete",
          "canUndelete": "notRestorable",
          "canUndeleteReason": "Individual shared database collections restore is not supported. Please restore shared database to restore its collections that share the throughput."
        }
      }
    }
  ]
}

Definice

Name Description
CloudError

Chybová odpověď ze služby.

ErrorResponse

Chybová odpověď.

OperationType

Výčet označující typ operace události.

Resource

Prostředek události grafu Gremlin služby Azure Cosmos DB

RestorableGremlinGraphGetResult

Událost grafu Gremlin ve službě Azure Cosmos DB

RestorableGremlinGraphsListResult

Odpověď operace List, která obsahuje události grafu Gremlin a jejich vlastnosti.

CloudError

Chybová odpověď ze služby.

Name Typ Description
error

ErrorResponse

Chybová odpověď.

ErrorResponse

Chybová odpověď.

Name Typ Description
code

string

Kód chyby

message

string

Chybová zpráva označující, proč operace selhala.

OperationType

Výčet označující typ operace události.

Hodnota Description
Create
Delete
Recreate
Replace
SystemOperation

Resource

Prostředek události grafu Gremlin služby Azure Cosmos DB

Name Typ Description
_rid

string

Systém vygeneroval vlastnost. Jedinečný identifikátor.

canUndelete

string

Stav tohoto grafu, který identifikuje, jestli je tento graf obnovitelný ve stejném účtu.

canUndeleteReason

string

Důvod, proč se tento graf nedá obnovit ve stejném účtu

eventTimestamp

string

Čas, kdy k této události grafu došlo.

operationType

OperationType

Typ operace této události grafu.

ownerId

string

Název tohoto grafu Gremlin.

ownerResourceId

string

ID prostředku tohoto grafu Gremlin.

RestorableGremlinGraphGetResult

Událost grafu Gremlin ve službě Azure Cosmos DB

Name Typ Description
id

string

Jedinečný identifikátor prostředku ARM.

name

string

Název prostředku ARM.

properties.resource

Resource

Prostředek události grafu Gremlin služby Azure Cosmos DB

type

string

Typ prostředku Azure.

RestorableGremlinGraphsListResult

Odpověď operace List, která obsahuje události grafu Gremlin a jejich vlastnosti.

Name Typ Description
value

RestorableGremlinGraphGetResult[]

Seznam událostí grafu Gremlin a jejich vlastností