Share via


Restorable Gremlin Resources - List

Adja vissza a gremlin-adatbázis és a gráfok kombinált listáját, amelyek a fiókban a megadott időbélyegen és helyen találhatók. Ez segít a forgatókönyvekben annak ellenőrzésében, hogy milyen erőforrások léteznek az adott időbélyegben és helyen. Ehhez az API-hoz "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read" engedély szükséges.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGremlinResources?api-version=2024-05-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGremlinResources?api-version=2024-05-15&restoreLocation={restoreLocation}&restoreTimestampInUtc={restoreTimestampInUtc}

URI-paraméterek

Name In Kötelező Típus Description
instanceId
path True

string

Visszaállítható adatbázisfiók instanceId GUID azonosítója.

location
path True

string

Cosmos DB-régió, a szavak és az egyes szavak közötti szóközök nagybetűvel.

subscriptionId
path True

string

A cél-előfizetés azonosítója.

api-version
query True

string

A művelethez használandó API-verzió.

restoreLocation
query

string

A helyreállítható erőforrások helyének helye.

restoreTimestampInUtc
query

string

Az időbélyeg, amikor a visszaállítható erőforrások léteztek.

Válaszok

Name Típus Description
200 OK

RestorableGremlinResourcesListResult

A művelet sikeresen befejeződött.

Other Status Codes

CloudError

Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg.

Biztonság

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation A felhasználói fiók megszemélyesítése

Példák

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=2024-05-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": []
    }
  ]
}

Definíciók

Name Description
CloudError

Hibaválasz a szolgáltatástól.

ErrorResponse

Hibaválasz.

RestorableGremlinResourcesGetResult

Adott visszaállítandó adatbázisok.

RestorableGremlinResourcesListResult

A Helyreállítható Gremlin-erőforrásokat tartalmazó Listázási művelet válasza.

CloudError

Hibaválasz a szolgáltatástól.

Name Típus Description
error

ErrorResponse

Hibaválasz.

ErrorResponse

Hibaválasz.

Name Típus Description
code

string

Hibakód.

message

string

Hibaüzenet jelzi, hogy a művelet miért nem sikerült.

RestorableGremlinResourcesGetResult

Adott visszaállítandó adatbázisok.

Name Típus Description
databaseName

string

A visszaállítható Gremlin-adatbázis neve.

graphNames

string[]

A visszaállításhoz elérhető grafikonok neve.

id

string

Az ARM-erőforrás egyedi erőforrás-azonosítója.

name

string

Az ARM-erőforrás neve.

type

string

Az Azure-erőforrás típusa.

RestorableGremlinResourcesListResult

A Helyreállítható Gremlin-erőforrásokat tartalmazó Listázási művelet válasza.

Name Típus Description
value

RestorableGremlinResourcesGetResult[]

Visszaállítható Gremlin-erőforrások listája, beleértve a Gremlin-adatbázist és a gráfneveket.