Skip to content

Commit a712f99

Browse files
Managed Instances API changes to Microsoft.Web/serverFarms (AppServicePlan)
1 parent e8c5f8b commit a712f99

File tree

3 files changed

+403
-0
lines changed

3 files changed

+403
-0
lines changed

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

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,52 @@
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+
"description": "Description for Get the RDP password for an IsCustomMode ServerFarm.",
376+
"operationId": "AppServicePlans_GetServerFarmRdpPassword",
377+
"parameters": [
378+
{
379+
"$ref": "#/parameters/resourceGroupNameParameter"
380+
},
381+
{
382+
"name": "name",
383+
"in": "path",
384+
"description": "Name of the App Service plan.",
385+
"required": true,
386+
"type": "string"
387+
},
388+
{
389+
"$ref": "#/parameters/subscriptionIdParameter"
390+
},
391+
{
392+
"$ref": "#/parameters/apiVersionParameter"
393+
}
394+
],
395+
"responses": {
396+
"200": {
397+
"description": "OK.",
398+
"schema": {
399+
"$ref": "#/definitions/ServerFarmRdpDetails"
400+
}
401+
},
402+
"404": {
403+
"description": "Server farm not found.",
404+
"x-ms-error-response": true
405+
},
406+
"default": {
407+
"description": "App Service error response.",
408+
"schema": {
409+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
410+
}
411+
}
412+
}
413+
}
414+
},
369415
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}": {
370416
"get": {
371417
"tags": [
@@ -678,6 +724,52 @@
678724
}
679725
}
680726
},
727+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/instances": {
728+
"get": {
729+
"tags": [
730+
"AppServicePlans"
731+
],
732+
"summary": "Get the instance details for an app service plan.",
733+
"description": "Description for Get the instance details for an app service plan.",
734+
"operationId": "AppServicePlans_GetServerFarmInstanceDetails",
735+
"parameters": [
736+
{
737+
"$ref": "#/parameters/resourceGroupNameParameter"
738+
},
739+
{
740+
"name": "name",
741+
"in": "path",
742+
"description": "Name of the App Service plan.",
743+
"required": true,
744+
"type": "string"
745+
},
746+
{
747+
"$ref": "#/parameters/subscriptionIdParameter"
748+
},
749+
{
750+
"$ref": "#/parameters/apiVersionParameter"
751+
}
752+
],
753+
"responses": {
754+
"200": {
755+
"description": "OK.",
756+
"schema": {
757+
"$ref": "#/definitions/ServerFarmInstanceDetails"
758+
}
759+
},
760+
"404": {
761+
"description": "Server farm not found.",
762+
"x-ms-error-response": true
763+
},
764+
"default": {
765+
"description": "App Service error response.",
766+
"schema": {
767+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
768+
}
769+
}
770+
}
771+
}
772+
},
681773
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/restartSites": {
682774
"post": {
683775
"tags": [
@@ -1455,6 +1547,59 @@
14551547
}
14561548
}
14571549
}
1550+
},
1551+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/recycleinstance": {
1552+
"post": {
1553+
"tags": [
1554+
"AppServicePlans"
1555+
],
1556+
"summary": "Recycles a managed instance worker machine.",
1557+
"description": "Description for Recycles a managed instance worker machine.",
1558+
"operationId": "AppServicePlans_RecycleManagedInstanceWorker",
1559+
"parameters": [
1560+
{
1561+
"$ref": "#/parameters/resourceGroupNameParameter"
1562+
},
1563+
{
1564+
"name": "name",
1565+
"in": "path",
1566+
"description": "Name of the App Service plan.",
1567+
"required": true,
1568+
"type": "string"
1569+
},
1570+
{
1571+
"name": "workerName",
1572+
"in": "path",
1573+
"description": "Name of worker machine.",
1574+
"required": true,
1575+
"type": "string"
1576+
},
1577+
{
1578+
"$ref": "#/parameters/subscriptionIdParameter"
1579+
},
1580+
{
1581+
"$ref": "#/parameters/apiVersionParameter"
1582+
}
1583+
],
1584+
"responses": {
1585+
"200": {
1586+
"description": "OK",
1587+
"schema": {
1588+
"$ref": "./CommonDefinitions.json#/definitions/Operation"
1589+
}
1590+
},
1591+
"404": {
1592+
"description": "Server farm not found.",
1593+
"x-ms-error-response": true
1594+
},
1595+
"default": {
1596+
"description": "App Service error response.",
1597+
"schema": {
1598+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
1599+
}
1600+
}
1601+
}
1602+
}
14581603
}
14591604
},
14601605
"definitions": {
@@ -1724,6 +1869,73 @@
17241869
"readOnly": true
17251870
}
17261871
}
1872+
},
1873+
"ServerFarmInstance": {
1874+
"description": "Represents details of a single instance in a server farm.",
1875+
"type": "object",
1876+
"properties": {
1877+
"instanceName": {
1878+
"description": "The instance name.",
1879+
"type": "string"
1880+
},
1881+
"ipAddress": {
1882+
"description": "The instance IP address.",
1883+
"type": "string"
1884+
},
1885+
"status": {
1886+
"description": "The instance status.",
1887+
"type": "string"
1888+
}
1889+
}
1890+
},
1891+
"ServerFarmInstanceDetails": {
1892+
"description": "Represents instance details for an app service plan.",
1893+
"type": "object",
1894+
"allOf": [
1895+
{
1896+
"$ref": "./CommonDefinitions.json#/definitions/ProxyOnlyResource"
1897+
}
1898+
],
1899+
"properties": {
1900+
"properties": {
1901+
"description": "ServerFarmInstanceDetails resource specific properties",
1902+
"type": "object",
1903+
"properties": {
1904+
"serverFarmName": {
1905+
"description": "The server farm name.",
1906+
"type": "string"
1907+
},
1908+
"instances": {
1909+
"description": "The list of server farm instances.",
1910+
"type": "array",
1911+
"items": {
1912+
"$ref": "#/definitions/ServerFarmInstance"
1913+
}
1914+
},
1915+
"instanceCount": {
1916+
"format": "int32",
1917+
"description": "The total number of instances.",
1918+
"type": "integer"
1919+
}
1920+
},
1921+
"x-ms-client-flatten": true
1922+
}
1923+
}
1924+
},
1925+
"ServerFarmRdpDetails": {
1926+
"description": "Server Farm RDP connection details.",
1927+
"type": "object",
1928+
"properties": {
1929+
"rdpPassword": {
1930+
"description": "The RDP password for the server farm.",
1931+
"type": "string"
1932+
},
1933+
"rdpPasswordExpiry": {
1934+
"format": "date-time",
1935+
"description": "The RDP password expiry date.",
1936+
"type": "string"
1937+
}
1938+
}
17271939
}
17281940
},
17291941
"parameters": {

0 commit comments

Comments
 (0)