Moogsoft Docs

getTeams

A MoogDb v2 method that returns details of all teams.

Back to MoogDb V2 API Method Reference.

Request arguments

Method getTeams takes no request arguments.

Response

Method getTeams returns the following response:

Type

Description

JSON Object

A JSON object containing information about all teams in Moogsoft AIOps.

Examples

The following examples demonstrate typical use of method getTeams:

Request example

Example request to return details of all teams:

var response = moogdb.getTeams();

Response example

Example response returning information on all teams in Moogsoft AIOps:

[
  {
    "room_id": 1,
    "alert_filter": "{\"left\":{\"column\":\"severity\",\"op\":0,\"value\":0,\"type\":\"LEAF\"},\"oper\":\"AND\",\"right\":{\"column\":\"severity\",\"op\":0,\"value\":1,\"type\":\"LEAF\"},\"type\":\"BRANCH\"}",
    "user_ids": [
      3
    ],
    "sig_filter": "{\"left\":{\"column\":\"internal_priority\",\"op\":0,\"value\":0,\"type\":\"LEAF\"},\"oper\":\"AND\",\"right\":{\"column\":\"internal_priority\",\"op\":0,\"value\":1,\"type\":\"LEAF\"},\"type\":\"BRANCH\"}",
    "landing_page": "",
    "description": "",
    "active": true,
    "team_id": 1,
    "services": [
        "Commerce",
        "Compute",
        "CRM",
        "Database",
        "Mobile",
        "Networking",
        "Remote",
        "Social",
        "Storage",
        "Switch",
        "Web"
    ],
    "users": [
      "admin"
      "1",
      "3"
    ],
    "deleted": false,
    "name": "Cloud DevOps",
    "service_ids": [
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8,
        9,
        10,
        11
    ]
  }
]