Share via


Web Apps - Create Or Update Swift Virtual Network Connection With Check Slot

將此 Web 應用程式與 虛擬網路 整合。 這需要針對此資源執行 GET 時,1) “swiftSupported” 為 true,而 2) 目標子網已經委派,且未由此應用程式所在的另一個 App Service 方案使用。
此 Web 應用程式與 虛擬網路 整合的描述。 這需要針對此資源執行 GET 時,1) “swiftSupported” 為 true,而 2) 目標子網已經委派,且未由此應用程式所在的另一個 App Service 方案使用。

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

URI 參數

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

string

應用程式的名稱。

resourceGroupName
path True

string

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

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

slot
path True

string

部署位置的名稱。 如果未指定位置,API 將會新增或更新生產位置的連線。

subscriptionId
path True

string

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

api-version
query True

string

API 版本

要求本文

名稱 類型 Description
kind

string

資源種類。

properties.subnetResourceId

string

虛擬網路 子網的資源標識碼。 這是此 Web 應用程式將加入的子網。 此子網必須先定義 Microsoft.Web/serverFarms 委派。

properties.swiftSupported

boolean

旗標,指定此 Web 應用程式是否支援 Swift 整合的縮放單位。

回應

名稱 類型 Description
200 OK

SwiftVirtualNetwork

確定

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
DefaultErrorResponse

App Service 錯誤回應。

Details
Error

錯誤模型。

SwiftVirtualNetwork

Swift 虛擬網路 合約。 這可用來啟用新的 Swift 方式來執行虛擬網路整合。

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

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

SwiftVirtualNetwork

Swift 虛擬網路 合約。 這可用來啟用新的 Swift 方式來執行虛擬網路整合。

名稱 類型 Description
id

string

資源標識碼。

kind

string

資源種類。

name

string

資源名稱。

properties.subnetResourceId

string

虛擬網路 子網的資源標識碼。 這是此 Web 應用程式將加入的子網。 此子網必須先定義 Microsoft.Web/serverFarms 委派。

properties.swiftSupported

boolean

旗標,指定此 Web 應用程式是否支援 Swift 整合的縮放單位。

type

string

資源類型。