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 Onprem. |
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 Onprem:
[{ "room_id": 1, "alert_filter": "(severity = 0) AND (severity = 1)", "user_ids": [3], "sig_filter": "((internal_priority = 0) AND (description = \"Test\")) AND (last_state_change = 1574121600)", "landing_page": "", "description": "", "active": true, "team_id": 1, "services": [], "users": ["admin"], "deleted": false, "name": "Cloud DevOps", "service_ids": [] }, { "room_id": 2, "alert_filter": "", "user_ids": [5,6,7,8,9], "sig_filter": "", "landing_page": null, "description": "Team based in Kingston", "active": true, "team_id": 2, "services": ["Kingston::AD::Server","Kingston::Application::Server"], "users": ["AnnaMatthews1","JorgeHowell2","LilyHolt3"], "deleted": false, "name": "Team Kingston", "service_ids": [1,2] }, { "room_id": 3, "alert_filter": "", "user_ids": [10,11,12,13,14], "sig_filter": "", "landing_page": null, "description": "Team based in Waterloo", "active": true, "team_id": 3, "services": ["Waterloo::AD::Server ","Waterloo::Application::Server","Waterloo::Catalog::Server"], "users": ["ElizaJordan6","LeslieDiaz7"], "deleted": false, "name": "Team Waterloo", "service_ids": [16,17,18] }, { "room_id": 4, "alert_filter": "", "user_ids": [15,16,17], "sig_filter": "", "landing_page": null, "description": "Team based in Warren Street", "active": true, "team_id": 4, "services": ["Warren Street::AD::Server","Warren Street::Application::Server"], "users": ["MorrisCox12","VictoriaGarcia13"], "deleted": false, "name": "Team Warren Street", "service_ids": [31,32,33] }]