Web Apps - Swap Slot Slot
Beschrijving voor het wisselen van twee implementatiesites van een app.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/slotsswap?api-version=2024-04-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Naam van de app. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Naam van de resourcegroep waartoe de resource behoort. |
slot
|
path | True |
string |
Naam van de bronsite. Als er geen site is opgegeven, wordt de productiesite gebruikt als de bronsite. |
subscription
|
path | True |
string |
Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000000). |
api-version
|
query | True |
string |
API-versie |
Aanvraagbody
Name | Vereist | Type | Description |
---|---|---|---|
preserveVnet | True |
boolean |
|
targetSlot | True |
string |
Doelimplementatiesite tijdens wisselbewerking. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
202 Accepted |
De bewerking wordt uitgevoerd. |
|
Other Status Codes |
Foutreactie van App Service. |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Definities
Name | Description |
---|---|
Csm |
Parameters voor de implementatiesite. |
Default |
Foutreactie van App Service. |
Details | |
Error |
Foutmodel. |
CsmSlotEntity
Parameters voor de implementatiesite.
Name | Type | Description |
---|---|---|
preserveVnet |
boolean |
|
targetSlot |
string |
Doelimplementatiesite tijdens wisselbewerking. |
DefaultErrorResponse
Foutreactie van App Service.
Name | Type | Description |
---|---|---|
error |
Foutmodel. |
Details
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
Error
Foutmodel.
Name | Type | Description |
---|---|---|
code |
string |
Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren. |
details |
Details[] |
Gedetailleerde fouten. |
innererror |
string |
Meer informatie over foutopsporing. |
message |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |
target |
string |
Gedetailleerde foutbeschrijving en foutopsporingsgegevens. |