Restorable Mongodb Databases - List
De gebeurtenisfeed weergeven van alle mutaties die zijn uitgevoerd op alle Azure Cosmos DB MongoDB-databases onder het herstelbare account. Dit is handig in het 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}/restorableMongodbDatabases?api-version=2023-11-15
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
instance
|
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. |
subscription
|
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 |
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
CosmosDBRestorableMongodbDatabaseList
Sample Request
GET https://management.azure.com/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbDatabases?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/restorableMongodbDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases",
"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/restorableMongodbDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases",
"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 |
---|---|
Cloud |
Een foutreactie van de service. |
Error |
Foutreactie. |
Operation |
Opsomming om het bewerkingstype van de gebeurtenis aan te geven. |
Resource |
De resource van een Azure Cosmos DB MongoDB-database-gebeurtenis |
Restorable |
Een Azure Cosmos DB MongoDB-database-gebeurtenis |
Restorable |
Het antwoord van de list-bewerking, dat de MongoDB-database-gebeurtenissen en de bijbehorende eigenschappen bevat. |
CloudError
Een foutreactie van de service.
Name | Type | Description |
---|---|---|
error |
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 MongoDB-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 |
Het bewerkingstype van deze database-gebeurtenis. |
|
ownerId |
string |
De naam van deze MongoDB-database. |
ownerResourceId |
string |
De resource-id van deze MongoDB-database. |
RestorableMongodbDatabaseGetResult
Een Azure Cosmos DB MongoDB-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 |
De resource van een Azure Cosmos DB MongoDB-database-gebeurtenis |
|
type |
string |
Het type Azure-resource. |
RestorableMongodbDatabasesListResult
Het antwoord van de list-bewerking, dat de MongoDB-database-gebeurtenissen en de bijbehorende eigenschappen bevat.
Name | Type | Description |
---|---|---|
value |
Lijst met MongoDB-database-gebeurtenissen en hun eigenschappen. |