Skip to main content

getTeams

A Graze API GET request that returns information on all the teams in Moogsoft Onprem.

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 Onprem.

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 Onprem.

Examples

The following examples demonstrate typical use of endpoint getTeams:

Request example

Example cURL request to return all the teams in Moogsoft Onprem:

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getTeams"

Response example

Example response returning details of all the teams in Moogsoft Onprem:

[
    {
        "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": "(description = \"Test\") AND ((severity = 0) OR (severity = 2))",
        "user_ids": [5,6],
        "sig_filter": "((internal_priority = 0) OR (internal_priority = 1)) AND (description = \"Test\")",
        "landing_page": "",
        "description": "Team based in Kingston",
        "active": true,
        "team_id": 2,
        "services": ["Kingston::AD::Server","Kingston::Application::Server"],
        "users": ["AnnaMatthews1","JorgeHowell2"],
        "deleted": false,
        "name": "Team Kingston",
        "service_ids": [1,2]
    }
]