Skip to content

Commit 7b8308e

Browse files
Managed Instances API changes to Microsoft.Web/serverFarms (AppServicePlan)
1 parent c8b2b22 commit 7b8308e

File tree

2 files changed

+395
-1
lines changed

2 files changed

+395
-1
lines changed

specification/web/resource-manager/Microsoft.Web/stable/2025-05-01/AppServicePlans.json

Lines changed: 210 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,51 @@
366366
}
367367
}
368368
},
369+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/getrdppassword": {
370+
"post": {
371+
"tags": [
372+
"AppServicePlans"
373+
],
374+
"summary": "Get the RDP password for an IsCustomMode ServerFarm.",
375+
"operationId": "AppServicePlans_GetServerFarmRdpPassword",
376+
"parameters": [
377+
{
378+
"$ref": "#/parameters/resourceGroupNameParameter"
379+
},
380+
{
381+
"name": "name",
382+
"in": "path",
383+
"description": "Name of the App Service plan.",
384+
"required": true,
385+
"type": "string"
386+
},
387+
{
388+
"$ref": "#/parameters/subscriptionIdParameter"
389+
},
390+
{
391+
"$ref": "#/parameters/apiVersionParameter"
392+
}
393+
],
394+
"responses": {
395+
"200": {
396+
"description": "OK.",
397+
"schema": {
398+
"$ref": "#/definitions/ServerFarmRdpDetails"
399+
}
400+
},
401+
"404": {
402+
"description": "Server farm not found.",
403+
"x-ms-error-response": true
404+
},
405+
"default": {
406+
"description": "App Service error response.",
407+
"schema": {
408+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
409+
}
410+
}
411+
}
412+
}
413+
},
369414
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}": {
370415
"get": {
371416
"tags": [
@@ -678,6 +723,51 @@
678723
}
679724
}
680725
},
726+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/instances": {
727+
"get": {
728+
"tags": [
729+
"AppServicePlans"
730+
],
731+
"summary": "Get the instance details for an app service plan.",
732+
"operationId": "AppServicePlans_GetServerFarmInstanceDetails",
733+
"parameters": [
734+
{
735+
"$ref": "#/parameters/resourceGroupNameParameter"
736+
},
737+
{
738+
"name": "name",
739+
"in": "path",
740+
"description": "Name of the App Service plan.",
741+
"required": true,
742+
"type": "string"
743+
},
744+
{
745+
"$ref": "#/parameters/subscriptionIdParameter"
746+
},
747+
{
748+
"$ref": "#/parameters/apiVersionParameter"
749+
}
750+
],
751+
"responses": {
752+
"200": {
753+
"description": "OK.",
754+
"schema": {
755+
"$ref": "#/definitions/ServerFarmInstanceDetails"
756+
}
757+
},
758+
"404": {
759+
"description": "Server farm not found.",
760+
"x-ms-error-response": true
761+
},
762+
"default": {
763+
"description": "App Service error response.",
764+
"schema": {
765+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
766+
}
767+
}
768+
}
769+
}
770+
},
681771
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites": {
682772
"post": {
683773
"tags": [
@@ -1432,7 +1522,7 @@
14321522
{
14331523
"name": "workerName",
14341524
"in": "path",
1435-
"description": "Name of worker machine, which typically starts with RD.",
1525+
"description": "Name of worker machine.",
14361526
"required": true,
14371527
"type": "string"
14381528
},
@@ -1455,6 +1545,58 @@
14551545
}
14561546
}
14571547
}
1548+
},
1549+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/recycleinstance": {
1550+
"post": {
1551+
"tags": [
1552+
"AppServicePlans"
1553+
],
1554+
"summary": "Recycles a managed instance worker machine.",
1555+
"operationId": "AppServicePlans_RebootMavicInstance",
1556+
"parameters": [
1557+
{
1558+
"$ref": "#/parameters/resourceGroupNameParameter"
1559+
},
1560+
{
1561+
"name": "name",
1562+
"in": "path",
1563+
"description": "Name of the App Service plan.",
1564+
"required": true,
1565+
"type": "string"
1566+
},
1567+
{
1568+
"name": "workerName",
1569+
"in": "path",
1570+
"description": "Name of worker machine.",
1571+
"required": true,
1572+
"type": "string"
1573+
},
1574+
{
1575+
"$ref": "#/parameters/subscriptionIdParameter"
1576+
},
1577+
{
1578+
"$ref": "#/parameters/apiVersionParameter"
1579+
}
1580+
],
1581+
"responses": {
1582+
"200": {
1583+
"description": "OK",
1584+
"schema": {
1585+
"$ref": "./CommonDefinitions.json#/definitions/Operation"
1586+
}
1587+
},
1588+
"404": {
1589+
"description": "Server farm not found.",
1590+
"x-ms-error-response": true
1591+
},
1592+
"default": {
1593+
"description": "App Service error response.",
1594+
"schema": {
1595+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
1596+
}
1597+
}
1598+
}
1599+
}
14581600
}
14591601
},
14601602
"definitions": {
@@ -1724,6 +1866,73 @@
17241866
"readOnly": true
17251867
}
17261868
}
1869+
},
1870+
"ServerFarmInstance": {
1871+
"description": "Represents details of a single instance in a server farm.",
1872+
"type": "object",
1873+
"properties": {
1874+
"instanceName": {
1875+
"description": "The instance name.",
1876+
"type": "string"
1877+
},
1878+
"ipAddress": {
1879+
"description": "The instance IP address.",
1880+
"type": "string"
1881+
},
1882+
"status": {
1883+
"description": "The instance status.",
1884+
"type": "string"
1885+
}
1886+
}
1887+
},
1888+
"ServerFarmInstanceDetails": {
1889+
"description": "Represents instance details for an app service plan.",
1890+
"type": "object",
1891+
"allOf": [
1892+
{
1893+
"$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
1894+
}
1895+
],
1896+
"properties": {
1897+
"properties": {
1898+
"description": "ServerFarmInstanceDetails resource specific properties",
1899+
"type": "object",
1900+
"properties": {
1901+
"serverFarmName": {
1902+
"description": "The server farm name.",
1903+
"type": "string"
1904+
},
1905+
"instances": {
1906+
"description": "The list of server farm instances.",
1907+
"type": "array",
1908+
"items": {
1909+
"$ref": "#/definitions/ServerFarmInstance"
1910+
}
1911+
},
1912+
"instanceCount": {
1913+
"format": "int32",
1914+
"description": "The total number of instances.",
1915+
"type": "integer"
1916+
}
1917+
},
1918+
"x-ms-client-flatten": true
1919+
}
1920+
}
1921+
},
1922+
"ServerFarmRdpDetails": {
1923+
"description": "Server Farm RDP connection details.",
1924+
"type": "object",
1925+
"properties": {
1926+
"rdpPassword": {
1927+
"description": "The RDP password for the server farm.",
1928+
"type": "string"
1929+
},
1930+
"rdpPasswordExpiry": {
1931+
"format": "date-time",
1932+
"description": "The RDP password expiry date.",
1933+
"type": "string"
1934+
}
1935+
}
17271936
}
17281937
},
17291938
"parameters": {

0 commit comments

Comments
 (0)