다음을 통해 공유


Web Apps - Swap Slot Slot

앱의 두 배포 슬롯 교환에 대한 설명입니다.

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

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
name
path True

string

앱의 이름입니다.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

리소스가 속한 리소스 그룹의 이름입니다.

slot
path True

string

원본 슬롯의 이름입니다. 슬롯을 지정하지 않으면 프로덕션 슬롯이 원본 슬롯으로 사용됩니다.

subscriptionId
path True

string

Azure 구독 ID. GUID 형식 문자열입니다(예: 000000000-0000-0000-0000-0000000000000).

api-version
query True

string

API 버전

요청 본문

Name 필수 형식 Description
preserveVnet True

boolean

교환하는 동안 슬롯에 Virtual Network를 유지하도록 true. 그렇지 않으면 false.

targetSlot True

string

교환 작업 중 대상 배포 슬롯입니다.

응답

Name 형식 Description
200 OK

그래.

202 Accepted

작업이 진행 중입니다.

Other Status Codes

DefaultErrorResponse

App Service 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 흐름

형식: oauth2
Flow: implicit
권한 부여 URL: https://login.microsoftonline.com/common/oauth2/authorize

범위

Name Description
user_impersonation 사용자 계정 가장

정의

Name Description
CsmSlotEntity

배포 슬롯 매개 변수입니다.

DefaultErrorResponse

App Service 오류 응답입니다.

Details
Error

오류 모델입니다.

CsmSlotEntity

배포 슬롯 매개 변수입니다.

Name 형식 Description
preserveVnet

boolean

교환하는 동안 슬롯에 Virtual Network를 유지하도록 true. 그렇지 않으면 false.

targetSlot

string

교환 작업 중 대상 배포 슬롯입니다.

DefaultErrorResponse

App Service 오류 응답입니다.

Name 형식 Description
error

Error

오류 모델입니다.

Details

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다.

message

string

자세한 오류 설명 및 디버깅 정보입니다.

target

string

자세한 오류 설명 및 디버깅 정보입니다.

Error

오류 모델입니다.

Name 형식 Description
code

string

프로그래밍 방식으로 오류를 식별하는 표준화된 문자열입니다.

details

Details[]

자세한 오류입니다.

innererror

string

디버그 오류에 대한 자세한 정보입니다.

message

string

자세한 오류 설명 및 디버깅 정보입니다.

target

string

자세한 오류 설명 및 디버깅 정보입니다.