MachineGroups class
Class representing a MachineGroups.
Constructors
Machine |
Create a MachineGroups. |
Methods
Constructor Details
MachineGroups(ServicemapManagementClientContext)
Create a MachineGroups.
new MachineGroups(client: ServicemapManagementClientContext)
Parameters
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<MachineGroupsCreateResponse>
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
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
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<MachineGroupsGetResponse>
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
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
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.
The optional parameters
Returns
Promise<MachineGroupsListByWorkspaceResponse>
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.
The optional parameters
- callback
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
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
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
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<MachineGroupsUpdateResponse>
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
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
The callback