Restorable Dropped Databases - Get
获取可还原的已删除数据库。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}?api-version=2025-01-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}?api-version=2025-01-01&$expand={$expand}&$filter={$filter}
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
restorable
|
path | True |
string |
|
|
server
|
path | True |
string |
服务器的名称。 |
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
|
$expand
|
query |
string |
要包含在响应中的子资源。 |
|
|
$filter
|
query |
string |
一个 OData 筛选器表达式,用于筛选集合中的元素。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
Azure 运营顺利完成。 |
|
| Other Status Codes |
意外的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
| Gets a restorable dropped database with expand equals keys. |
| Gets a restorable dropped database. |
Gets a restorable dropped database with expand equals keys.
示例请求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/restorableDroppedDatabases/testdb,131403269876900000?api-version=2025-01-01&$expand=keys
示例响应
{
"name": "testdb,131403269876900000",
"type": "Microsoft.Sql/servers/restorableDroppedDatabases",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/restorableDroppedDatabases/testdb",
"location": "southeastasia",
"properties": {
"backupStorageRedundancy": "Geo",
"creationDate": "2017-05-07T04:41:33.937Z",
"databaseName": "testdb",
"deletionDate": "2017-05-27T02:49:47.69Z",
"keys": {
"https://your-key-vault-name.vault.azure.net/yourKey/yourKeyVersion": {},
"https://your-key-vault-name.vault.azure.net/yourKey2/yourKey2Version": {}
},
"maxSizeBytes": 268435456000
},
"sku": {
"name": "BC_Gen4_2",
"tier": "BusinessCritical"
}
}
Gets a restorable dropped database.
示例请求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/restorableDroppedDatabases/testdb,131403269876900000?api-version=2025-01-01
示例响应
{
"name": "testdb,131403269876900000",
"type": "Microsoft.Sql/servers/restorableDroppedDatabases",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/restorableDroppedDatabases/testdb",
"location": "southeastasia",
"properties": {
"backupStorageRedundancy": "Geo",
"creationDate": "2017-05-07T04:41:33.937Z",
"databaseName": "testdb",
"deletionDate": "2017-05-27T02:49:47.69Z",
"maxSizeBytes": 268435456000
},
"sku": {
"name": "BC_Gen4_2",
"tier": "BusinessCritical"
}
}
定义
| 名称 | 说明 |
|---|---|
|
Backup |
用于存储此数据库的备份的存储帐户类型。 |
|
created |
创建资源的标识的类型。 |
|
Database |
用于静态加密的数据库级密钥。 |
|
Database |
数据库密钥类型。 仅支持的值是“AzureKeyVault”。 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Restorable |
可还原的已删除数据库资源。 |
| Sku |
ARM 资源 SKU。 |
|
system |
与创建和上次修改资源相关的元数据。 |
BackupStorageRedundancy
用于存储此数据库的备份的存储帐户类型。
| 值 | 说明 |
|---|---|
| Geo |
地理位置 |
| Local |
本地 |
| Zone |
区域 |
| GeoZone |
GeoZone |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
DatabaseKey
用于静态加密的数据库级密钥。
| 名称 | 类型 | 说明 |
|---|---|---|
| creationDate |
string (date-time) |
数据库密钥创建日期。 |
| keyVersion |
string |
数据库密钥的版本。 |
| subregion |
string |
服务器密钥的子区域。 |
| thumbprint |
string |
数据库密钥的指纹。 |
| type |
数据库密钥类型。 仅支持的值是“AzureKeyVault”。 |
DatabaseKeyType
数据库密钥类型。 仅支持的值是“AzureKeyVault”。
| 值 | 说明 |
|---|---|
| AzureKeyVault |
AzureKeyVault |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
附加信息。 |
| type |
string |
附加信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
RestorableDroppedDatabase
可还原的已删除数据库资源。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string (arm-id) |
资源的完全限定资源 ID。 例如,“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
| location |
string |
资源位置。 |
| name |
string |
资源的名称 |
| properties.backupStorageRedundancy |
用于存储此数据库的备份的存储帐户类型。 |
|
| properties.creationDate |
string (date-time) |
数据库的创建日期(ISO8601格式)。 |
| properties.databaseName |
string |
数据库的名称。 |
| properties.deletionDate |
string (date-time) |
数据库的删除日期(ISO8601格式)。 |
| properties.earliestRestoreDate |
string (date-time) |
数据库的最早还原日期(ISO8601格式)。 |
| properties.keys |
<string,
Database |
要使用的用户分配标识的资源 ID |
| properties.maxSizeBytes |
integer (int64) |
以字节表示的数据库的最大大小。 |
| sku |
SKU 的名称和层。 |
|
| systemData |
Azure 资源管理器 包含 createdBy 和 modifiedBy 信息的元数据。 |
|
| tags |
object |
资源标记。 |
| type |
string |
资源类型。 例如,“Microsoft。计算/虚拟机“或”Microsoft“。存储/存储账户” |
Sku
ARM 资源 SKU。
| 名称 | 类型 | 说明 |
|---|---|---|
| capacity |
integer (int32) |
特定 SKU 的容量。 |
| family |
string |
如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 |
| name |
string |
SKU 的名称,通常为字母 + 数字代码,例如 P3。 |
| size |
string |
特定 SKU 的大小 |
| tier |
string |
特定 SKU 的层或版本,例如基本 SKU、高级版。 |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
资源上次修改的时间戳 (UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |