{ "swagger": "2.0", "info": { "title": "HDInsightManagementClient", "description": "The HDInsight Management Client.", "version": "2021-06-01" }, "host": "management.azure.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow", "scopes": { "user_impersonation": "impersonate your user account" } } }, "paths": { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts": { "post": { "tags": [ "VirtualMachines" ], "operationId": "VirtualMachines_ListHosts", "description": "Lists the HDInsight clusters hosts", "x-ms-examples": { "Get All hosts in the cluster": { "$ref": "./examples/GetClusterVirtualMachines.json" } }, "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ErrorResponse" } }, "200": { "description": "OK response definition.", "schema": { "$ref": "#/definitions/HostInfoListResult" } } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts": { "post": { "tags": [ "VirtualMachines" ], "operationId": "VirtualMachines_RestartHosts", "description": "Restarts the specified HDInsight cluster hosts.", "x-ms-examples": { "Restarts the specified HDInsight cluster hosts.": { "$ref": "./examples/RestartVirtualMachinesOperation.json" } }, "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" }, { "name": "hosts", "in": "body", "required": true, "schema": { "$ref": "#/definitions/RestartHostsParameters" }, "description": "The list of hosts to restart" } ], "responses": { "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ErrorResponse" } }, "200": { "description": "OK response definition." }, "202": { "description": "Accepted response definition." } }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "location" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}": { "get": { "tags": [ "VirtualMachines" ], "operationId": "VirtualMachines_GetAsyncOperationStatus", "description": "Gets the async operation status.", "x-ms-examples": { "Gets the async operation status of restarting host.": { "$ref": "./examples/GetRestartHostsAsyncOperationStatus.json" } }, "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ClusterNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/OperationIdParameter" } ], "responses": { "default": { "description": "Error response describing why the operation failed.", "schema": { "$ref": "./operations.json#/definitions/ErrorResponse" } }, "200": { "description": "OK response definition.", "schema": { "$ref": "./cluster.json#/definitions/AsyncOperationResult" } } } } } }, "definitions": { "HostInfo": { "type": "object", "description": "The cluster host information.", "properties": { "name": { "description": "The host name", "type": "string" }, "fqdn": { "description": "The Fully Qualified Domain Name of host", "type": "string" }, "effectiveDiskEncryptionKeyUrl": { "description": "The effective disk encryption key URL used by the host", "type": "string" } }, "readOnly": true }, "HostInfoListResult": { "description": "Result of the request to list cluster hosts", "type": "array", "items": { "$ref": "#/definitions/HostInfo" }, "x-ms-identifiers": [ "fqdn" ], "readOnly": true }, "RestartHostsParameters": { "type": "array", "items": { "type": "string" }, "description": "The list of hosts which need to be restarted." }, "ErrorResponse": { "description": "Describes the format of Error response.", "type": "object", "properties": { "code": { "description": "Error code", "type": "string" }, "message": { "description": "Error message indicating why the operation failed.", "type": "string" } } } }, "parameters": { "SubscriptionIdParameter": { "name": "subscriptionId", "in": "path", "required": true, "type": "string", "description": "The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." }, "ResourceGroupNameParameter": { "name": "resourceGroupName", "in": "path", "required": true, "type": "string", "description": "The name of the resource group.", "x-ms-parameter-location": "method" }, "ClusterNameParameter": { "name": "clusterName", "in": "path", "required": true, "type": "string", "description": "The name of the cluster.", "x-ms-parameter-location": "method" }, "ApiVersionParameter": { "name": "api-version", "in": "query", "required": true, "type": "string", "description": "The HDInsight client API Version." }, "OperationIdParameter": { "name": "operationId", "in": "path", "required": true, "type": "string", "description": "The long running operation id.", "x-ms-parameter-location": "method" } } }