Restorable Database Accounts - List By Location
Lijsten alle herstelbare Azure Cosmos DB-databaseaccounts die beschikbaar zijn onder het abonnement en in een regio. Voor deze aanroep is de machtiging Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read vereist.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts?api-version=2023-11-15
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
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
CosmosDBRestorableDatabaseAccountList
Sample Request
GET https://management.azure.com/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts?api-version=2023-11-15
Sample Response
{
"value": [
{
"id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d",
"name": "d9b26648-2f53-4541-b3d8-3044f4f9810d",
"location": "West US",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts",
"properties": {
"accountName": "ddb1",
"creationTime": "2020-04-11T21:56:15Z",
"deletionTime": "2021-03-12T22:05:09Z",
"oldestRestorableTime": "2021-03-12T22:05:09Z",
"apiType": "Sql",
"restorableLocations": [
{
"locationName": "South Central US",
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
"creationTime": "2020-10-30T21:13:10Z",
"deletionTime": "2020-10-30T21:13:35Z"
},
{
"locationName": "West US",
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
"creationTime": "2020-10-30T21:13:10Z"
}
]
}
},
{
"id": "/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4",
"name": "4f9e6ace-ac7a-446c-98bc-194c502a06b4",
"location": "West US",
"type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts",
"properties": {
"accountName": "ddb2",
"creationTime": "2020-05-01T08:05:18Z",
"oldestRestorableTime": "2020-05-01T08:05:18Z",
"apiType": "Sql",
"restorableLocations": [
{
"locationName": "South Central US",
"regionalDatabaseAccountInstanceId": "d7a01f78-606f-45c6-9dac-0df32f433bb5",
"creationTime": "2020-10-30T21:13:10Z",
"deletionTime": "2020-10-30T21:13:35Z"
},
{
"locationName": "West US",
"regionalDatabaseAccountInstanceId": "fdb43d84-1572-4697-b6e7-2bcda0c51b2c",
"creationTime": "2020-10-30T21:13:10Z"
}
]
}
}
]
}
Definities
Name | Description |
---|---|
Api |
Opsomming om het API-type van het herstelbare databaseaccount aan te geven. |
Cloud |
Een foutreactie van de service. |
Error |
Foutreactie. |
Restorable |
Een azure Cosmos DB-herstelbaar databaseaccount. |
Restorable |
Het antwoord van de list-bewerking, dat de herstelbare databaseaccounts en hun eigenschappen bevat. |
Restorable |
Eigenschappen van het regionale herstelbare account. |
ApiType
Opsomming om het API-type van het herstelbare databaseaccount aan te geven.
Name | Type | Description |
---|---|---|
Cassandra |
string |
|
Gremlin |
string |
|
GremlinV2 |
string |
|
MongoDB |
string |
|
Sql |
string |
|
Table |
string |
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. |
RestorableDatabaseAccountGetResult
Een azure Cosmos DB-herstelbaar databaseaccount.
Name | Type | Description |
---|---|---|
id |
string |
De unieke resource-id van de ARM-resource. |
location |
string |
De locatie van de resourcegroep waartoe de resource behoort. |
name |
string |
De naam van de ARM-resource. |
properties.accountName |
string |
De naam van het globale databaseaccount |
properties.apiType |
Het API-type van het herstelbare databaseaccount. |
|
properties.creationTime |
string |
De aanmaaktijd van het herstelbare databaseaccount (ISO-8601-indeling). |
properties.deletionTime |
string |
Het tijdstip waarop het herstelbare databaseaccount is verwijderd (ISO-8601-indeling). |
properties.oldestRestorableTime |
string |
Het minst recente tijdstip waarop het databaseaccount kan worden hersteld naar (ISO-8601-indeling). |
properties.restorableLocations |
Lijst met regio's waaruit de van het databaseaccount kan worden hersteld. |
|
type |
string |
Het type Azure-resource. |
RestorableDatabaseAccountsListResult
Het antwoord van de list-bewerking, dat de herstelbare databaseaccounts en hun eigenschappen bevat.
Name | Type | Description |
---|---|---|
value |
Lijst met herstelbare databaseaccounts en hun eigenschappen. |
RestorableLocationResource
Eigenschappen van het regionale herstelbare account.
Name | Type | Description |
---|---|---|
creationTime |
string |
De aanmaaktijd van het regionale herstelbare databaseaccount (ISO-8601-indeling). |
deletionTime |
string |
Het tijdstip waarop het regionale herstelbare databaseaccount is verwijderd (ISO-8601-indeling). |
locationName |
string |
De locatie van het regionale herstelbare account. |
regionalDatabaseAccountInstanceId |
string |
De instantie-id van het regionale herstelbare account. |