getTeams
A Graze API GET request that returns information on all the teams in Moogsoft AIOps.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint getTeams
takes the following request arguments:
Endpoint getTeams
takes no other arguments because this endpoint
returns data on all the teams in Moogsoft AIOps.
Response
Endpoint getTeams
returns the following response:
Successful requests return an array of JSON objects containing the following:
Type |
Description |
---|---|
JSON Object |
Details of each team in Moogsoft AIOps. |
Examples
The following examples demonstrate typical use of endpoint getTeams
:
Request example
Example cURL request to return all the teams in Moogsoft AIOps:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getTeams"
Response example
Example response returning details of all the teams in Moogsoft AIOps:
[ { "room_id": 1, "alert_filter": "", "user_ids": [3], "sig_filter": "", "landing_page": "", "description": "Example Team", "active": true, "team_id": 1, "services": ["Commerce","Compute","CRM","Database"], "users": ["admin"], "name": "Cloud DevOps", "service_ids": [1,2,3,4] }, { "room_id": 2, "alert_filter": "{\"left\":{\"column\":\"agent_location\",\"op\":0,\"value\":\"Host\",\"type\":\"LEAF\"},\"oper\":\"AND\",\"right\":{\"left\":{\"column\":\"alert_id\",\"op\":0,\"value\":1,\"type\":\"LEAF\"},\"oper\":\"OR\",\"right\":{\"column\":\"alert_id\",\"op\":0,\"value\":2,\"type\":\"LEAF\"},\"type\":\"BRANCH\"},\"type\":\"BRANCH\"}", "user_ids": [5,6], "sig_filter": "{\"left\":{\"column\":\"description\",\"op\":0,\"value\":\"Something\",\"type\":\"LEAF\"},\"oper\":\"AND\",\"right\":{\"left\":{\"column\":\"sig_id\",\"op\":0,\"value\":1,\"type\":\"LEAF\"},\"oper\":\"OR\",\"right\":{\"column\":\"internal_priority\",\"op\":0,\"value\":1,\"type\":\"LEAF\"},\"type\":\"BRANCH\"},\"type\":\"BRANCH\"}", "landing_page": "", "description": "Team based in Kingston", "active": true, "team_id": 2, "services": ["Kingston::AD::Server","Kingston::Application::Server"], "users": ["VanessaGutierrez1","EleanorMedina2"], "deleted": false, "name": "Team Kingston", "service_ids": [1,2,3,4] } ]