VirtualMachines interface

Interface representing a VirtualMachines.

Methods

beginRestartHosts(string, string, string[], VirtualMachinesRestartHostsOptionalParams)

Restarts the specified HDInsight cluster hosts.

beginRestartHostsAndWait(string, string, string[], VirtualMachinesRestartHostsOptionalParams)

Restarts the specified HDInsight cluster hosts.

getAsyncOperationStatus(string, string, string, VirtualMachinesGetAsyncOperationStatusOptionalParams)

Gets the async operation status.

listHosts(string, string, VirtualMachinesListHostsOptionalParams)

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

options
VirtualMachinesRestartHostsOptionalParams

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

options
VirtualMachinesRestartHostsOptionalParams

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.

Returns

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.

options
VirtualMachinesListHostsOptionalParams

The options parameters.

Returns