Web Apps - List Backups
获取应用的现有备份的说明。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups?api-version=2025-03-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
应用的名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
|
api-version
|
query | True |
string |
API 版本 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
好的 |
|
| Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 冒充您的用户帐户 |
示例
List web app backups
示例请求
GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups?api-version=2025-03-01
示例响应
{
"value": [
{
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/backups/12345",
"name": "sitef6141",
"type": "Microsoft.Web/sites",
"properties": {
"id": 12345,
"storageAccountUrl": "DefaultEndpointsProtocol=https;AccountName=storagesample;AccountKey=<account-key>",
"blobName": "sitef6141_2025-03-01",
"name": "sitef6141_2025-03-01",
"status": "InProgress",
"sizeInBytes": 56091883,
"created": "2022-09-03T17:33:11.641Z",
"log": "Succeeded",
"databases": [
{
"databaseType": "SqlAzure",
"name": "backenddb",
"connectionStringName": "backend",
"connectionString": "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;<Attribute>=<value>]"
},
{
"databaseType": "SqlAzure",
"name": "statsdb",
"connectionStringName": "stats",
"connectionString": "DSN=data-source-name[;SERVER=value] [;PWD=value] [;UID=value] [;<Attribute>=<value>]"
}
],
"scheduled": true,
"lastRestoreTimeStamp": "2022-09-04T17:33:11.641Z",
"finishedTimeStamp": "2022-09-05T17:33:11.641Z",
"websiteSizeInBytes": 56091883
}
}
]
}
定义
| 名称 | 说明 |
|---|---|
|
Backup |
备份说明。 |
|
Backup |
备份项的集合。 |
|
Backup |
备份状态。 |
|
Database |
数据库备份设置。 |
|
Database |
数据库类型(例如 SqlAzure/MySql)。 |
|
Default |
应用服务错误响应。 |
| Details | |
| Error |
错误模型。 |
BackupItem
备份说明。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| kind |
string |
资源类型。 |
| name |
string |
资源名称。 |
| properties.blobName |
string |
包含此备份数据的 blob 的名称。 |
| properties.correlationId |
string |
唯一相关标识符。 在与 Azure 支持人员通信时,请将其与时间戳一起使用。 |
| properties.created |
string (date-time) |
备份创建的时间戳。 |
| properties.databases |
备份中包含的数据库列表。 |
|
| properties.finishedTimeStamp |
string (date-time) |
此备份完成时的时间戳。 |
| properties.id |
integer (int32) |
备份的 ID。 |
| properties.lastRestoreTimeStamp |
string (date-time) |
使用此备份的上次还原作的时间戳。 |
| properties.log |
string |
有关此备份的详细信息。 可能包含错误消息。 |
| properties.name |
string |
此备份的名称。 |
| properties.scheduled |
boolean |
如果此备份是由于触发计划而创建的,则为 True。 |
| properties.sizeInBytes |
integer (int64) |
备份的大小(以字节为单位)。 |
| properties.status |
备份状态。 |
|
| properties.storageAccountUrl |
string |
包含此备份的存储帐户容器的 SAS URL。 |
| properties.websiteSizeInBytes |
integer (int64) |
已备份的原始 Web 应用程序的大小。 |
| type |
string |
资源类型。 |
BackupItemCollection
备份项的集合。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string |
链接到下一页的资源。 |
| value |
资源收集。 |
BackupItemStatus
备份状态。
| 值 | 说明 |
|---|---|
| InProgress | |
| Failed | |
| Succeeded | |
| TimedOut | |
| Created | |
| Skipped | |
| PartiallySucceeded | |
| DeleteInProgress | |
| DeleteFailed | |
| Deleted |
DatabaseBackupSetting
数据库备份设置。
| 名称 | 类型 | 说明 |
|---|---|---|
| connectionString |
string |
包含要备份或还原的数据库的连接字符串。 如果还原应发生在新数据库,则内部的数据库名称为新数据库。 |
| connectionStringName |
string |
包含链接到 SiteConfig.ConnectionStrings 的连接字符串名称。 这在还原期间与覆盖连接字符串选项一起使用。 |
| databaseType |
数据库类型(例如 SqlAzure/MySql)。 |
|
| name |
string |
DatabaseType
数据库类型(例如 SqlAzure/MySql)。
| 值 | 说明 |
|---|---|
| SqlAzure | |
| MySql | |
| LocalMySql | |
| PostgreSql |
DefaultErrorResponse
应用服务错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误模型。 |
Details
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
Error
错误模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| details |
Details[] |
详细错误。 |
| innererror |
string |
调试错误的更多信息。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |