From 3a8bc9dd40275eb03fc6ce7c1ecd61a31279dfc8 Mon Sep 17 00:00:00 2001 From: Andrew Schuck Date: Mon, 8 Jul 2024 13:27:37 -0700 Subject: [PATCH 1/6] Add updatemachinekey api --- .../stable/2024-04-01/WebApps.json | 46 +++++++++++++++++++ .../2024-04-01/examples/UpdateMachineKey.json | 14 ++++++ 2 files changed, 60 insertions(+) create mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json index 6183bee9c28c..ffc69ea53da9 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json @@ -6154,6 +6154,52 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/machinekey": { + "post": { + "tags": [ + "WebApps" + ], + "summary": "Updates the machine key of an app.", + "operationId": "WebApps_UpdateMachineKey", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "name", + "in": "path", + "description": "Name of the app.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object" + } + }, + "default": { + "description": "App Service error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Updates the machine key for a site": { + "$ref": "./examples/UpdateMachineKey.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migrate": { "put": { "tags": [ diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json new file mode 100644 index 000000000000..6782b5fa7aee --- /dev/null +++ b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "contoso", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": {} + } + } +} \ No newline at end of file From c66e3c02b955548620fb6c269d0be55480cfea35 Mon Sep 17 00:00:00 2001 From: Andrew Schuck Date: Mon, 8 Jul 2024 14:30:10 -0700 Subject: [PATCH 2/6] fix json formatting --- .../2024-04-01/examples/UpdateMachineKey.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json index 6782b5fa7aee..43d9dc5f4d40 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json @@ -1,14 +1,14 @@ { - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "resourceGroupName": "rg", - "name": "contoso", - "api-version": "2022-03-01" - }, - "responses": { - "200": { - "headers": {}, - "body": {} - } + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "name": "contoso", + "api-version": "2022-03-01" + }, + "responses": { + "200": { + "headers": {}, + "body": {} } + } } \ No newline at end of file From 9db446ca7e6829894b59870a928249f2e9ce4bfc Mon Sep 17 00:00:00 2001 From: Andrew Schuck Date: Mon, 8 Jul 2024 14:56:11 -0700 Subject: [PATCH 3/6] Change api version --- .../stable/2024-04-01/examples/UpdateMachineKey.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json index 43d9dc5f4d40..0074f2e03250 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/examples/UpdateMachineKey.json @@ -3,7 +3,7 @@ "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", "resourceGroupName": "rg", "name": "contoso", - "api-version": "2022-03-01" + "api-version": "2024-04-01" }, "responses": { "200": { @@ -11,4 +11,4 @@ "body": {} } } -} \ No newline at end of file +} From c38b1197879bb80c3b0ab3cb40decbc7a7393789 Mon Sep 17 00:00:00 2001 From: Andrew Schuck Date: Mon, 15 Jul 2024 13:49:43 -0700 Subject: [PATCH 4/6] Add machinekey to allowed words --- cSpell.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cSpell.json b/cSpell.json index e367ccf59ade..016f5a580654 100644 --- a/cSpell.json +++ b/cSpell.json @@ -435,7 +435,8 @@ { "filename": "**/specification/web/resource-manager/Microsoft.Web/stable/**/WebApps.json", "words": [ - "sitecontainers" + "sitecontainers", + "machinekey" ] }, { From 5df5440df370d4f20725c733dfc9deff344f3afb Mon Sep 17 00:00:00 2001 From: Andrew Schuck Date: Thu, 18 Jul 2024 10:44:52 -0700 Subject: [PATCH 5/6] action verb at end of address --- .../Microsoft.Web/stable/2024-04-01/WebApps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json index ffc69ea53da9..f32b42c36631 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json @@ -6154,7 +6154,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/machinekey": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/machinekey/update": { "post": { "tags": [ "WebApps" From 2f0974e3c120ade7f37435d50a9289587e5f384b Mon Sep 17 00:00:00 2001 From: Andrew Schuck Date: Thu, 18 Jul 2024 11:13:39 -0700 Subject: [PATCH 6/6] Change post address to conform to arm --- cSpell.json | 2 +- .../Microsoft.Web/stable/2024-04-01/WebApps.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cSpell.json b/cSpell.json index 016f5a580654..ae826e9af150 100644 --- a/cSpell.json +++ b/cSpell.json @@ -436,7 +436,7 @@ "filename": "**/specification/web/resource-manager/Microsoft.Web/stable/**/WebApps.json", "words": [ "sitecontainers", - "machinekey" + "updatemachinekey" ] }, { diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json index f32b42c36631..1d7342d3af36 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2024-04-01/WebApps.json @@ -6154,7 +6154,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/machinekey/update": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/updatemachinekey": { "post": { "tags": [ "WebApps"