Skip to content

Commit 283a2cb

Browse files
authored
Update python script to support rapid response (#207)
1 parent bbc45bb commit 283a2cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sdcclient/_common.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def get_user_ids(self, users):
765765
return [True, list(res.values())]
766766

767767
def create_team(self, name, memberships=None, filter='', description='', show='host', theme='#7BB0B2',
768-
perm_capture=False, perm_custom_events=False, perm_aws_data=False):
768+
perm_capture=False, perm_custom_events=False, perm_aws_data=False, perm_rapid_response=False):
769769
'''
770770
**Description**
771771
Creates a new team
@@ -780,6 +780,7 @@ def create_team(self, name, memberships=None, filter='', description='', show='h
780780
- **perm_capture**: if True, this team will be allowed to take sysdig captures.
781781
- **perm_custom_events**: if True, this team will be allowed to view all custom events from every user and agent.
782782
- **perm_aws_data**: if True, this team will have access to all AWS metrics and tags, regardless of the team's scope.
783+
- **perm_rapid_response**: if True, this team will have access rapid response feature.
783784
784785
**Success Return Value**
785786
The newly created team.
@@ -795,6 +796,7 @@ def create_team(self, name, memberships=None, filter='', description='', show='h
795796
'canUseSysdigCapture': perm_capture,
796797
'canUseCustomEvents': perm_custom_events,
797798
'canUseAwsMetrics': perm_aws_data,
799+
'canUseRapidResponse': perm_rapid_response,
798800
}
799801

800802
# Map user-names to IDs
@@ -820,7 +822,7 @@ def create_team(self, name, memberships=None, filter='', description='', show='h
820822
return self._request_result(res)
821823

822824
def edit_team(self, name, memberships=None, filter=None, description=None, show=None, theme=None,
823-
perm_capture=None, perm_custom_events=None, perm_aws_data=None):
825+
perm_capture=None, perm_custom_events=None, perm_aws_data=None, perm_rapid_response=False):
824826
'''
825827
**Description**
826828
Edits an existing team. All arguments are optional. Team settings for any arguments unspecified will remain at their current settings.
@@ -835,6 +837,7 @@ def edit_team(self, name, memberships=None, filter=None, description=None, show=
835837
- **perm_capture**: if True, this team will be allowed to take sysdig captures.
836838
- **perm_custom_events**: if True, this team will be allowed to view all custom events from every user and agent.
837839
- **perm_aws_data**: if True, this team will have access to all AWS metrics and tags, regardless of the team's scope.
840+
- **perm_rapid_response**: if True, this team will have access rapid response feature.
838841
839842
**Success Return Value**
840843
The edited team.
@@ -853,6 +856,7 @@ def edit_team(self, name, memberships=None, filter=None, description=None, show=
853856
'canUseSysdigCapture': perm_capture if perm_capture else team['canUseSysdigCapture'],
854857
'canUseCustomEvents': perm_custom_events if perm_custom_events else team['canUseCustomEvents'],
855858
'canUseAwsMetrics': perm_aws_data if perm_aws_data else team['canUseAwsMetrics'],
859+
'canUseRapidResponse': perm_rapid_response,
856860
'defaultTeamRole': team['defaultTeamRole'],
857861
'entryPoint': team['entryPoint'],
858862
'id': team['id'],

0 commit comments

Comments
 (0)