Open babbottscott opened 2 years ago
GET /v2/teams
[ { "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "name": "Database", "description": "DBA Team", "links": { "web": "https://app.opsgenie.com/teams/dashboard/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/main", "api": "https://api.opsgenie.com/v2/teams/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" } }, { "id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy", "name": "Security", "description": "Security Team", "links": { "web": "https://app.opsgenie.com/teams/dashboard/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy/main", "api": "https://api.opsgenie.com/v2/teams/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy" } }, ... ]
filter
{ key = "name", values = [ "matchstring1", "matchstring2" ]}
teams
{ name, id }
OpsGenie API endpoint
GET /v2/teams
Returned data
Suggested Arguments
filter
- Optional, May specify multiple. Map of{ key = "name", values = [ "matchstring1", "matchstring2" ]}
to return only teams matching criteria. Otherwise, return full listAttributes
teams
- List of team entries,{ name, id }