Skip to main content

moveEndpoints

This method moves a list of endpoints to a custom group.

Services

This method requires you to place the {service} name in the API URL. The allowed services are:

  • computers, for "Computers and Virtual Machines"

  • virtualmachines, for "Virtual Machines"

For example, the request URL for the virtual machines service is:

https://YOUR-HOSTNAME/api/v1.0/jsonrpc/network/virtualmachines

Parameters

Parameter

Type

Optional

Description

endpointIds

Array

No

The list of endpoints IDs

groupId

String

No

The ID of the destination group

Return value

This method does not return any value.

Example

Request:

  {
       "params": {
           "endpointIds" : [
                   "559bd152b1a43d291b7b23d8",
                   "559bd152b1a43d291b7b2430"
           ],
           "groupId": "559bd17ab1a43d241b7b23c6"
       },
       "jsonrpc": "2.0",
       "method": "moveEndpoints",
       "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f"
  }  

Response:

  {
      "id": "787b5e36-89a8-4353-88b9-6b7a32e9c87f",
      "jsonrpc":"2.0",
      "result": null
  }