Long Term Retention Managed Instance Backups - Get
获取托管数据库的长期保留备份。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}?api-version=2023-08-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
backup
|
path | True |
string |
备份名称。 |
|
database
|
path | True |
string |
托管数据库的名称。 |
|
location
|
path | True |
string |
数据库的位置。 |
|
managed
|
path | True |
string |
托管实例的名称。 |
|
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
|
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功检索备份。 |
|
| Other Status Codes |
错误响应: ***
|
示例
Get the long term retention backup of a managed database.
示例请求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/japaneast/longTermRetentionManagedInstances/testInstance/longTermRetentionDatabases/testDatabase/longTermRetentionManagedInstanceBackups/55555555-6666-7777-8888-999999999999;131637960820000000;Archive?api-version=2023-08-01
示例响应
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/Locations/japaneast/longTermRetentionManagedInstances/testInstance/longTermRetentionDatabases/testDatabase/longTermRetentionManagedInstanceBackups/55555555-6666-7777-8888-999999999999;131637960820000000;Archive",
"name": "55555555-6666-7777-8888-999999999999;131637960820000000;Archive",
"type": "Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups",
"properties": {
"managedInstanceName": "testInstance",
"managedInstanceCreateTime": "2017-09-01T08:00:00Z",
"databaseName": "testDatabase",
"databaseDeletionTime": null,
"backupTime": "2018-08-23T08:00:00Z",
"backupStorageRedundancy": "Geo",
"backupStorageAccessTier": "Archive"
}
}
定义
| 名称 | 说明 |
|---|---|
|
Backup |
LTR 备份的 BackupStorageAccessTier |
|
Backup |
备份的存储冗余类型 |
|
Error |
资源管理错误附加信息。 |
|
Error |
错误详细信息。 |
|
Error |
错误响应 |
|
Managed |
托管数据库的长期保留备份。 |
BackupStorageAccessTier
LTR 备份的 BackupStorageAccessTier
| 值 | 说明 |
|---|---|
| Hot | |
| Archive |
BackupStorageRedundancy
备份的存储冗余类型
| 值 | 说明 |
|---|---|
| Geo | |
| Local | |
| Zone | |
| GeoZone |
ErrorAdditionalInfo
资源管理错误附加信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| info |
object |
其他信息。 |
| type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| additionalInfo |
错误附加信息。 |
|
| code |
string |
错误代码。 |
| details |
错误详细信息。 |
|
| message |
string |
错误消息。 |
| target |
string |
错误目标。 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ManagedInstanceLongTermRetentionBackup
托管数据库的长期保留备份。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| name |
string |
资源名称。 |
| properties.backupExpirationTime |
string (date-time) |
长期保留备份过期的时间。 |
| properties.backupStorageAccessTier |
LTR 备份的 BackupStorageAccessTier |
|
| properties.backupStorageRedundancy |
备份的存储冗余类型 |
|
| properties.backupTime |
string (date-time) |
备份的时间 |
| properties.databaseDeletionTime |
string (date-time) |
数据库的删除时间 |
| properties.databaseName |
string |
备份所属的数据库的名称 |
| properties.managedInstanceCreateTime |
string (date-time) |
实例的创建时间。 |
| properties.managedInstanceName |
string |
备份数据库所属的托管实例。 |
| type |
string |
资源类型。 |