@@ -716,6 +716,195 @@ def bulkUpdateOrganizationDevicesDetails(self, organizationId: str, serials: lis
716
716
717
717
718
718
719
+ def bulkOrganizationDevicesPacketCaptureCapturesDelete (self , organizationId : str , captureIds : list ):
720
+ """
721
+ **BulkDelete packet captures from cloud**
722
+ https://developer.cisco.com/meraki/api-v1/#!bulk-organization-devices-packet-capture-captures-delete
723
+
724
+ - organizationId (string): Organization ID
725
+ - captureIds (array): Delete the packet captures of the specified capture ids
726
+ """
727
+
728
+ kwargs = locals ()
729
+
730
+ metadata = {
731
+ 'tags' : ['organizations' , 'configure' , 'devices' , 'packetCapture' , 'captures' ],
732
+ 'operation' : 'bulkOrganizationDevicesPacketCaptureCapturesDelete'
733
+ }
734
+ resource = f'/organizations/{ organizationId } /devices/packetCapture/captures/bulkDelete'
735
+
736
+ body_params = ['captureIds' , ]
737
+ action = {
738
+ "resource" : resource ,
739
+ "operation" : "destroy" ,
740
+ }
741
+ return action
742
+
743
+
744
+
745
+
746
+
747
+
748
+ def deleteOrganizationDevicesPacketCaptureCapture (self , organizationId : str , captureId : str ):
749
+ """
750
+ **Delete a single packet capture from cloud using captureId**
751
+ https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-packet-capture-capture
752
+
753
+ - organizationId (string): Organization ID
754
+ - captureId (string): Capture ID
755
+ """
756
+
757
+ metadata = {
758
+ 'tags' : ['organizations' , 'configure' , 'devices' , 'packetCapture' , 'captures' ],
759
+ 'operation' : 'deleteOrganizationDevicesPacketCaptureCapture'
760
+ }
761
+ resource = f'/organizations/{ organizationId } /devices/packetCapture/captures/{ captureId } '
762
+
763
+ action = {
764
+ "resource" : resource ,
765
+ "operation" : "destroy" ,
766
+ }
767
+ return action
768
+
769
+
770
+
771
+
772
+
773
+
774
+ def createOrganizationDevicesPacketCaptureSchedule (self , organizationId : str , devices : list , ** kwargs ):
775
+ """
776
+ **Create a schedule for packet capture**
777
+ https://developer.cisco.com/meraki/api-v1/#!create-organization-devices-packet-capture-schedule
778
+
779
+ - organizationId (string): Organization ID
780
+ - devices (array): device details
781
+ - name (string): Name of the packet capture file
782
+ - notes (string): Reason for capture
783
+ - duration (integer): Duration of the capture in seconds
784
+ - filterExpression (string): Filter expression for the capture
785
+ - enabled (boolean): Enable or disable the schedule
786
+ - schedule (object): Schedule details
787
+ """
788
+
789
+ kwargs .update (locals ())
790
+
791
+ metadata = {
792
+ 'tags' : ['organizations' , 'configure' , 'devices' , 'packetCapture' , 'schedules' ],
793
+ 'operation' : 'createOrganizationDevicesPacketCaptureSchedule'
794
+ }
795
+ resource = f'/organizations/{ organizationId } /devices/packetCapture/schedules'
796
+
797
+ body_params = ['devices' , 'name' , 'notes' , 'duration' , 'filterExpression' , 'enabled' , 'schedule' , ]
798
+ payload = {k .strip (): v for k , v in kwargs .items () if k .strip () in body_params }
799
+ action = {
800
+ "resource" : resource ,
801
+ "operation" : "create" ,
802
+ "body" : payload
803
+ }
804
+ return action
805
+
806
+
807
+
808
+
809
+
810
+
811
+ def reorderOrganizationDevicesPacketCaptureSchedules (self , organizationId : str , order : list ):
812
+ """
813
+ **Bulk update priorities of pcap schedules**
814
+ https://developer.cisco.com/meraki/api-v1/#!reorder-organization-devices-packet-capture-schedules
815
+
816
+ - organizationId (string): Organization ID
817
+ - order (array): Array of schedule IDs and their priorities to reorder.
818
+ """
819
+
820
+ kwargs = locals ()
821
+
822
+ metadata = {
823
+ 'tags' : ['organizations' , 'configure' , 'devices' , 'packetCapture' , 'schedules' ],
824
+ 'operation' : 'reorderOrganizationDevicesPacketCaptureSchedules'
825
+ }
826
+ resource = f'/organizations/{ organizationId } /devices/packetCapture/schedules/reorder'
827
+
828
+ body_params = ['order' , ]
829
+ payload = {k .strip (): v for k , v in kwargs .items () if k .strip () in body_params }
830
+ action = {
831
+ "resource" : resource ,
832
+ "operation" : "reorder" ,
833
+ "body" : payload
834
+ }
835
+ return action
836
+
837
+
838
+
839
+
840
+
841
+
842
+ def updateOrganizationDevicesPacketCaptureSchedule (self , organizationId : str , scheduleId : str , devices : list , ** kwargs ):
843
+ """
844
+ **Update a schedule for packet capture**
845
+ https://developer.cisco.com/meraki/api-v1/#!update-organization-devices-packet-capture-schedule
846
+
847
+ - organizationId (string): Organization ID
848
+ - scheduleId (string): Schedule ID
849
+ - devices (array): device details
850
+ - name (string): Name of the packet capture file
851
+ - notes (string): Reason for capture
852
+ - duration (integer): Duration of the capture in seconds
853
+ - filterExpression (string): Filter expression for the capture
854
+ - enabled (boolean): Enable or disable the schedule
855
+ - schedule (object): Schedule details
856
+ """
857
+
858
+ kwargs .update (locals ())
859
+
860
+ metadata = {
861
+ 'tags' : ['organizations' , 'configure' , 'devices' , 'packetCapture' , 'schedules' ],
862
+ 'operation' : 'updateOrganizationDevicesPacketCaptureSchedule'
863
+ }
864
+ resource = f'/organizations/{ organizationId } /devices/packetCapture/schedules/{ scheduleId } '
865
+
866
+ body_params = ['devices' , 'name' , 'notes' , 'duration' , 'filterExpression' , 'enabled' , 'schedule' , ]
867
+ payload = {k .strip (): v for k , v in kwargs .items () if k .strip () in body_params }
868
+ action = {
869
+ "resource" : resource ,
870
+ "operation" : "update" ,
871
+ "body" : payload
872
+ }
873
+ return action
874
+
875
+
876
+
877
+
878
+
879
+
880
+ def deleteOrganizationDevicesPacketCaptureSchedule (self , organizationId : str , scheduleId : str ):
881
+ """
882
+ **Delete schedule from cloud**
883
+ https://developer.cisco.com/meraki/api-v1/#!delete-organization-devices-packet-capture-schedule
884
+
885
+ - organizationId (string): Organization ID
886
+ - scheduleId (string): Delete the capture schedules of the specified capture schedule id
887
+ """
888
+
889
+ kwargs = locals ()
890
+
891
+ metadata = {
892
+ 'tags' : ['organizations' , 'configure' , 'devices' , 'packetCapture' , 'schedules' ],
893
+ 'operation' : 'deleteOrganizationDevicesPacketCaptureSchedule'
894
+ }
895
+ resource = f'/organizations/{ organizationId } /devices/packetCapture/schedules/{ scheduleId } '
896
+
897
+ action = {
898
+ "resource" : resource ,
899
+ "operation" : "destroy" ,
900
+ }
901
+ return action
902
+
903
+
904
+
905
+
906
+
907
+
719
908
def updateOrganizationEarlyAccessFeaturesOptIn (self , organizationId : str , optInId : str , ** kwargs ):
720
909
"""
721
910
**Update an early access feature opt-in for an organization**
0 commit comments