[英]Can Azure web app deployments slots be swapped via the REST API?
I want to swap my Azure web app staging and production slots via http, is there an api to do this?我想通过 http 交换我的 Azure Web 应用程序暂存和生产槽,是否有 api 可以做到这一点? This is the Powershell cmdlet of what I want to do:这是我想要做的 Powershell cmdlet:
Invoke-AzureRmResourceAction -ResourceGroupName {my resource group} -ResourceType Microsoft.Web/sites/slots -ResourceName {my resource name} -Action slotsswap -Parameters $ParametersObject -ApiVersion 2015-07-01
Indeed, there's a REST API for swapping slots.事实上,有一个用于交换插槽的 REST API。 You can find the REST API documentation here:您可以在此处找到 REST API 文档:
https://docs.microsoft.com/en-us/rest/api/appservice/webapps#WebApps_SwapSlotSlot https://docs.microsoft.com/en-us/rest/api/appservice/webapps#WebApps_SwapSlotSlot
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.