Web Apps - Restore Slot
如果指定) ,將特定備份還原至另一個應用程式 (或部署位置的描述。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}/restore?api-version=2023-12-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
backup
|
path | True |
string |
備份的標識碼。 |
name
|
path | True |
string |
應用程式的名稱。 |
resource
|
path | True |
string |
資源所屬資源群組的名稱。 Regex pattern: |
slot
|
path | True |
string |
部署位置的名稱。 如果未指定位置,API 會還原生產位置的備份。 |
subscription
|
path | True |
string |
您的 Azure 訂用帳戶識別碼。 這是 GUID 格式的字串 (例如 000000000-0000-0000-0000-000000000000) 。 |
api-version
|
query | True |
string |
API 版本 |
要求本文
名稱 | 必要 | 類型 | Description |
---|---|---|---|
properties.overwrite | True |
boolean |
|
properties.storageAccountUrl | True |
string |
容器的SAS URL。 |
kind |
string |
資源種類。 |
|
properties.adjustConnectionStrings |
boolean |
|
|
properties.appServicePlan |
string |
指定將擁有已還原網站的 App Service 方案。 |
|
properties.blobName |
string |
包含備份的 Blob 名稱。 |
|
properties.databases |
應還原的資料庫集合。 此清單必須符合備份中包含的資料庫清單。 |
||
properties.hostingEnvironment |
string |
只有在將應用程式還原至 App Service 環境) 時,才 (App Service 環境 名稱。 |
|
properties.ignoreConflictingHostNames |
boolean |
使用自訂網域還原應用程式時變更邏輯。 |
|
properties.ignoreDatabases |
boolean |
忽略資料庫,並只還原網站內容 |
|
properties.operationType |
作業類型。 |
||
properties.siteName |
string |
應用程式的名稱。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還原作業已啟動。 |
|
202 Accepted |
還原作業已啟動。 |
|
Other Status Codes |
App Service 錯誤回應。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
定義
名稱 | Description |
---|---|
Backup |
作業類型。 |
Database |
資料庫備份設定。 |
Database |
資料庫類型 (例如 SqlAzure/MySql) 。 |
Default |
App Service 錯誤回應。 |
Details | |
Error |
錯誤模型。 |
Restore |
還原要求的描述。 |
BackupRestoreOperationType
作業類型。
名稱 | 類型 | Description |
---|---|---|
Clone |
string |
|
CloudFS |
string |
|
Default |
string |
|
Relocation |
string |
|
Snapshot |
string |
DatabaseBackupSetting
資料庫備份設定。
名稱 | 類型 | Description |
---|---|---|
connectionString |
string |
包含正在備份或還原之資料庫的 連接字串。 如果還原應該發生在新的資料庫,內部的資料庫名稱會是新的資料庫名稱。 |
connectionStringName |
string |
包含連結至 SiteConfig.ConnectionStrings 的 連接字串 名稱。 這會在還原期間使用覆寫連接字串選項。 |
databaseType |
資料庫類型 (例如 SqlAzure/MySql) 。 |
|
name |
string |
DatabaseType
資料庫類型 (例如 SqlAzure/MySql) 。
名稱 | 類型 | Description |
---|---|---|
LocalMySql |
string |
|
MySql |
string |
|
PostgreSql |
string |
|
SqlAzure |
string |
DefaultErrorResponse
App Service 錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤模型。 |
Details
名稱 | 類型 | Description |
---|---|---|
code |
string |
標準化字串,以程序設計方式識別錯誤。 |
message |
string |
詳細的錯誤描述和偵錯資訊。 |
target |
string |
詳細的錯誤描述和偵錯資訊。 |
Error
錯誤模型。
名稱 | 類型 | Description |
---|---|---|
code |
string |
標準化字串,以程序設計方式識別錯誤。 |
details |
Details[] |
詳細的錯誤。 |
innererror |
string |
偵錯錯誤的詳細資訊。 |
message |
string |
詳細的錯誤描述和偵錯資訊。 |
target |
string |
詳細的錯誤描述和偵錯資訊。 |
RestoreRequest
還原要求的描述。
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
id |
string |
資源標識碼。 |
|
kind |
string |
資源種類。 |
|
name |
string |
資源名稱。 |
|
properties.adjustConnectionStrings |
boolean |
|
|
properties.appServicePlan |
string |
指定將擁有已還原網站的 App Service 方案。 |
|
properties.blobName |
string |
包含備份的 Blob 名稱。 |
|
properties.databases |
應還原的資料庫集合。 此清單必須符合備份中包含的資料庫清單。 |
||
properties.hostingEnvironment |
string |
只有在將應用程式還原至 App Service 環境) 時,才 (App Service 環境 名稱。 |
|
properties.ignoreConflictingHostNames |
boolean |
False |
使用自訂網域還原應用程式時變更邏輯。 |
properties.ignoreDatabases |
boolean |
False |
忽略資料庫,並只還原網站內容 |
properties.operationType | Default |
作業類型。 |
|
properties.overwrite |
boolean |
|
|
properties.siteName |
string |
應用程式的名稱。 |
|
properties.storageAccountUrl |
string |
容器的SAS URL。 |
|
type |
string |
資源類型。 |