@@ -765,7 +765,7 @@ def get_user_ids(self, users):
765
765
return [True , list (res .values ())]
766
766
767
767
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 ):
769
769
'''
770
770
**Description**
771
771
Creates a new team
@@ -780,6 +780,7 @@ def create_team(self, name, memberships=None, filter='', description='', show='h
780
780
- **perm_capture**: if True, this team will be allowed to take sysdig captures.
781
781
- **perm_custom_events**: if True, this team will be allowed to view all custom events from every user and agent.
782
782
- **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.
783
784
784
785
**Success Return Value**
785
786
The newly created team.
@@ -795,6 +796,7 @@ def create_team(self, name, memberships=None, filter='', description='', show='h
795
796
'canUseSysdigCapture' : perm_capture ,
796
797
'canUseCustomEvents' : perm_custom_events ,
797
798
'canUseAwsMetrics' : perm_aws_data ,
799
+ 'canUseRapidResponse' : perm_rapid_response ,
798
800
}
799
801
800
802
# Map user-names to IDs
@@ -820,7 +822,7 @@ def create_team(self, name, memberships=None, filter='', description='', show='h
820
822
return self ._request_result (res )
821
823
822
824
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 ):
824
826
'''
825
827
**Description**
826
828
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=
835
837
- **perm_capture**: if True, this team will be allowed to take sysdig captures.
836
838
- **perm_custom_events**: if True, this team will be allowed to view all custom events from every user and agent.
837
839
- **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.
838
841
839
842
**Success Return Value**
840
843
The edited team.
@@ -853,6 +856,7 @@ def edit_team(self, name, memberships=None, filter=None, description=None, show=
853
856
'canUseSysdigCapture' : perm_capture if perm_capture else team ['canUseSysdigCapture' ],
854
857
'canUseCustomEvents' : perm_custom_events if perm_custom_events else team ['canUseCustomEvents' ],
855
858
'canUseAwsMetrics' : perm_aws_data if perm_aws_data else team ['canUseAwsMetrics' ],
859
+ 'canUseRapidResponse' : perm_rapid_response ,
856
860
'defaultTeamRole' : team ['defaultTeamRole' ],
857
861
'entryPoint' : team ['entryPoint' ],
858
862
'id' : team ['id' ],
0 commit comments