Restorable Gremlin Graphs - List
Zobrazení informačního kanálu událostí všech mutací provedených na všech grafech Gremlin služby Azure Cosmos DB v konkrétní databázi To pomáhá ve scénáři, kdy došlo k náhodnému odstranění kontejneru. 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=2023-11-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGraphs?api-version=2023-11-15&restorableGremlinDatabaseRid={restorableGremlinDatabaseRid}&startTime={startTime}&endTime={endTime}
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
instance
|
path | True |
string |
InstanceId GUID 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 |
subscription
|
path | True |
string |
ID cílového předplatného. |
api-version
|
query | True |
string |
Verze rozhraní API, která se má použít pro tuto operaci. |
end
|
query |
string |
Čas ukončení kanálu událostí obnovitelných grafů Gremlin |
|
restorable
|
query |
string |
ID prostředku databáze Gremlin. |
|
start
|
query |
string |
Čas zahájení kanálu událostí obnovitelných grafů Gremlin |
Odpovědi
Name | Typ | Description |
---|---|---|
200 OK |
Operace byla úspěšně dokončena. |
|
Other Status Codes |
Chybová odpověď popisující, proč operace selhala. |
Zabezpečení
azure_auth
Tok Azure Active Directory OAuth2
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | Zosobnění uživatelského účtu |
Příklady
CosmosDBRestorableGremlinGraphList
Sample Request
GET https://management.azure.com/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs?api-version=2023-11-15&restorableGremlinDatabaseRid=PD5DALigDgw=
Sample Response
{
"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 |
---|---|
Cloud |
Chybová odpověď ze služby. |
Error |
Odpověď na chybu. |
Operation |
Výčet označující typ operace události. |
Resource |
Prostředek události grafu Gremlin služby Azure Cosmos DB |
Restorable |
Událost grafu Gremlin ve službě Azure Cosmos DB |
Restorable |
Odpověď operace Výpis, která obsahuje události grafu Gremlin a jejich vlastnosti. |
CloudError
Chybová odpověď ze služby.
Name | Typ | Description |
---|---|---|
error |
Odpověď na chybu. |
ErrorResponse
Odpověď na chybu.
Name | Typ | Description |
---|---|---|
code |
string |
Kód chyby |
message |
string |
Chybová zpráva s informacemi o tom, proč operace selhala. |
OperationType
Výčet označující typ operace události.
Name | Typ | Description |
---|---|---|
Create |
string |
|
Delete |
string |
|
Recreate |
string |
|
Replace |
string |
|
SystemOperation |
string |
Resource
Prostředek události grafu Gremlin služby Azure Cosmos DB
Name | Typ | Description |
---|---|---|
_rid |
string |
Systémem vygenerovaná vlastnost. Jedinečný identifikátor. |
canUndelete |
string |
Stav tohoto grafu k určení, jestli je tento graf obnovitelný ve stejném účtu. |
canUndeleteReason |
string |
Důvod, proč tento graf nelze obnovit ve stejném účtu. |
eventTimestamp |
string |
Čas, kdy k této události grafu došlo. |
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 |
Prostředek události grafu Gremlin služby Azure Cosmos DB |
|
type |
string |
Typ prostředku Azure. |
RestorableGremlinGraphsListResult
Odpověď operace Výpis, která obsahuje události grafu Gremlin a jejich vlastnosti.
Name | Typ | Description |
---|---|---|
value |
Seznam událostí grafu Gremlin a jejich vlastností |