Restorable Gremlin Databases - 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}/restorableGremlinDatabases?api-version=2023-11-15

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
instanceId
path True

string

복원 가능한 데이터베이스 계정의 instanceId GUID입니다.

location
path True

string

단어와 각 단어 사이의 공백이 대문자로 표시된 Cosmos DB 영역입니다.

subscriptionId
path True

string

대상 구독의 ID입니다.

api-version
query True

string

이 작업에 사용할 API 버전입니다.

응답

Name 형식 Description
200 OK

RestorableGremlinDatabasesListResult

작업이 성공적으로 완료되었습니다.

Other Status Codes

CloudError

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

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 사용자 계정 가장

예제

CosmosDBRestorableGremlinDatabaseList

Sample Request

GET https://management.azure.com/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinDatabases?api-version=2023-11-15

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableGremlinDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases",
      "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/restorableGremlinDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257",
      "type": "Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases",
      "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."
        }
      }
    }
  ]
}

정의

Name Description
CloudError

서비스의 오류 응답입니다.

ErrorResponse

오류 응답.

OperationType

이벤트의 작업 유형을 나타내는 열거형입니다.

Resource

Azure Cosmos DB Gremlin 데이터베이스 이벤트의 리소스

RestorableGremlinDatabaseGetResult

Azure Cosmos DB Gremlin 데이터베이스 이벤트

RestorableGremlinDatabasesListResult

Gremlin 데이터베이스 이벤트 및 해당 속성을 포함하는 목록 작업 응답입니다.

CloudError

서비스의 오류 응답입니다.

Name 형식 Description
error

ErrorResponse

오류 응답.

ErrorResponse

오류 응답.

Name 형식 Description
code

string

오류 코드

message

string

작업이 실패한 이유를 나타내는 오류 메시지입니다.

OperationType

이벤트의 작업 유형을 나타내는 열거형입니다.

Name 형식 Description
Create

string

Delete

string

Recreate

string

Replace

string

SystemOperation

string

Resource

Azure Cosmos DB Gremlin 데이터베이스 이벤트의 리소스

Name 형식 Description
_rid

string

시스템 생성 속성입니다. 고유 식별자입니다.

canUndelete

string

이 데이터베이스를 동일한 계정에서 복원할 수 있는지 식별하는 이 데이터베이스의 상태입니다.

canUndeleteReason

string

이 데이터베이스를 동일한 계정으로 복원할 수 없는 이유입니다.

eventTimestamp

string

이 데이터베이스 이벤트가 발생한 시간입니다.

operationType

OperationType

이 데이터베이스 이벤트의 작업 형식입니다.

ownerId

string

이 Gremlin 데이터베이스의 이름입니다.

ownerResourceId

string

이 Gremlin 데이터베이스의 리소스 ID입니다.

RestorableGremlinDatabaseGetResult

Azure Cosmos DB Gremlin 데이터베이스 이벤트

Name 형식 Description
id

string

ARM 리소스의 고유 리소스 식별자입니다.

name

string

ARM 리소스의 이름입니다.

properties.resource

Resource

Azure Cosmos DB Gremlin 데이터베이스 이벤트의 리소스

type

string

Azure 리소스의 유형입니다.

RestorableGremlinDatabasesListResult

Gremlin 데이터베이스 이벤트 및 해당 속성을 포함하는 목록 작업 응답입니다.

Name 형식 Description
value

RestorableGremlinDatabaseGetResult[]

Gremlin 데이터베이스 이벤트 및 해당 속성 목록입니다.