Restorable Gremlin Resources - List
Retourneert een lijst met combinaties van gremlin-databases en grafieken die aanwezig zijn in het account op de opgegeven tijdstempel en locatie. Dit helpt in scenario's om te valideren welke resources er bestaan op een bepaalde tijdstempel en locatie. 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}/restorableGremlinResources?api-version=2023-11-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGremlinResources?api-version=2023-11-15&restoreLocation={restoreLocation}&restoreTimestampInUtc={restoreTimestampInUtc}
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
instance
|
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. |
subscription
|
path | True |
string |
De id van het doelabonnement. |
api-version
|
query | True |
string |
De API-versie die voor deze bewerking moet worden gebruikt. |
restore
|
query |
string |
De locatie waar de restorable resources zich bevinden. |
|
restore
|
query |
string |
De tijdstempel wanneer de restorable resources bestonden. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De bewerking is voltooid. |
|
Other Status Codes |
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
CosmosDBRestorableGremlinResourceList
Sample Request
GET https://management.azure.com/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources?api-version=2023-11-15&restoreLocation=WestUS&restoreTimestampInUtc=06/01/2022 4:56
Sample Response
{
"value": [
{
"id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources/Database1",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinResources",
"name": "Database1",
"databaseName": "Database1",
"graphNames": [
"Graph1"
]
},
{
"id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources/Database2",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinResources",
"name": "Database2",
"databaseName": "Database2",
"graphNames": [
"Graph1",
"Graph2"
]
},
{
"id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources/Database3",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinResources",
"name": "Database3",
"databaseName": "Database3",
"graphNames": []
}
]
}
Definities
Name | Description |
---|---|
Cloud |
Een foutreactie van de service. |
Error |
Foutreactie. |
Restorable |
Specifieke databases die moeten worden hersteld. |
Restorable |
Het antwoord van de List-bewerking, dat de restorable Gremlin-resources bevat. |
CloudError
Een foutreactie van de service.
Name | Type | Description |
---|---|---|
error |
Foutreactie. |
ErrorResponse
Foutreactie.
Name | Type | Description |
---|---|---|
code |
string |
Foutcode. |
message |
string |
Foutbericht waarin wordt aangegeven waarom de bewerking is mislukt. |
RestorableGremlinResourcesGetResult
Specifieke databases die moeten worden hersteld.
Name | Type | Description |
---|---|---|
databaseName |
string |
De naam van de gremlin-database die beschikbaar is voor herstel. |
graphNames |
string[] |
De namen van de grafieken die beschikbaar zijn voor herstel. |
id |
string |
De unieke resource-id van de ARM-resource. |
name |
string |
De naam van de ARM-resource. |
type |
string |
Het type Azure-resource. |
RestorableGremlinResourcesListResult
Het antwoord van de List-bewerking, dat de restorable Gremlin-resources bevat.
Name | Type | Description |
---|---|---|
value |
Lijst met restorable Gremlin-resources, inclusief de namen van de gremlin-database en grafiek. |