Restorable Mongodb Resources - List

Retourneert een lijst met database- en verzamelingscombinaties die aanwezig zijn in het account op de opgegeven tijdstempel en locatie. Dit helpt in scenario's om te valideren welke resources 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}/restorableMongodbResources?api-version=2023-11-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources?api-version=2023-11-15&restoreLocation={restoreLocation}&restoreTimestampInUtc={restoreTimestampInUtc}

URI-parameters

Name In Vereist Type Description
instanceId
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.

subscriptionId
path True

string

De id van het doelabonnement.

api-version
query True

string

De API-versie die voor deze bewerking moet worden gebruikt.

restoreLocation
query

string

De locatie waar de herstelbare resources zich bevinden.

restoreTimestampInUtc
query

string

De tijdstempel wanneer de herstelbare resources bestonden.

Antwoorden

Name Type Description
200 OK

RestorableMongodbResourcesListResult

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

CosmosDBRestorableMongodbResourceList

Sample Request

GET https://management.azure.com/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbResources?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/restorablemongodbresources/Database1",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablemongodbresources",
      "name": "Database1",
      "databaseName": "Database1",
      "collectionNames": [
        "Collection1"
      ]
    },
    {
      "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablemongodbresources/Database2",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablemongodbresources",
      "name": "Database2",
      "databaseName": "Database2",
      "collectionNames": [
        "Collection1",
        "Collection2"
      ]
    },
    {
      "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablemongodbresources/Database3",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablemongodbresources",
      "name": "Database3",
      "databaseName": "Database3",
      "collectionNames": []
    }
  ]
}

Definities

Name Description
CloudError

Een foutreactie van de service.

ErrorResponse

Foutreactie.

RestorableMongodbResourcesGetResult

Specifieke databases die moeten worden hersteld.

RestorableMongodbResourcesListResult

Het antwoord van de list-bewerking, dat de herstelbare MongoDB-resources bevat.

CloudError

Een foutreactie van de service.

Name Type Description
error

ErrorResponse

Foutreactie.

ErrorResponse

Foutreactie.

Name Type Description
code

string

Foutcode.

message

string

Foutbericht dat aangeeft waarom de bewerking is mislukt.

RestorableMongodbResourcesGetResult

Specifieke databases die moeten worden hersteld.

Name Type Description
collectionNames

string[]

De namen van de verzamelingen die beschikbaar zijn voor herstel.

databaseName

string

De naam van de database die beschikbaar is 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.

RestorableMongodbResourcesListResult

Het antwoord van de list-bewerking, dat de herstelbare MongoDB-resources bevat.

Name Type Description
value

RestorableMongodbResourcesGetResult[]

Lijst met herstelbare MongoDB-resources, inclusief de database- en verzamelingsnamen.