Restorable Dropped Databases - Get
获取可还原的已删除数据库
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppededDatabaseId}?api-version=2014-04-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
resource
|
path | True |
string |
包含资源的资源组的名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
|
restorable
|
path | True |
string |
以 databaseName、deleteTimeInFileTimeFormat 格式的已删除数据库的 ID |
|
server
|
path | True |
string |
服务器的名称。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行 |
示例
Get a restorable dropped database
示例请求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1257/providers/Microsoft.Sql/servers/restorabledroppeddatabasetest-2389/restorableDroppedDatabases/restorabledroppeddatabasetest-7654,131403269876900000?api-version=2014-04-01
示例响应
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1257/providers/Microsoft.Sql/servers/restorabledroppeddatabasetest-2389/restorableDroppedDatabases/restorabledroppeddatabasetest-7654,131403269876900000",
"name": "restorabledroppeddatabasetest-7654,131403269876900000",
"type": "Microsoft.Sql/servers/restorableDroppedDatabases",
"location": "Japan East",
"properties": {
"databaseName": "restorabledroppeddatabasetest-7654",
"edition": "Basic",
"maxSizeBytes": "2147483648",
"serviceLevelObjective": "Basic",
"elasticPoolName": null,
"creationDate": "2017-02-10T00:56:19.2Z",
"deletionDate": "2017-05-27T02:49:47.69Z",
"earliestRestoreDate": "2017-05-20T02:49:47.69Z"
}
}
定义
RestorableDroppedDatabase
可还原的已删除数据库
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| location |
string |
资源所在的地理位置 |
| name |
string |
资源名称。 |
| properties.creationDate |
string (date-time) |
数据库的创建日期(ISO8601格式) |
| properties.databaseName |
string |
数据库的名称 |
| properties.deletionDate |
string (date-time) |
数据库的删除日期(ISO8601格式) |
| properties.earliestRestoreDate |
string (date-time) |
数据库的最早还原日期(ISO8601格式) |
| properties.edition |
string |
数据库的版本 |
| properties.elasticPoolName |
string |
数据库的弹性池名称 |
| properties.maxSizeBytes |
string |
数据库的最大大小(以字节为单位) |
| properties.serviceLevelObjective |
string |
数据库的服务级别目标名称 |
| type |
string |
资源类型。 |