Skip to content

Commit

Permalink
Add location based deleted Web Apps (#5905)
Browse files Browse the repository at this point in the history
* Add location based deleted Web Apps

* Add examples

* Fix examples

* Remove additional properties.

* Fix typo in parameters

* Remove more additional properties

* Remove additional id property
  • Loading branch information
naveedaz authored and amarzavery committed May 10, 2019
1 parent 3250da9 commit 3d3406f
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,102 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites": {
"get": {
"tags": [
"DeletedWebApps"
],
"summary": "Get all deleted apps for a subscription at location",
"description": "Get all deleted apps for a subscription at location",
"operationId": "DeletedWebApps_ListByLocation",
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DeletedWebAppCollection"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List Deleted Web App by Location": {
"$ref": "./examples/ListDeletedWebAppsByLocation.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/deletedSites/{deletedSiteId}": {
"get": {
"tags": [
"DeletedWebApps"
],
"summary": "Get deleted app for a subscription at location.",
"description": "Get deleted app for a subscription at location.",
"operationId": "DeletedWebApps_GetDeletedWebAppByLocation",
"parameters": [
{
"name": "location",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "deletedSiteId",
"in": "path",
"description": "The numeric ID of the deleted app, e.g. 12345",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DeletedSite"
}
},
"default": {
"description": "App Service error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Get Deleted Web App by Location": {
"$ref": "./examples/GetDeletedWebAppByLocation.json"
}
}
}
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "West US 2",
"deletedSiteId": "9",
"api-version": "2018-02-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"name": "wussite6",
"type": "Microsoft.Web/locations/deletedSites",
"properties": {
"deletedSiteId": 9,
"deletedTimestamp": "2019-05-09T22:29:05.1337007",
"subscription": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroup": "rg1",
"deletedSiteName": "wussite6",
"slot": "Production",
"kind": "app",
"geoRegionName": "West US 2"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"location": "West US 2",
"api-version": "2018-02-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "wussite6",
"type": "Microsoft.Web/locations/deletedSites",
"properties": {
"deletedSiteId": 9,
"deletedTimestamp": "2019-05-09T22:29:05.1337007",
"subscription": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroup": "rg1",
"deletedSiteName": "wussite6",
"slot": "Production",
"kind": "app",
"geoRegionName": "West US 2"
}
}
],
"nextLink": null
}
}
}
}

0 comments on commit 3d3406f

Please sign in to comment.