你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Restorable Dropped Databases - Get
获取可还原的已删除数据库。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}?api-version=2021-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
restorable
|
path | True |
string |
|
server
|
path | True |
string |
服务器的名称。 |
subscription
|
path | True |
string |
用于标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索指定的可还原删除数据库。 |
|
Other Status Codes |
错误响应: ***
|
示例
Gets a restorable dropped database.
Sample Request
Sample Response
{
"sku": {
"name": "BC_Gen4_2",
"tier": "BusinessCritical"
},
"properties": {
"databaseName": "testdb",
"maxSizeBytes": 268435456000,
"creationDate": "2017-05-07T04:41:33.937Z",
"deletionDate": "2017-05-27T02:49:47.69Z",
"backupStorageRedundancy": "Geo"
},
"location": "southeastasia",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/testsvr/restorableDroppedDatabases/testdb",
"name": "testdb,131403269876900000",
"type": "Microsoft.Sql/servers/restorableDroppedDatabases"
}
定义
名称 | 说明 |
---|---|
Backup |
用于存储此数据库的备份的存储帐户类型。 |
Restorable |
可还原的已删除数据库资源。 |
Sku |
ARM 资源 SKU。 |
BackupStorageRedundancy
用于存储此数据库的备份的存储帐户类型。
名称 | 类型 | 说明 |
---|---|---|
Geo |
string |
|
GeoZone |
string |
|
Local |
string |
|
Zone |
string |
RestorableDroppedDatabase
可还原的已删除数据库资源。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
location |
string |
资源位置。 |
name |
string |
资源名称。 |
properties.backupStorageRedundancy |
用于存储此数据库的备份的存储帐户类型。 |
|
properties.creationDate |
string |
数据库的创建日期 (ISO8601 格式) 。 |
properties.databaseName |
string |
数据库的名称。 |
properties.deletionDate |
string |
数据库的删除日期 (ISO8601 格式) 。 |
properties.earliestRestoreDate |
string |
数据库的最早还原日期 (ISO8601 格式) 。 |
properties.maxSizeBytes |
integer |
以字节表示的数据库的最大大小。 |
sku |
SKU 的名称和层。 |
|
tags |
object |
资源标记。 |
type |
string |
资源类型。 |
Sku
ARM 资源 SKU。
名称 | 类型 | 说明 |
---|---|---|
capacity |
integer |
特定 SKU 的容量。 |
family |
string |
如果服务具有不同代系的硬件(对于同一 SKU),则可以在此处进行捕获。 |
name |
string |
SKU 的名称,通常为字母 + 数字代码,例如 P3。 |
size |
string |
特定 SKU 的大小 |
tier |
string |
特定 SKU 的层或版本,例如“基本”、“高级”。 |