Clusters class

Class representing a Clusters.

Constructors

Clusters(BatchAIManagementClientContext)

Create a Clusters.

Methods

beginCreate(string, string, string, ClusterCreateParameters, RequestOptionsBase)

Creates a Cluster in the given Workspace.

beginDeleteMethod(string, string, string, RequestOptionsBase)

Deletes a Cluster.

create(string, string, string, ClusterCreateParameters, RequestOptionsBase)

Creates a Cluster in the given Workspace.

deleteMethod(string, string, string, RequestOptionsBase)

Deletes a Cluster.

get(string, string, string, RequestOptionsBase)

Gets information about a Cluster.

get(string, string, string, RequestOptionsBase, ServiceCallback<Cluster>)
get(string, string, string, ServiceCallback<Cluster>)
listByWorkspace(string, string, ClustersListByWorkspaceOptionalParams)

Gets information about Clusters associated with the given Workspace.

listByWorkspace(string, string, ClustersListByWorkspaceOptionalParams, ServiceCallback<ClusterListResult>)
listByWorkspace(string, string, ServiceCallback<ClusterListResult>)
listByWorkspaceNext(string, RequestOptionsBase)

Gets information about Clusters associated with the given Workspace.

listByWorkspaceNext(string, RequestOptionsBase, ServiceCallback<ClusterListResult>)
listByWorkspaceNext(string, ServiceCallback<ClusterListResult>)
listRemoteLoginInformation(string, string, string, RequestOptionsBase)

Get the IP address, port of all the compute nodes in the Cluster.

listRemoteLoginInformation(string, string, string, RequestOptionsBase, ServiceCallback<RemoteLoginInformationListResult>)
listRemoteLoginInformation(string, string, string, ServiceCallback<RemoteLoginInformationListResult>)
listRemoteLoginInformationNext(string, RequestOptionsBase)

Get the IP address, port of all the compute nodes in the Cluster.

listRemoteLoginInformationNext(string, RequestOptionsBase, ServiceCallback<RemoteLoginInformationListResult>)
listRemoteLoginInformationNext(string, ServiceCallback<RemoteLoginInformationListResult>)
update(string, string, string, ClustersUpdateOptionalParams)

Updates properties of a Cluster.

update(string, string, string, ClustersUpdateOptionalParams, ServiceCallback<Cluster>)
update(string, string, string, ServiceCallback<Cluster>)

Constructor Details

Clusters(BatchAIManagementClientContext)

Create a Clusters.

new Clusters(client: BatchAIManagementClientContext)

Parameters

client
BatchAIManagementClientContext

Reference to the service client.

Method Details

beginCreate(string, string, string, ClusterCreateParameters, RequestOptionsBase)

Creates a Cluster in the given Workspace.

function beginCreate(resourceGroupName: string, workspaceName: string, clusterName: string, parameters: ClusterCreateParameters, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

parameters
ClusterCreateParameters

The parameters to provide for the Cluster creation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

beginDeleteMethod(string, string, string, RequestOptionsBase)

Deletes a Cluster.

function beginDeleteMethod(resourceGroupName: string, workspaceName: string, clusterName: string, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

create(string, string, string, ClusterCreateParameters, RequestOptionsBase)

Creates a Cluster in the given Workspace.

function create(resourceGroupName: string, workspaceName: string, clusterName: string, parameters: ClusterCreateParameters, options?: RequestOptionsBase): Promise<ClustersCreateResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

parameters
ClusterCreateParameters

The parameters to provide for the Cluster creation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ClustersCreateResponse>

deleteMethod(string, string, string, RequestOptionsBase)

Deletes a Cluster.

function deleteMethod(resourceGroupName: string, workspaceName: string, clusterName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

get(string, string, string, RequestOptionsBase)

Gets information about a Cluster.

function get(resourceGroupName: string, workspaceName: string, clusterName: string, options?: RequestOptionsBase): Promise<ClustersGetResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ClustersGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<Cluster>)

function get(resourceGroupName: string, workspaceName: string, clusterName: string, options: RequestOptionsBase, callback: ServiceCallback<Cluster>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Cluster>

The callback

get(string, string, string, ServiceCallback<Cluster>)

function get(resourceGroupName: string, workspaceName: string, clusterName: string, callback: ServiceCallback<Cluster>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

callback

ServiceCallback<Cluster>

The callback

listByWorkspace(string, string, ClustersListByWorkspaceOptionalParams)

Gets information about Clusters associated with the given Workspace.

function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: ClustersListByWorkspaceOptionalParams): Promise<ClustersListByWorkspaceResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
ClustersListByWorkspaceOptionalParams

The optional parameters

Returns

Promise<Models.ClustersListByWorkspaceResponse>

listByWorkspace(string, string, ClustersListByWorkspaceOptionalParams, ServiceCallback<ClusterListResult>)

function listByWorkspace(resourceGroupName: string, workspaceName: string, options: ClustersListByWorkspaceOptionalParams, callback: ServiceCallback<ClusterListResult>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
ClustersListByWorkspaceOptionalParams

The optional parameters

callback

ServiceCallback<ClusterListResult>

The callback

listByWorkspace(string, string, ServiceCallback<ClusterListResult>)

function listByWorkspace(resourceGroupName: string, workspaceName: string, callback: ServiceCallback<ClusterListResult>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

callback

ServiceCallback<ClusterListResult>

The callback

listByWorkspaceNext(string, RequestOptionsBase)

Gets information about Clusters associated with the given Workspace.

function listByWorkspaceNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ClustersListByWorkspaceNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ClustersListByWorkspaceNextResponse>

listByWorkspaceNext(string, RequestOptionsBase, ServiceCallback<ClusterListResult>)

function listByWorkspaceNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ClusterListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ClusterListResult>

The callback

listByWorkspaceNext(string, ServiceCallback<ClusterListResult>)

function listByWorkspaceNext(nextPageLink: string, callback: ServiceCallback<ClusterListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<ClusterListResult>

The callback

listRemoteLoginInformation(string, string, string, RequestOptionsBase)

Get the IP address, port of all the compute nodes in the Cluster.

function listRemoteLoginInformation(resourceGroupName: string, workspaceName: string, clusterName: string, options?: RequestOptionsBase): Promise<ClustersListRemoteLoginInformationResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ClustersListRemoteLoginInformationResponse>

listRemoteLoginInformation(string, string, string, RequestOptionsBase, ServiceCallback<RemoteLoginInformationListResult>)

function listRemoteLoginInformation(resourceGroupName: string, workspaceName: string, clusterName: string, options: RequestOptionsBase, callback: ServiceCallback<RemoteLoginInformationListResult>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
RequestOptionsBase

The optional parameters

listRemoteLoginInformation(string, string, string, ServiceCallback<RemoteLoginInformationListResult>)

function listRemoteLoginInformation(resourceGroupName: string, workspaceName: string, clusterName: string, callback: ServiceCallback<RemoteLoginInformationListResult>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

listRemoteLoginInformationNext(string, RequestOptionsBase)

Get the IP address, port of all the compute nodes in the Cluster.

function listRemoteLoginInformationNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ClustersListRemoteLoginInformationNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ClustersListRemoteLoginInformationNextResponse>

listRemoteLoginInformationNext(string, RequestOptionsBase, ServiceCallback<RemoteLoginInformationListResult>)

function listRemoteLoginInformationNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<RemoteLoginInformationListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listRemoteLoginInformationNext(string, ServiceCallback<RemoteLoginInformationListResult>)

function listRemoteLoginInformationNext(nextPageLink: string, callback: ServiceCallback<RemoteLoginInformationListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

update(string, string, string, ClustersUpdateOptionalParams)

Updates properties of a Cluster.

function update(resourceGroupName: string, workspaceName: string, clusterName: string, options?: ClustersUpdateOptionalParams): Promise<ClustersUpdateResponse>

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
ClustersUpdateOptionalParams

The optional parameters

Returns

Promise<Models.ClustersUpdateResponse>

update(string, string, string, ClustersUpdateOptionalParams, ServiceCallback<Cluster>)

function update(resourceGroupName: string, workspaceName: string, clusterName: string, options: ClustersUpdateOptionalParams, callback: ServiceCallback<Cluster>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

options
ClustersUpdateOptionalParams

The optional parameters

callback

ServiceCallback<Cluster>

The callback

update(string, string, string, ServiceCallback<Cluster>)

function update(resourceGroupName: string, workspaceName: string, clusterName: string, callback: ServiceCallback<Cluster>)

Parameters

resourceGroupName

string

Name of the resource group to which the resource belongs.

workspaceName

string

The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

clusterName

string

The name of the cluster within the specified resource group. Cluster names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.

callback

ServiceCallback<Cluster>

The callback