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 매개 변수
| Name | In(다음 안에) | 필수 | 형식 | Description |
|---|---|---|---|---|
|
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 버전입니다. |
응답
| Name | 형식 | Description |
|---|---|---|
| 200 OK |
작업이 성공적으로 완료되었습니다. |
|
| Other Status Codes |
작업이 실패한 이유를 설명하는 오류 응답입니다. |
보안
azure_auth
Azure Active Directory OAuth2 흐름
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
| Name | Description |
|---|---|
| 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."
}
}
}
]
}
정의
| Name | Description |
|---|---|
|
Cloud |
서비스의 오류 응답입니다. |
|
Error |
오류 응답. |
|
Operation |
이벤트의 작업 유형을 나타내는 열거형입니다. |
| Resource |
Azure Cosmos DB MongoDB 데이터베이스 이벤트의 리소스 |
|
Restorable |
Azure Cosmos DB MongoDB 데이터베이스 이벤트 |
|
Restorable |
MongoDB 데이터베이스 이벤트 및 해당 속성을 포함하는 List 작업 응답입니다. |
CloudError
서비스의 오류 응답입니다.
| Name | 형식 | Description |
|---|---|---|
| error |
오류 응답. |
ErrorResponse
오류 응답.
| Name | 형식 | Description |
|---|---|---|
| code |
string |
오류 코드입니다. |
| message |
string |
작업이 실패한 이유를 나타내는 오류 메시지입니다. |
OperationType
이벤트의 작업 유형을 나타내는 열거형입니다.
| 값 | Description |
|---|---|
| Create | |
| Replace | |
| Delete | |
| Recreate | |
| SystemOperation |
Resource
Azure Cosmos DB MongoDB 데이터베이스 이벤트의 리소스
| Name | 형식 | Description |
|---|---|---|
| _rid |
string |
시스템 생성 속성입니다. 고유 식별자입니다. |
| canUndelete |
string |
이 데이터베이스가 동일한 계정에서 복원 가능한지 여부를 식별하는 이 데이터베이스의 상태입니다. |
| canUndeleteReason |
string |
이 데이터베이스를 동일한 계정으로 복원할 수 없는 이유입니다. |
| eventTimestamp |
string |
이 데이터베이스 이벤트가 발생한 시간입니다. |
| operationType |
이 데이터베이스 이벤트의 작업 유형입니다. |
|
| ownerId |
string |
이 MongoDB 데이터베이스의 이름입니다. |
| ownerResourceId |
string |
이 MongoDB 데이터베이스의 리소스 ID입니다. |
RestorableMongodbDatabaseGetResult
Azure Cosmos DB MongoDB 데이터베이스 이벤트
| Name | 형식 | Description |
|---|---|---|
| id |
string |
ARM 리소스의 고유 리소스 식별자입니다. |
| name |
string |
ARM 리소스의 이름입니다. |
| properties.resource |
Azure Cosmos DB MongoDB 데이터베이스 이벤트의 리소스 |
|
| type |
string |
Azure 리소스의 유형입니다. |
RestorableMongodbDatabasesListResult
MongoDB 데이터베이스 이벤트 및 해당 속성을 포함하는 List 작업 응답입니다.
| Name | 형식 | Description |
|---|---|---|
| value |
MongoDB 데이터베이스 이벤트 및 해당 속성 목록입니다. |