Share via


Web Apps - Apply Slot Config To Production

Açıklama Hedef yuvadan geçerli yuvaya yapılandırma ayarlarını uygular.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
name
path True

string

Uygulamanın adı.

resourceGroupName
path True

string

Kaynağın ait olduğu kaynak grubunun adı.

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

subscriptionId
path True

string

Azure abonelik kimliğiniz. Bu GUID biçimli bir dizedir (örneğin, 000000000-0000-0000-0000-00000000000000).

api-version
query True

string

API Sürümü

İstek Gövdesi

Name Gerekli Tür Description
preserveVnet True

boolean

truedeğiştirme sırasında yuvaya Sanal Ağ korumak için; aksi takdirde , false.

targetSlot True

string

Değiştirme işlemi sırasında hedef dağıtım yuvası.

Yanıtlar

Name Tür Description
200 OK

Tamam ögesini seçin.

Other Status Codes

DefaultErrorResponse

hata yanıtı App Service.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

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

Tanımlar

Name Description
CsmSlotEntity

Dağıtım yuvası parametreleri.

DefaultErrorResponse

hata yanıtı App Service.

Details
Error

Hata modeli.

CsmSlotEntity

Dağıtım yuvası parametreleri.

Name Tür Description
preserveVnet

boolean

truedeğiştirme sırasında yuvaya Sanal Ağ korumak için; aksi takdirde , false.

targetSlot

string

Değiştirme işlemi sırasında hedef dağıtım yuvası.

DefaultErrorResponse

hata yanıtı App Service.

Name Tür Description
error

Error

Hata modeli.

Details

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

Error

Hata modeli.

Name Tür Description
code

string

Hatayı program aracılığıyla tanımlamak için standartlaştırılmış dize.

details

Details[]

Ayrıntılı hatalar.

innererror

string

Hata ayıklamak için daha fazla bilgi.

message

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.

target

string

Ayrıntılı hata açıklaması ve hata ayıklama bilgileri.