Groups

listAllLogicalGroups

Lists all the groups available in OpManager. Also provides basic group information such as members count and group health.

HTTP Method

GET

API URL

https://localhost:8060/api/json/admin/listAllLogicalGroups?apiKey=***************

Parameters

Param NameDescriptionData TypeAdditional InformationIs Mandatory
apiKeyAPI key to access your OpManager server.String-Yes
isGroupPageIf set to false (default), returns all groups. If set to true, returns paginated results and requires the page and rows parameters.Boolean-No
pagePage number for pagination.Integerpage=1No
rowsNumber of records to return per page.Integerrows=100No
sortByColumnColumn name by which to sort the results.StringAllowed values: groupDisplayName, description, groupType, displayGroupType, status, count, DISPLAYNAME, availability, isSuppressed, memberAvailabilityNo
sortByTypeSort by ascending or descending.StringAllowed values: asc, descNo

Sample Response

HTTP Code: 200

[
  {
    "total": 141,
    "page": 1,
    "rows": [
      {
        "groupType": "Interface",
        "isSuppressed": false,
        "memberAvailability": "100",
        "groupID": "132995",
        "count": "4",
        "description": "No Description",
        "statusImg": "/images/devices/status5.gif",
        "availability": "100",
        "statusLabel": "Clear",
        "groupDisplayName": "ServerGroup",
        "groupName": "ServerGroup-132995",
        "suppressedMessage": "",
        "displayGroupType": "Interface",
        "status": "5"
      },
      {
        "groupType": "Device",
        "isSuppressed": false,
        "memberAvailability": "0",
        "groupID": "132002",
        "count": "1",
        "description": "No Description",
        "statusImg": "/images/devices/status5.gif",
        "availability": "100",
        "statusLabel": "Clear",
        "groupDisplayName": "Agent",
        "groupName": "Agent-132002",
        "suppressedMessage": "",
        "displayGroupType": "Device",
        "status": "5"
      }
    ],
    "records": 282
  }
]
Rate limit: 100 requests per minute. Exceeding this limit will block requests for 1 minute

getLogicalGroupInfo

Provides details such as members count, group status, etc of the given group.

HTTP Method

GET

API URL

https://localhost:8060/api/json/admin/getLogicalGroupInfo?apiKey=***************&groupName=ServerGroup-52983&period=3

Parameters

Param NameDescriptionData TypeAdditional InformationIs Mandatory
apiKeyAPI key to access your OpManager server.String-Yes
groupNameInternal name of the logical group. This can be retrieved from the groupName field in the listAllLogicalGroups API responseString -Yes
periodValue must be set to 3.IntegerYes

Sample Response

HTTP Code: 200

{
  "GroupDetails": {
    "groupType": "Device",
    "groupID": "52983",
    "count": "2",
    "description": "No Description",
    "statusImg": "/images/devices/status1.gif",
    "statusLabel": "Critical",
    "deviceDevice_Count": "2",
    "groupDisplayName": "ServerGroup",
    "groupName": "ServerGroup-52983",
    "alertCount": 5,
    "statusChangeCount": 2,
    "displayGroupType": "Device",
    "status": "1"
  },
  "DashBoardDetails": {
    "Distribution": {
      "data": {
        "chartData": [
          {
            "seriesname": "99.99 - 100",
            "data": [
              [
                1759818600000,
                100
              ],
              [
                1759822200000,
                100
              ],
              [
                1759825800000,
                100
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          },
          {
            "seriesname": "99 - 99.99",
            "data": [
              [
                1759818600000,
                0
              ],
              [
                1759822200000,
                0
              ],
              [
                1759825800000,
                0
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          },
          {
            "seriesname": "90 - 99",
            "data": [
              [
                1759818600000,
                0
              ],
              [
                1759822200000,
                0
              ],
              [
                1759825800000,
                0
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          },
          {
            "seriesname": "50 - 90",
            "data": [
              [
                1759818600000,
                0
              ],
              [
                1759822200000,
                0
              ],
              [
                1759825800000,
                0
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          },
          {
            "seriesname": "10 - 50",
            "data": [
              [
                1759818600000,
                0
              ],
              [
                1759822200000,
                0
              ],
              [
                1759825800000,
                0
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          },
          {
            "seriesname": "0 - 10",
            "data": [
              [
                1759818600000,
                0
              ],
              [
                1759822200000,
                0
              ],
              [
                1759825800000,
                0
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          },
          {
            "seriesname": "Not Monitored",
            "data": [
              [
                1759818600000,
                0
              ],
              [
                1759822200000,
                0
              ],
              [
                1759825800000,
                0
              ]
            ],
            "yaxiscolumnorder": [
              0
            ]
          }
        ],
        "xyTitles": [
          "Time",
          "Distribution (%)"
        ]
      },
      "displayName": "Availability Distribution"
    }
  }
}
Rate limit: 50 requests per minute. Exceeding this limit will block requests for 1 minute

getLogicalGroupAlerts

Retrieves the alarms generated from the members of the given group.

HTTP Method

GET

API URL

https://localhost:8060/api/json/admin/getLogicalGroupAlerts?apiKey=***************&groupName=servergroup-4201

Parameters

Param NameDescriptionData TypeAdditional InformationIs Mandatory
apiKeyAPI key to access your OpManager server.String-Yes
groupNameInternal name of the logical group.
This can be retrieved from the groupName field in the listAllLogicalGroups API response.
String-Yes

Sample Response

HTTP Code: 200

[
    {
        "severity": "Attention",
        "groupType": "device",
        "severityString": "/images/devices/status3.gif",
        "modTime": "8 Oct 2025 11:50:59 AM IST",
        "displayName": "xxx.xxx.xx.x",
        "name": "xxx.xxx.xx.x",
        "alarmId": 2101,
        "message": "Device not responding: Probably down or busy",
        "type": "device",
        "entity": 2101,
        "status": 3
    },
    {
        "severity": "Attention",
        "groupType": "device",
        "severityString": "/images/devices/status3.gif",
        "modTime": "8 Oct 2025 11:50:59 AM IST",
        "displayName": "ServersProduction",
        "name": "ServersProduction-3128",
        "alarmId": 2102,
        "message": "Severity of the group is changed from Clear to Attention",
        "type": "device",
        "entity": 2102,
        "status": 3
    }
]
Rate limit: 50 requests per minute. Exceeding this limit will block requests for 1 minute

listLogicalGroupMembers

Provides information on the members available in the given group.

HTTP Method

GET

API URL

https://localhost:8060/api/json/admin/listLogicalGroupMembers?apiKey=***************&groupName=NorthBayRegion-4201

Parameters

Param NameDescriptionData TypeAdditional InformationIs Mandatory
apikeyAPI key to access your OpManager server.String-Yes
groupNameInternal name of the logical group. This can be retrieved from the groupName field in the listAllLogicalGroups API response.String-Yes

Sample Response

HTTP Code: 200

[
  {
    "groupType": "Device",
    "statusStr": "Critical",
    "displayname": "TestServer",
    "name": "testserver.example.com",
    "ipAddress": "10.X.X.X",
    "type": "Windows Server",
    "moid": "34950",
    "statusNum": "1"
  },
  {
    "groupType": "Device",
    "statusStr": "Critical",
    "displayname": "TestServer2",
    "name": "testserver2.example.com",
    "ipAddress": "10.X.X.X",
    "type": "Windows Server",
    "moid": "34951",
    "statusNum": "1"
  }
]
Rate limit: 100 requests per minute. Exceeding this limit will block requests for 1 minute

addToGroup

Add one or more devices or interfaces to an existing Group.

HTTP Method

POST

API URL

https://localhost:8060/api/json/device/addToGroup?apiKey=***************************

Parameters

Param NameDescriptionData TypeAdditional InformationIs Mandatory
apiKeyAPI key to access your OpManager server.String-Yes
groupNameInternal name of the logical group.
This can be retrieved from the groupName field in the listAllLogicalGroups API response.
String-Yes
groupTypeType of groupStringAllowed values: device | interface.Yes
selectedMembersFor Devices: The 'moid' value can be obtained from the 'moid' field of the listDevices API's response.

For Interfaces: The 'id' value can be obtained from the 'id' field of the listInterfaces API response.
JSON StringExample:
Key: selectedMembers
Value: ["2","7"].
Yes

Sample Response

HTTP Code: 200

{
    "result": {
        "message": "The Device(s) have been associated to the group successfully."
    }
}
Rate limit: 50 requests per minute. Exceeding this limit will block requests for 1 minute