Web Apps - Apply Slot Config To Production
[説明] ターゲット スロットから現在のスロットに構成設定を適用します。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig?api-version=2023-12-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
name
|
path | True |
string |
アプリの名前。 |
resource
|
path | True |
string |
リソースが属しているリソース グループの名前。 Regex pattern: |
subscription
|
path | True |
string |
Azure のサブスクリプション ID。 これは GUID 形式の文字列です (例: 000000000-0000-0000-0000-00000000000000)。 |
api-version
|
query | True |
string |
API バージョン |
要求本文
名前 | 必須 | 型 | 説明 |
---|---|---|---|
preserveVnet | True |
boolean |
|
targetSlot | True |
string |
スワップ操作中の宛先デプロイ スロット。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
OK です。 |
|
Other Status Codes |
エラー応答をApp Serviceします。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名前 | 説明 |
---|---|
user_impersonation | ユーザー アカウントの借用 |
例
Apply web app slot config
Sample Request
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/applySlotConfig?api-version=2023-12-01
{
"targetSlot": "staging",
"preserveVnet": true
}
Sample Response
定義
名前 | 説明 |
---|---|
Csm |
デプロイ スロットのパラメーター。 |
Default |
エラー応答をApp Serviceします。 |
Details | |
Error |
エラー モデル。 |
CsmSlotEntity
デプロイ スロットのパラメーター。
名前 | 型 | 説明 |
---|---|---|
preserveVnet |
boolean |
|
targetSlot |
string |
スワップ操作中の宛先デプロイ スロット。 |
DefaultErrorResponse
エラー応答をApp Serviceします。
名前 | 型 | 説明 |
---|---|---|
error |
エラー モデル。 |
Details
名前 | 型 | 説明 |
---|---|---|
code |
string |
プログラムによってエラーを識別するための標準化された文字列。 |
message |
string |
エラーの詳細な説明とデバッグ情報。 |
target |
string |
エラーの詳細な説明とデバッグ情報。 |
Error
エラー モデル。
名前 | 型 | 説明 |
---|---|---|
code |
string |
プログラムによってエラーを識別するための標準化された文字列。 |
details |
Details[] |
詳細なエラー。 |
innererror |
string |
デバッグ エラーの詳細。 |
message |
string |
エラーの詳細な説明とデバッグ情報。 |
target |
string |
エラーの詳細な説明とデバッグ情報。 |