OpsGenie REST API v0.1.1 OpsGenieRESTAPI.Api.Team
API calls for all endpoints tagged Team
.
Link to this section Summary
Functions
Create Team Creates a new team
Delete Team Delete team with given id or name
Get Team Returns team with given 'id' or 'name'
List Team Logs Return logs of a team given with identifier
List Teams Return list of teams
Update Team (Partial) Update team with given id
Link to this section Functions
create_team( Tesla.Env.client(), OpsGenieRESTAPI.Model.CreateTeamPayload.t(), keyword() ) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Create Team Creates a new team
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- body (CreateTeamPayload): Request payload of created team
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure
delete_team(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Delete Team Delete team with given id or name
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- identifier (String.t): Identifier of the team
opts (KeywordList): [optional] Optional parameters
- :identifier_type (String.t): Type of the identifier. Possible values are 'id' and 'name'. Default value is 'id'
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure
get_team(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.GetTeamResponse.t()} | {:error, Tesla.Env.t()}
Get Team Returns team with given 'id' or 'name'
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- identifier (String.t): Identifier of the team
opts (KeywordList): [optional] Optional parameters
- :identifier_type (String.t): Type of the identifier. Possible values are 'id' and 'name'. Default value is 'id'
Returns
{:ok, %OpsGenieRESTAPI.Model.GetTeamResponse{}} on success {:error, info} on failure
list_team_logs(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.ListTeamLogsResponse.t()} | {:error, Tesla.Env.t()}
List Team Logs Return logs of a team given with identifier
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- identifier (String.t): Identifier of the team
opts (KeywordList): [optional] Optional parameters
- :identifier_type (String.t): Type of the identifier. Possible values are 'id' and 'name'. Default value is 'id'
- :limit (integer()): Maximum number of items to provide in the result. Must be a positive integer value.
- :order (String.t): Sorting order of the result set
- :offset (String.t): Key which will be used in pagination
Returns
{:ok, %OpsGenieRESTAPI.Model.ListTeamLogsResponse{}} on success {:error, info} on failure
list_teams(Tesla.Env.client(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.ListTeamsResponse.t()} | {:error, Tesla.Env.t()}
List Teams Return list of teams
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- opts (KeywordList): [optional] Optional parameters
Returns
{:ok, %OpsGenieRESTAPI.Model.ListTeamsResponse{}} on success {:error, info} on failure
update_team(Tesla.Env.client(), String.t(), keyword()) :: {:ok, OpsGenieRESTAPI.Model.SuccessResponse.t()} | {:error, Tesla.Env.t()}
Update Team (Partial) Update team with given id
Parameters
- connection (OpsGenieRESTAPI.Connection): Connection to server
- identifier (String.t): Identifier of the team
opts (KeywordList): [optional] Optional parameters
- :body (UpdateTeamPayload): Request payload of update team action
Returns
{:ok, %OpsGenieRESTAPI.Model.SuccessResponse{}} on success {:error, info} on failure