Restorable Mongodb Databases - List
復元可能なアカウントのすべての Azure Cosmos DB MongoDB データベースで実行されたすべてのミューテーションのイベント フィードを表示します。 これは、データベースが誤って削除されて削除時刻を取得したシナリオに役立ちます。 この API には、"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read" アクセス許可が必要です
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{___location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases?api-version=2025-10-15
URI パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
instance
|
path | True |
string |
復元可能なデータベース アカウントの instanceId GUID。 |
|
___location
|
path | True |
string |
Cosmos DB リージョン (単語間と各単語の大文字のスペース)。 |
|
subscription
|
path | True |
string minLength: 1 |
ターゲット サブスクリプションの ID。 |
|
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
操作が正常に完了しました。 |
|
| Other Status Codes |
操作が失敗した理由を説明するエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| 名前 | 説明 |
|---|---|
| user_impersonation | ユーザー アカウントを偽装する |
例
CosmosDBRestorableMongodbDatabaseList
要求のサンプル
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=2025-10-15
応答のサンプル
{
"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."
}
}
}
]
}
定義
| 名前 | 説明 |
|---|---|
|
Cloud |
サービスからのエラー応答。 |
|
Error |
エラー応答。 |
|
Operation |
イベントの操作タイプを示す列挙型。 |
| Resource |
Azure Cosmos DB MongoDB データベース イベントのリソース |
|
Restorable |
Azure Cosmos DB MongoDB データベース イベント |
|
Restorable |
MongoDB データベースイベントとそのプロパティを含む List 操作応答。 |
CloudError
サービスからのエラー応答。
| 名前 | 型 | 説明 |
|---|---|---|
| error |
エラー応答。 |
ErrorResponse
エラー応答。
| 名前 | 型 | 説明 |
|---|---|---|
| code |
string |
エラー コード。 |
| message |
string |
操作が失敗した理由を示すエラー メッセージ。 |
OperationType
イベントの操作タイプを示す列挙型。
| 値 | 説明 |
|---|---|
| Create | |
| Replace | |
| Delete | |
| Recreate | |
| SystemOperation |
Resource
Azure Cosmos DB MongoDB データベース イベントのリソース
| 名前 | 型 | 説明 |
|---|---|---|
| _rid |
string |
システム生成プロパティ。 一意の識別子。 |
| canUndelete |
string |
このデータベースが同じアカウントで復元可能かどうかを識別するためのこのデータベースの状態。 |
| canUndeleteReason |
string |
このデータベースを同じアカウントで復元できない理由。 |
| eventTimestamp |
string |
このデータベース・イベントが発生した時刻。 |
| operationType |
このデータベース・イベントの操作タイプ。 |
|
| ownerId |
string |
このMongoDBデータベースの名前。 |
| ownerResourceId |
string |
この MongoDB データベースのリソース ID。 |
RestorableMongodbDatabaseGetResult
Azure Cosmos DB MongoDB データベース イベント
| 名前 | 型 | 説明 |
|---|---|---|
| id |
string |
ARM リソースの一意のリソース識別子。 |
| name |
string |
ARM リソースの名前。 |
| properties.resource |
Azure Cosmos DB MongoDB データベース イベントのリソース |
|
| type |
string |
Azure リソースの種類。 |
RestorableMongodbDatabasesListResult
MongoDB データベースイベントとそのプロパティを含む List 操作応答。
| 名前 | 型 | 説明 |
|---|---|---|
| value |
MongoDB データベースイベントとそのプロパティのリスト。 |