From e5aeda96c7154543fca8dc475e5214f36d516859 Mon Sep 17 00:00:00 2001 From: Kartik Gupta <31189137+Kartik-715@users.noreply.github.com> Date: Mon, 27 Feb 2023 14:56:27 +0530 Subject: [PATCH 1/2] Added $expand option in ListAllVMs and ListAllVMs in RG --- .../stable/2023-03-01/virtualMachine.json | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json index c80ee9b9757d..48bdbe16b644 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json @@ -1099,6 +1099,20 @@ "type": "string", "description": "The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'" }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "ExpandTypesForGetVMs", + "modelAsString": true + } + }, { "$ref": "../../../common-types/v1/common.json#/parameters/ApiVersionParameter" }, @@ -1160,6 +1174,20 @@ "required": false, "type": "string", "description": "The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "ExpandTypesForGetVMs", + "modelAsString": true + } } ], "responses": { From 60b007150bf53b9db1f1e1823105aa2d1022454c Mon Sep 17 00:00:00 2001 From: Kartik Gupta <31189137+Kartik-715@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:41:40 +0530 Subject: [PATCH 2/2] Update virtualMachine.json --- .../ComputeRP/stable/2023-03-01/virtualMachine.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json index 48bdbe16b644..9c51f8959e86 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachine.json @@ -1109,7 +1109,7 @@ "instanceView" ], "x-ms-enum": { - "name": "ExpandTypesForGetVMs", + "name": "ExpandTypeForListVMs", "modelAsString": true } }, @@ -1185,7 +1185,7 @@ "instanceView" ], "x-ms-enum": { - "name": "ExpandTypesForGetVMs", + "name": "ExpandTypesForListVMs", "modelAsString": true } }