Skip to content

Commit

Permalink
Add revoke method to Screenboard
Browse files Browse the repository at this point in the history
- This method allow to revoke the public access of a shared
screenboard
  • Loading branch information
Matthieu Allegre committed May 5, 2015
1 parent e0a8594 commit 5b13c6f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions datadog/api/screenboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ def share(cls, board_id):
:returns: JSON response from HTTP request
"""
return super(Screenboard, cls)._trigger_action('GET', 'screen/share', board_id)

@classmethod
def revoke(cls, board_id):
"""
Revoke a shared screenboard with given id
:param board_id: screenboard to revoke
:type board_id: id
:returns: JSON response from HTTP request
"""
return super(Screenboard, cls)._trigger_action('DELETE', 'screen/share', board_id)

0 comments on commit 5b13c6f

Please sign in to comment.