Restorable Mongodb Collections - 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}/restorableMongodbCollections?api-version=2023-11-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections?api-version=2023-11-15&restorableMongodbDatabaseRid={restorableMongodbDatabaseRid}&startTime={startTime}&endTime={endTime}

URI パラメーター

名前 / 必須 説明
instanceId
path True

string

復元可能なデータベース アカウントの InstanceId GUID。

location
path True

string

Cosmos DB リージョン。単語と各単語の間にスペースが大文字で表示されます。

subscriptionId
path True

string

ターゲット サブスクリプションの ID。

api-version
query True

string

この操作に使用する API バージョン。

endTime
query

string

復元可能な MongoDB コレクションイベント フィードの終了時刻。

restorableMongodbDatabaseRid
query

string

MongoDB データベースのリソース ID。

startTime
query

string

復元可能な MongoDB コレクションイベント フィードの開始時刻。

応答

名前 説明
200 OK

RestorableMongodbCollectionsListResult

操作は正常に完了しました。

Other Status Codes

CloudError

操作に失敗した理由を説明するエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

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

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

CosmosDBRestorableMongodbCollectionList

Sample Request

GET https://management.azure.com/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections?api-version=2023-11-15&restorableMongodbDatabaseRid=PD5DALigDgw=

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Collection1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Create",
          "canUndelete": "invalid"
        }
      }
    },
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Collection1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Delete",
          "canUndelete": "notRestorable",
          "canUndeleteReason": "Individual shared database collections restore is not supported. Please restore shared database to restore its collections that share the throughput."
        }
      }
    }
  ]
}

定義

名前 説明
CloudError

サービスからのエラー応答。

ErrorResponse

エラー応答。

OperationType

イベントの操作の種類を示す列挙。

Resource

Azure Cosmos DB MongoDB コレクション イベントのリソース

RestorableMongodbCollectionGetResult

Azure Cosmos DB MongoDB コレクション イベント

RestorableMongodbCollectionsListResult

MongoDB コレクション イベントとそのプロパティを含む List 操作応答。

CloudError

サービスからのエラー応答。

名前 説明
error

ErrorResponse

エラー応答。

ErrorResponse

エラー応答。

名前 説明
code

string

エラー コード。

message

string

操作が失敗した理由を示すエラー メッセージ。

OperationType

イベントの操作の種類を示す列挙。

名前 説明
Create

string

Delete

string

Recreate

string

Replace

string

SystemOperation

string

Resource

Azure Cosmos DB MongoDB コレクション イベントのリソース

名前 説明
_rid

string

システムによって生成されたプロパティ。 一意識別子。

canUndelete

string

このコンテナーが同じアカウントで復元可能かどうかを識別する、このコレクションの状態。

canUndeleteReason

string

このコレクションを同じアカウントで復元できない理由。

eventTimestamp

string

このコレクション イベントが発生した時刻。

operationType

OperationType

このコレクション イベントの操作の種類。

ownerId

string

この MongoDB コレクションの名前。

ownerResourceId

string

この MongoDB コレクションのリソース ID。

RestorableMongodbCollectionGetResult

Azure Cosmos DB MongoDB コレクション イベント

名前 説明
id

string

ARM リソースの一意のリソース識別子。

name

string

ARM リソースの名前。

properties.resource

Resource

Azure Cosmos DB MongoDB コレクション イベントのリソース

type

string

Azure リソースの種類。

RestorableMongodbCollectionsListResult

MongoDB コレクション イベントとそのプロパティを含む List 操作応答。

名前 説明
value

RestorableMongodbCollectionGetResult[]

MongoDB コレクション イベントとそのプロパティの一覧。