{ "swagger": "2.0", "info": { "version": "2021-03-30", "title": "Compute Admin Client" }, "host": "management.azure.com", "schemes": [ "https" ], "paths": { "/subscriptions/{subscriptionId}/providers/Microsoft.Compute.Admin/locations/{location}/computeScaleUnits/{scaleUnitName}": { "get": { "x-ms-examples": { "Get an existing scale set.": { "$ref": "./examples/ScaleUnits/Get.json" } }, "tags": [ "ScaleUnits" ], "summary": "Returns the scale unit view.", "description": "Get the scale unit view.", "operationId": "ScaleUnits_Get", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "../../preview/2015-12-01-preview/Compute.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../preview/2015-12-01-preview/Compute.json#/parameters/LocationParameter" }, { "$ref": "ScaleUnits.json#/parameters/ScaleUnitParameter" }, { "$ref": "../../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "ScaleUnits.json#/definitions/ScaleUnit" } }, "default": { "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).", "schema": { "$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/CrpErrorResponse" } } } } } }, "definitions": { "ScaleUnit": { "description": "The scale unit operator view.", "type": "object", "properties": { "properties": { "description": "The scale unit operator view properties.", "x-ms-client-flatten": true, "$ref": "#/definitions/ScaleUnitProperties" } }, "allOf": [ { "$ref": "../../preview/2015-12-01-preview/Compute.json#/definitions/Resource" } ] }, "ScaleUnitProperties": { "description": "Properties for a scale unit", "type": "object", "properties": { "scaleUnitName": { "description": "The name of the scale unit.", "type": "string" }, "lastUpdatedTime": { "description": "The scale unit last update time (UTC).", "type": "string" }, "nodes": { "description": "The nodes of the scale unit.", "type": "array", "items": { "$ref": "#/definitions/NodeView" }, "x-ms-identifiers": [ "nodeName" ] } } }, "NodeView": { "description": "Properties for a node", "type": "object", "properties": { "nodeName": { "description": "The name of the node.", "type": "string" }, "lastUpdatedTime": { "description": "The node last update time (UTC).", "type": "string" }, "nodeHealthState": { "description": "The node health state.", "enum": [ "Unknown", "Up", "Down", "MaintenanceMode" ], "type": "string", "x-ms-enum": { "name": "NodeHealthState" } }, "virtualMachines": { "description": "The virtual machines on the node.", "type": "array", "items": { "$ref": "#/definitions/VirtualMachineView" }, "x-ms-identifiers": [ "vmId" ] } } }, "VirtualMachineView": { "description": "Properties for a virtual machine", "type": "object", "properties": { "vmName": { "description": "The name of the virtual machine.", "type": "string" }, "vmId": { "description": "The identifier of the virtual machine.", "type": "string" }, "subscriptionId": { "description": "The identifier of the subscription.", "type": "string" }, "resourceGroupName": { "description": "The resource group name.", "type": "string" }, "vmSize": { "description": "The virtual machine size.", "type": "string" }, "vmScaleSetName": { "description": "The virtual machine scale set name.", "type": "string" }, "lastProvisioningErrorMessage": { "description": "The virtual machine last provisioning error message.", "type": "string" }, "timeOfLastConfigurationChange": { "description": "The time of last configuration change (UTC).", "type": "string" }, "powerState": { "description": "The fabric VM power state.", "enum": [ "Unknown", "Stopped", "Running", "Paused", "SavedState", "Stopping", "Starting", "Pausing", "Resuming", "Saving" ], "type": "string", "x-ms-enum": { "name": "VmPowerState" } } } } }, "parameters": { "ScaleUnitParameter": { "description": "Name of the scale unit.", "name": "scaleUnitName", "type": "string", "required": true, "in": "path", "x-ms-parameter-location": "method" } }, "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Authorization uses an Azure Active Directory OAuth2 flow.", "scopes": { "user_impersonation": "impersonate your user account" } } }, "security": [ { "azure_auth": [ "user_impersonation" ] } ] }