Moogsoft Docs

getTeam

A MoogDb v2 method that returns a team's details by team ID or team name.

Back to MoogDb V2 API Method Reference.

Request arguments

Method getTeam takes the following request arguments:

Name

Type

Required

Description

team_id

Integer

No, if you specify name.

ID of the team to return information about.

name

String

No, if you specify team_id.

Name of the team to return information about.

Response

Method getTeam returns the following response:

Type

Description

JSON Object

A JSON object containing information about the team.

Examples

The following examples demonstrate typical use of method getTeams:

Request example

Example request to return the details of team ID 1:

var teamData = moogdb.getTeam(1);

Response example

Example response returning information on team ID 1:

{
  "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": [],
  "users": [
    "admin"
  ],
  "deleted": false,
  "name": "Cloud DevOps",
  "service_ids": []
}