VirtualMachines interface
Interface representing a VirtualMachines.
Methods
begin |
Restarts the specified HDInsight cluster hosts. |
begin |
Restarts the specified HDInsight cluster hosts. |
get |
Gets the async operation status. |
list |
Lists the HDInsight clusters hosts |
Method Details
beginRestartHosts(string, string, string[], VirtualMachinesRestartHostsOptionalParams)
Restarts the specified HDInsight cluster hosts.
function beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- clusterName
-
string
The name of the cluster.
- hosts
-
string[]
The list of hosts to restart
The options parameters.
Returns
Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>
beginRestartHostsAndWait(string, string, string[], VirtualMachinesRestartHostsOptionalParams)
Restarts the specified HDInsight cluster hosts.
function beginRestartHostsAndWait(resourceGroupName: string, clusterName: string, hosts: string[], options?: VirtualMachinesRestartHostsOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- clusterName
-
string
The name of the cluster.
- hosts
-
string[]
The list of hosts to restart
The options parameters.
Returns
Promise<void>
getAsyncOperationStatus(string, string, string, VirtualMachinesGetAsyncOperationStatusOptionalParams)
Gets the async operation status.
function getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: VirtualMachinesGetAsyncOperationStatusOptionalParams): Promise<AsyncOperationResult>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- clusterName
-
string
The name of the cluster.
- operationId
-
string
The long running operation id.
The options parameters.
Returns
Promise<AsyncOperationResult>
listHosts(string, string, VirtualMachinesListHostsOptionalParams)
Lists the HDInsight clusters hosts
function listHosts(resourceGroupName: string, clusterName: string, options?: VirtualMachinesListHostsOptionalParams): Promise<VirtualMachinesListHostsResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group.
- clusterName
-
string
The name of the cluster.
The options parameters.
Returns
Promise<VirtualMachinesListHostsResponse>