Skip to content

Site Slot Apis

Suwat Ch edited this page Aug 19, 2015 · 1 revision
  • List Slots for a site
ARMClient.exe get /subscriptions/{subscription}/providers/Microsoft.Web/sites/{site}/slots?api-version=2014-11-01
  • Get Slot for a site
ARMClient.exe get /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/slots/{slot}?api-version=2014-11-01
  • Create or Update Slot
ARMClient.exe put /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/slots/{slot}?api-version=2015-02-01 @payload.json

Example payload.json below

{
  "location": "{location}",
  "properties": {
    "serverFarm": "{serverFarm}",
    "hostingEnvironment": "{hostingEnvironment}" (OPTIONAL)
  }
}
  • Delete Slot
ARMClient.exe delete /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/slots/{slot}?api-version=2014-11-01
Clone this wiki locally