次の方法で共有


Restorable Gremlin Graphs - List

特定のデータベースの下にあるすべての Azure Cosmos DB Gremlin グラフで行われたすべてのミューテーションのイベント フィードを表示します。 これは、コンテナーが誤って削除されたシナリオに役立ちます。 この API には、"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read" アクセス許可が必要です

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGraphs?api-version=2025-10-15
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableGraphs?api-version=2025-10-15&restorableGremlinDatabaseRid={restorableGremlinDatabaseRid}&startTime={startTime}&endTime={endTime}

URI パラメーター

名前 / 必須 説明
instanceId
path True

string

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

location
path True

string

Cosmos DB リージョン (単語間と各単語の大文字のスペース)。

subscriptionId
path True

string

minLength: 1

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

api-version
query True

string

minLength: 1

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

endTime
query

string

復元可能な Gremlin グラフは、イベント フィードの終了時刻をグラフ化します。

restorableGremlinDatabaseRid
query

string

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

startTime
query

string

復元可能な Gremlin グラフのイベント フィードの開始時刻。

応答

名前 説明
200 OK

RestorableGremlinGraphsListResult

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

Other Status Codes

CloudError

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

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

CosmosDBRestorableGremlinGraphList

要求のサンプル

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

応答のサンプル

{
  "value": [
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGraphs",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Graph1",
          "ownerResourceId": "V18LoLrv-qA=",
          "operationType": "Create",
          "canUndelete": "invalid"
        }
      }
    },
    {
      "id": "/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs/79609a98-3394-41f8-911f-cfab0c075c86",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGraphs",
      "name": "79609a98-3394-41f8-911f-cfab0c075c86",
      "properties": {
        "resource": {
          "_rid": "zAyAPQAAAA==",
          "eventTimestamp": "2020-10-13T04:56:42Z",
          "ownerId": "Graph1",
          "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 Gremlin グラフ イベントのリソース

RestorableGremlinGraphGetResult

Azure Cosmos DB Gremlin グラフ イベント

RestorableGremlinGraphsListResult

Gremlin グラフ イベントとそのプロパティを含む List 操作応答。

CloudError

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

名前 説明
error

ErrorResponse

エラー応答。

ErrorResponse

エラー応答。

名前 説明
code

string

エラー コード。

message

string

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

OperationType

イベントの操作タイプを示す列挙型。

説明
Create
Replace
Delete
Recreate
SystemOperation

Resource

Azure Cosmos DB Gremlin グラフ イベントのリソース

名前 説明
_rid

string

システム生成プロパティ。 一意の識別子。

canUndelete

string

このグラフが同じアカウントで復元可能かどうかを識別するためのこのグラフの状態。

canUndeleteReason

string

このグラフを同じアカウントで復元できない理由。

eventTimestamp

string

このグラフイベントが発生した時刻。

operationType

OperationType

このグラフイベントの操作タイプ。

ownerId

string

この Gremlin グラフの名前。

ownerResourceId

string

この Gremlin グラフのリソース ID。

RestorableGremlinGraphGetResult

Azure Cosmos DB Gremlin グラフ イベント

名前 説明
id

string

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

name

string

ARM リソースの名前。

properties.resource

Resource

Azure Cosmos DB Gremlin グラフ イベントのリソース

type

string

Azure リソースの種類。

RestorableGremlinGraphsListResult

Gremlin グラフ イベントとそのプロパティを含む List 操作応答。

名前 説明
value

RestorableGremlinGraphGetResult[]

Gremlin グラフ イベントとそのプロパティのリスト。