Share via


Web Apps - Swap Slot Slot

應用程式兩個部署位置的交換描述。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsswap?api-version=2023-12-01

URI 參數

名稱 位於 必要 類型 Description
name
path True

string

應用程式的名稱。

resourceGroupName
path True

string

資源所屬資源群組的名稱。

Regex pattern: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

來源位置的名稱。 如果未指定位置,則會使用生產位置作為來源位置。

subscriptionId
path True

string

您的 Azure 訂用帳戶識別碼。 這是 GUID 格式的字串 (例如 000000000-0000-0000-0000-000000000000) 。

api-version
query True

string

API 版本

要求本文

名稱 必要 類型 Description
preserveVnet True

boolean

true表示在交換期間保留 虛擬網路 位置,false否則為 。

targetSlot True

string

交換作業期間的目的地部署位置。

回應

名稱 類型 Description
200 OK

正常。

202 Accepted

作業正在進行中。

Other Status Codes

DefaultErrorResponse

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
CsmSlotEntity

部署位置參數。

DefaultErrorResponse

App Service 錯誤回應。

Details
Error

錯誤模型。

CsmSlotEntity

部署位置參數。

名稱 類型 Description
preserveVnet

boolean

true表示在交換期間保留 虛擬網路 位置,false否則為 。

targetSlot

string

交換作業期間的目的地部署位置。

DefaultErrorResponse

App Service 錯誤回應。

名稱 類型 Description
error

Error

錯誤模型。

Details

名稱 類型 Description
code

string

標準化字串,以程序設計方式識別錯誤。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

Error

錯誤模型。

名稱 類型 Description
code

string

標準化字串,以程序設計方式識別錯誤。

details

Details[]

詳細的錯誤。

innererror

string

偵錯錯誤的詳細資訊。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。