MachineGroups class

Class representing a MachineGroups.

Constructors

MachineGroups(ServicemapManagementClientContext)

Create a MachineGroups.

Methods

create(string, string, MachineGroup, RequestOptionsBase)

Creates a new machine group.

create(string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)
create(string, string, MachineGroup, ServiceCallback<MachineGroup>)
deleteMethod(string, string, string, RequestOptionsBase)

Deletes the specified Machine Group.

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, MachineGroupsGetOptionalParams)

Returns the specified machine group as it existed during the specified time interval.

get(string, string, string, MachineGroupsGetOptionalParams, ServiceCallback<MachineGroup>)
get(string, string, string, ServiceCallback<MachineGroup>)
listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams)

Returns all machine groups during the specified time interval.

listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams, ServiceCallback<MachineGroupCollection>)
listByWorkspace(string, string, ServiceCallback<MachineGroupCollection>)
listByWorkspaceNext(string, RequestOptionsBase)

Returns all machine groups during the specified time interval.

listByWorkspaceNext(string, RequestOptionsBase, ServiceCallback<MachineGroupCollection>)
listByWorkspaceNext(string, ServiceCallback<MachineGroupCollection>)
update(string, string, string, MachineGroup, RequestOptionsBase)

Updates a machine group.

update(string, string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)
update(string, string, string, MachineGroup, ServiceCallback<MachineGroup>)

Constructor Details

MachineGroups(ServicemapManagementClientContext)

Create a MachineGroups.

new MachineGroups(client: ServicemapManagementClientContext)

Parameters

client
ServicemapManagementClientContext

Reference to the service client.

Method Details

create(string, string, MachineGroup, RequestOptionsBase)

Creates a new machine group.

function create(resourceGroupName: string, workspaceName: string, machineGroup: MachineGroup, options?: RequestOptionsBase): Promise<MachineGroupsCreateResponse>

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroup
MachineGroup

Machine Group resource to create.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.MachineGroupsCreateResponse>

create(string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)

function create(resourceGroupName: string, workspaceName: string, machineGroup: MachineGroup, options: RequestOptionsBase, callback: ServiceCallback<MachineGroup>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroup
MachineGroup

Machine Group resource to create.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<MachineGroup>

The callback

create(string, string, MachineGroup, ServiceCallback<MachineGroup>)

function create(resourceGroupName: string, workspaceName: string, machineGroup: MachineGroup, callback: ServiceCallback<MachineGroup>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroup
MachineGroup

Machine Group resource to create.

callback

ServiceCallback<MachineGroup>

The callback

deleteMethod(string, string, string, RequestOptionsBase)

Deletes the specified Machine Group.

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

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, workspaceName: string, machineGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, workspaceName: string, machineGroupName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

callback

ServiceCallback<void>

The callback

get(string, string, string, MachineGroupsGetOptionalParams)

Returns the specified machine group as it existed during the specified time interval.

function get(resourceGroupName: string, workspaceName: string, machineGroupName: string, options?: MachineGroupsGetOptionalParams): Promise<MachineGroupsGetResponse>

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

options
MachineGroupsGetOptionalParams

The optional parameters

Returns

Promise<Models.MachineGroupsGetResponse>

get(string, string, string, MachineGroupsGetOptionalParams, ServiceCallback<MachineGroup>)

function get(resourceGroupName: string, workspaceName: string, machineGroupName: string, options: MachineGroupsGetOptionalParams, callback: ServiceCallback<MachineGroup>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

options
MachineGroupsGetOptionalParams

The optional parameters

callback

ServiceCallback<MachineGroup>

The callback

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

function get(resourceGroupName: string, workspaceName: string, machineGroupName: string, callback: ServiceCallback<MachineGroup>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

callback

ServiceCallback<MachineGroup>

The callback

listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams)

Returns all machine groups during the specified time interval.

function listByWorkspace(resourceGroupName: string, workspaceName: string, options?: MachineGroupsListByWorkspaceOptionalParams): Promise<MachineGroupsListByWorkspaceResponse>

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

options
MachineGroupsListByWorkspaceOptionalParams

The optional parameters

Returns

Promise<Models.MachineGroupsListByWorkspaceResponse>

listByWorkspace(string, string, MachineGroupsListByWorkspaceOptionalParams, ServiceCallback<MachineGroupCollection>)

function listByWorkspace(resourceGroupName: string, workspaceName: string, options: MachineGroupsListByWorkspaceOptionalParams, callback: ServiceCallback<MachineGroupCollection>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

options
MachineGroupsListByWorkspaceOptionalParams

The optional parameters

callback

ServiceCallback<MachineGroupCollection>

The callback

listByWorkspace(string, string, ServiceCallback<MachineGroupCollection>)

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

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

callback

ServiceCallback<MachineGroupCollection>

The callback

listByWorkspaceNext(string, RequestOptionsBase)

Returns all machine groups during the specified time interval.

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.MachineGroupsListByWorkspaceNextResponse>

listByWorkspaceNext(string, RequestOptionsBase, ServiceCallback<MachineGroupCollection>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<MachineGroupCollection>

The callback

listByWorkspaceNext(string, ServiceCallback<MachineGroupCollection>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<MachineGroupCollection>

The callback

update(string, string, string, MachineGroup, RequestOptionsBase)

Updates a machine group.

function update(resourceGroupName: string, workspaceName: string, machineGroupName: string, machineGroup: MachineGroup, options?: RequestOptionsBase): Promise<MachineGroupsUpdateResponse>

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

machineGroup
MachineGroup

Machine Group resource to update.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.MachineGroupsUpdateResponse>

update(string, string, string, MachineGroup, RequestOptionsBase, ServiceCallback<MachineGroup>)

function update(resourceGroupName: string, workspaceName: string, machineGroupName: string, machineGroup: MachineGroup, options: RequestOptionsBase, callback: ServiceCallback<MachineGroup>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

machineGroup
MachineGroup

Machine Group resource to update.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<MachineGroup>

The callback

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

function update(resourceGroupName: string, workspaceName: string, machineGroupName: string, machineGroup: MachineGroup, callback: ServiceCallback<MachineGroup>)

Parameters

resourceGroupName

string

Resource group name within the specified subscriptionId.

workspaceName

string

OMS workspace containing the resources of interest.

machineGroupName

string

Machine Group resource name.

machineGroup
MachineGroup

Machine Group resource to update.

callback

ServiceCallback<MachineGroup>

The callback