-
Notifications
You must be signed in to change notification settings - Fork 97
Site Apis
Suwat Ch edited this page Jun 29, 2020
·
21 revisions
ARMClient.exe get /subscriptions/{subscription}/providers/Microsoft.Web/sites?api-version=2014-11-01
ARMClient.exe get /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}?api-version=2014-11-01
ARMClient.exe put /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}?api-version=2015-02-01 @payload.json
Example payload.json below
{
"location": "{location}",
"properties": {
"serverFarm": "{serverFarm}",
"hostingEnvironment": "{hostingEnvironment}" (OPTIONAL)
}
}
{
"location": "{location}",
"properties": {
"serverFarm": "{serverFarm}",
"siteConfig": {
"appSettings": [
{ "name": "foo1", "value": "bar2" },
{ "name": "foo2", "value": "bar2" }
]
}
}
}
ARMClient.exe post /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/stop?api-version=2014-11-01
-OR-
ARMClient.exe put /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}?api-version=2014-11-01 @payload.json
// stop main (but not SCM) site
payload.json
{
"location": "{location}",
"properties": { "State":"Stopped" }
}
// stop both main and SCM sites
payload.json
{
"location": "{location}",
"properties": { "State":"Stopped", ScmSiteAlsoStopped: true }
}
ARMClient.exe pst /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/start?api-version=2014-11-01
-OR-
ARMClient.exe put /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}?api-version=2014-11-01 @payload.json
payload.json
{
"location": "{location}",
"properties": { "State":"Running" }
}
ARMClient.exe delete /subscriptions/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}?api-version=2014-11-01