emasser 3.12.0 → 3.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env-example +18 -12
- data/.github/workflows/anchore-syft.yml +38 -0
- data/.github/workflows/codeql-analysis.yml +2 -2
- data/.github/workflows/push-to-docker-mail.yml +1 -2
- data/.github/workflows/push-to-docker.yml +2 -2
- data/.github/workflows/rubocop.yml +1 -1
- data/.github/workflows/test-cli.yml +4 -4
- data/.mergify.yml +11 -11
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/Dockerfile +6 -4
- data/Gemfile.lock +108 -64
- data/README.md +7 -7
- data/docs/features.md +492 -524
- data/emasser.gemspec +19 -13
- data/images/emasser_architecture.png +0 -0
- data/lib/emasser/configuration.rb +136 -35
- data/lib/emasser/constants.rb +4 -0
- data/lib/emasser/delete.rb +75 -7
- data/lib/emasser/errors.rb +9 -0
- data/lib/emasser/get.rb +610 -177
- data/lib/emasser/help/approvalCac_post_mapper.md +6 -5
- data/lib/emasser/help/approvalPac_post_mapper.md +1 -5
- data/lib/emasser/help/artifacts_del_mapper.md +2 -2
- data/lib/emasser/help/artifacts_post_mapper.md +23 -34
- data/lib/emasser/help/artifacts_put_mapper.md +28 -9
- data/lib/emasser/help/cloudresource_post_mapper.md +4 -3
- data/lib/emasser/help/controls_put_mapper.md +24 -16
- data/lib/emasser/help/hardware_post_mapper.md +41 -0
- data/lib/emasser/help/hardware_put_mapper.md +42 -0
- data/lib/emasser/help/milestone_del_mapper.md +1 -1
- data/lib/emasser/help/milestone_post_mapper.md +3 -1
- data/lib/emasser/help/milestone_put_mapper.md +1 -8
- data/lib/emasser/help/poam_del_mapper.md +1 -1
- data/lib/emasser/help/poam_post_mapper.md +40 -14
- data/lib/emasser/help/poam_put_mapper.md +43 -18
- data/lib/emasser/help/software_post_mapper.md +59 -0
- data/lib/emasser/help/software_put_mapper.md +60 -0
- data/lib/emasser/help/staticcode_post_mapper.md +0 -4
- data/lib/emasser/help/testresults_post_mapper.md +8 -11
- data/lib/emasser/output_converters.rb +50 -42
- data/lib/emasser/post.rb +603 -231
- data/lib/emasser/put.rb +453 -193
- data/lib/emasser/version.rb +1 -1
- metadata +51 -33
- data/images/emasser_architecture.jpg +0 -0
- data/images/emasser_diagram-Page-3.jpg +0 -0
data/lib/emasser/get.rb
CHANGED
@@ -31,7 +31,7 @@ module Emasser
|
|
31
31
|
# connection to the web service.
|
32
32
|
#
|
33
33
|
# Endpoint:
|
34
|
-
#
|
34
|
+
# /api - Test connection to the API
|
35
35
|
class Test < SubCommandBase
|
36
36
|
def self.exit_on_failure?
|
37
37
|
true
|
@@ -44,7 +44,7 @@ module Emasser
|
|
44
44
|
puts to_output_hash(result).green
|
45
45
|
rescue EmassClient::ApiError => e
|
46
46
|
puts 'Exception when calling TestApi->test_connection'.red
|
47
|
-
puts to_output_hash(e)
|
47
|
+
puts to_output_hash(e).split('\n').join('. ')
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -52,7 +52,7 @@ module Emasser
|
|
52
52
|
#
|
53
53
|
# Endpoint:
|
54
54
|
# /api/systems - Get system information
|
55
|
-
#
|
55
|
+
# /api/systems/{systemId} - Get system information for a specific system
|
56
56
|
class System < SubCommandBase
|
57
57
|
def self.exit_on_failure?
|
58
58
|
true
|
@@ -110,7 +110,6 @@ module Emasser
|
|
110
110
|
desc 'byId [options]', 'Retrieve a system - filtered by [options] params'
|
111
111
|
option :systemId, aliases: '-s', type: :numeric, required: true,
|
112
112
|
desc: 'A numeric value representing the system identification'
|
113
|
-
option :includePackage, aliases: '-I', type: :boolean, required: false, desc: 'BOOLEAN - true or false.'
|
114
113
|
option :policy, aliases: '-p', type: :string, required: false, enum: %w[diacap rmf reporting]
|
115
114
|
|
116
115
|
def byId
|
@@ -124,7 +123,7 @@ module Emasser
|
|
124
123
|
puts to_output_hash(result).green
|
125
124
|
rescue EmassClient::ApiError => e
|
126
125
|
puts 'Exception when calling SystemsApi->get_systems'.red
|
127
|
-
puts to_output_hash(e)
|
126
|
+
puts to_output_hash(e).split('\n').join('. ')
|
128
127
|
end
|
129
128
|
end
|
130
129
|
end
|
@@ -144,8 +143,6 @@ module Emasser
|
|
144
143
|
option :coamsId, aliases: '-c', type: :string, required: false,
|
145
144
|
desc: 'Cyber Operational Attributes Management System (COAMS) string Id'
|
146
145
|
option :policy, aliases: '-p', type: :string, required: false, enum: %w[diacap rmf reporting]
|
147
|
-
|
148
|
-
option :includePackage, aliases: '-I', type: :boolean, required: false, desc: 'BOOLEAN - true or false.'
|
149
146
|
option :includeDitprMetrics, aliases: '-M', type: :boolean, required: false, desc: 'BOOLEAN - true or false.'
|
150
147
|
option :includeDecommissioned, aliases: '-D', type: :boolean, required: false, desc: 'BOOLEAN - true or false.'
|
151
148
|
option :reportsForScorecard, aliases: '-S', type: :boolean, required: false, desc: 'BOOLEAN - true or false.'
|
@@ -174,7 +171,7 @@ module Emasser
|
|
174
171
|
#
|
175
172
|
# Endpoint:
|
176
173
|
# /api/system-roles - Get all available roles
|
177
|
-
#
|
174
|
+
# /api/system-roles/{roleCategory} - Get system roles for provided role catgory
|
178
175
|
class Roles < SubCommandBase
|
179
176
|
def self.exit_on_failure?
|
180
177
|
true
|
@@ -352,7 +349,7 @@ module Emasser
|
|
352
349
|
# Required parameters/fields
|
353
350
|
option :systemId, aliases: '-s', type: :numeric, required: true,
|
354
351
|
desc: 'A numeric value representing the system identification'
|
355
|
-
option :poamId, aliases: '-p',
|
352
|
+
option :poamId, aliases: '-p', type: :numeric, required: true,
|
356
353
|
desc: 'A numeric value representing the poam identification'
|
357
354
|
# Optional parameters/fields
|
358
355
|
option :scheduledCompletionDateStart, aliases: '-d', type: :numeric, required: false,
|
@@ -396,9 +393,9 @@ module Emasser
|
|
396
393
|
end
|
397
394
|
end
|
398
395
|
|
399
|
-
# The Artifact endpoints provide the ability to
|
396
|
+
# The Artifact endpoints provide the ability to view Artifacts
|
400
397
|
# (supporting documentation/evidence for Security Control Assessments
|
401
|
-
# and system Authorization activities)
|
398
|
+
# and system Authorization activities) for a system.
|
402
399
|
#
|
403
400
|
# Endpoints:
|
404
401
|
# /api/systems/{systemId}/artifacts - Get one or many artifacts in a system
|
@@ -450,6 +447,7 @@ module Emasser
|
|
450
447
|
def export
|
451
448
|
optional_options_keys = optional_options(@_initializer).keys
|
452
449
|
optional_options = to_input_hash(optional_options_keys, options)
|
450
|
+
|
453
451
|
if options[:printToStdout]
|
454
452
|
optional_options.merge!(Emasser::GET_ARTIFACTS_RETURN_TYPE)
|
455
453
|
if options[:compress]
|
@@ -458,7 +456,12 @@ module Emasser
|
|
458
456
|
puts 'Output to stdout - plain text'.yellow
|
459
457
|
end
|
460
458
|
else
|
461
|
-
|
459
|
+
# The api method get_system_artifacts_export default return type is
|
460
|
+
# file, and it will output the file to the configured EMASSER_DOWNLOAD_DIR
|
461
|
+
# or to the default output folder 'eMASSerDownloads'
|
462
|
+
export_dir = ENV.fetch('EMASSER_DOWNLOAD_DIR', '')
|
463
|
+
export_dir = 'eMASSerDownloads' if export_dir.empty?
|
464
|
+
puts "Output to #{export_dir} directory".yellow
|
462
465
|
end
|
463
466
|
|
464
467
|
result = EmassClient::ArtifactsExportApi.new.get_system_artifacts_export(
|
@@ -517,13 +520,13 @@ module Emasser
|
|
517
520
|
result = EmassClient::CACApi.new.get_system_cac(options[:systemId], optional_options)
|
518
521
|
puts to_output_hash(result).green
|
519
522
|
rescue EmassClient::ApiError => e
|
520
|
-
puts 'Exception when calling
|
523
|
+
puts 'Exception when calling CACApi->get_system_cac'.red
|
521
524
|
puts to_output_hash(e)
|
522
525
|
end
|
523
526
|
end
|
524
527
|
end
|
525
528
|
|
526
|
-
# The Package Approval Chain (PAC) endpoints
|
529
|
+
# The Package Approval Chain (PAC) endpoints provides the ability to view the
|
527
530
|
# status of existing workflows and initiate new workflows for a system.
|
528
531
|
#
|
529
532
|
# Notes:
|
@@ -548,33 +551,76 @@ module Emasser
|
|
548
551
|
result = EmassClient::PACApi.new.get_system_pac(options[:systemId])
|
549
552
|
puts to_output_hash(result).green
|
550
553
|
rescue EmassClient::ApiError => e
|
551
|
-
puts 'Exception when calling
|
554
|
+
puts 'Exception when calling PACApi->get_system_pac'.red
|
552
555
|
puts to_output_hash(e)
|
553
556
|
end
|
554
557
|
end
|
555
558
|
|
556
|
-
# The
|
557
|
-
#
|
559
|
+
# The Hardware Baseline endpoints provides the ability to view the
|
560
|
+
# hardware assets for a system.
|
558
561
|
#
|
559
562
|
# Endpoints:
|
560
|
-
# /api/
|
561
|
-
class
|
563
|
+
# /api/systems/{systemId}/hw-baseline - Get one or many hardware assets in a system
|
564
|
+
class Hardware < SubCommandBase
|
562
565
|
def self.exit_on_failure?
|
563
566
|
true
|
564
567
|
end
|
565
568
|
|
566
|
-
desc '
|
567
|
-
|
569
|
+
desc 'assets', 'Get one or many hardware assets in a system'
|
570
|
+
# Required parameters/fields
|
571
|
+
option :systemId, aliases: '-s', type: :numeric, required: true,
|
572
|
+
desc: 'A numeric value representing the system identification'
|
573
|
+
|
574
|
+
# Optional parameters/fields
|
575
|
+
option :pageIndex, aliases: '-i', type: :numeric, required: false, desc: 'The page number to be returned, if not specified starts at page 0'
|
576
|
+
option :pageSize, aliases: '-s', type: :numeric, required: false, desc: 'The total entries per page, default is 20,000'
|
568
577
|
|
578
|
+
def assets
|
579
|
+
optional_options_keys = optional_options(@_initializer).keys
|
580
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
581
|
+
|
582
|
+
begin
|
583
|
+
# Get hardware assets form provided system
|
584
|
+
result = EmassClient::HardwareBaselineApi.new.get_system_hw_baseline(options[:systemId], optional_options)
|
585
|
+
puts to_output_hash(result).green
|
586
|
+
rescue EmassClient::ApiError => e
|
587
|
+
puts 'Exception when calling HardwareBaselineApi->get_system_hw_baseline'.red
|
588
|
+
puts to_output_hash(e)
|
589
|
+
end
|
590
|
+
end
|
591
|
+
end
|
592
|
+
|
593
|
+
# The Software Baseline endpoints provides the ability to view the
|
594
|
+
# software assets for a system.
|
595
|
+
#
|
596
|
+
# Endpoints:
|
597
|
+
# /api/systems/{systemId}/sw-baseline - Get one or many software assets in a system
|
598
|
+
class Software < SubCommandBase
|
599
|
+
def self.exit_on_failure?
|
600
|
+
true
|
601
|
+
end
|
602
|
+
|
603
|
+
desc 'assets', 'Get one or many software assets in a system'
|
569
604
|
# Required parameters/fields
|
570
|
-
option :
|
605
|
+
option :systemId, aliases: '-s', type: :numeric, required: true,
|
606
|
+
desc: 'A numeric value representing the system identification'
|
571
607
|
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
608
|
+
# Optional parameters/fields
|
609
|
+
option :pageIndex, aliases: '-i', type: :numeric, required: false, desc: 'The page number to be returned, if not specified starts at page 0'
|
610
|
+
option :pageSize, aliases: '-s', type: :numeric, required: false, desc: 'The total entries per page, default is 20,000'
|
611
|
+
|
612
|
+
def assets
|
613
|
+
optional_options_keys = optional_options(@_initializer).keys
|
614
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
615
|
+
|
616
|
+
begin
|
617
|
+
# Get software assets for given system
|
618
|
+
result = EmassClient::SoftwareBaselineApi.new.get_system_sw_baseline(options[:systemId], optional_options)
|
619
|
+
puts to_output_hash(result).green
|
620
|
+
rescue EmassClient::ApiError => e
|
621
|
+
puts 'Exception when calling SoftwareBaselineApi->get_system_sw_baseline'.red
|
622
|
+
puts to_output_hash(e)
|
623
|
+
end
|
578
624
|
end
|
579
625
|
end
|
580
626
|
|
@@ -594,7 +640,7 @@ module Emasser
|
|
594
640
|
option :includeInactive, aliases: '-I', type: :boolean, required: false, default: false, desc: 'BOOLEAN - true or false.'
|
595
641
|
option :registrationType, aliases: '-r',
|
596
642
|
type: :string, required: false,
|
597
|
-
enum: %w[assessAndAuthorize assessOnly guest regular functional cloudServiceProvider commonControlProvider]
|
643
|
+
enum: %w[assessAndAuthorize assessOnly guest regular functional cloudServiceProvider commonControlProvider authorityToUse reciprocityAcceptance]
|
598
644
|
|
599
645
|
def forSite
|
600
646
|
optional_options_keys = optional_options(@_initializer).keys
|
@@ -657,89 +703,152 @@ module Emasser
|
|
657
703
|
end
|
658
704
|
end
|
659
705
|
|
706
|
+
# The Cybersecurity Maturity Model Certification (CMMC) Assessments endpoint provides
|
707
|
+
# the ability to view CMMC assessment information. It is available to CMMC eMASS only.
|
708
|
+
#
|
709
|
+
# Endpoints:
|
710
|
+
# /api/cmmc-assessments - Get CMMC assessment information
|
711
|
+
class CMMC < SubCommandBase
|
712
|
+
def self.exit_on_failure?
|
713
|
+
true
|
714
|
+
end
|
715
|
+
|
716
|
+
desc 'assessments', 'Get CMMC assessment information'
|
717
|
+
long_desc Help.text(:cmmc_get_mapper)
|
718
|
+
|
719
|
+
# Required parameters/fields
|
720
|
+
option :sinceDate, aliases: '-d', type: :string, required: true, desc: 'The CMMC date. Unix date format'
|
721
|
+
|
722
|
+
def assessments
|
723
|
+
result = EmassClient::CMMCAssessmentsApi.new.get_cmmc_assessments(options[:sinceDate])
|
724
|
+
puts to_output_hash(result).green
|
725
|
+
rescue EmassClient::ApiError => e
|
726
|
+
puts 'Exception when calling ApprovalChainApi->get_cmmc_assessments'.red
|
727
|
+
puts to_output_hash(e)
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
660
731
|
# The Dashboards endpoints provide the ability to view data contained in dashboard exports.
|
661
|
-
# In the eMASS
|
732
|
+
# In the eMASS frontend, these dashboard exports are generated as Excel exports.
|
662
733
|
# Each dashboard dataset available from the API is automatically updated with the current
|
663
734
|
# configuration of the dashboard and the instance of eMASS as the dashboard changes.
|
664
735
|
#
|
665
|
-
# Endpoints: (
|
736
|
+
# Endpoints: (57)
|
666
737
|
# ---------------------------------------------------------------------------
|
667
738
|
# System Status Dashboard
|
668
|
-
# /api/dashboards/system-status-details
|
739
|
+
# /api/dashboards/system-status-details
|
740
|
+
# ---------------------------------------------------------------------------
|
741
|
+
# System Terms / Conditions Dashboards
|
742
|
+
# /api/dashboards/system-terms-conditions-summary
|
743
|
+
# /api/dashboards/system-terms-conditions-details
|
744
|
+
# ---------------------------------------------------------------------------
|
745
|
+
# System Connectivity/CCSD
|
746
|
+
# /api/dashboards/system-connectivity-ccsd-summary
|
747
|
+
# /api/dashboards/system-connectivity-ccsd-details
|
748
|
+
# ---------------------------------------------------------------------------
|
749
|
+
# System ATC/IATC
|
750
|
+
# /api/dashboards/system-atc-iatc-details
|
751
|
+
# ---------------------------------------------------------------------------
|
752
|
+
# System Questionnaire
|
753
|
+
# /api/dashboards/system-questionnaire-summary
|
754
|
+
# /api/dashboards/system-questionnaire-details
|
669
755
|
# ---------------------------------------------------------------------------
|
670
|
-
#
|
671
|
-
# /api/dashboards/system-
|
672
|
-
# /api/dashboards/system-
|
673
|
-
# /api/dashboards/system-
|
756
|
+
# System Workflows Dashboard
|
757
|
+
# /api/dashboards/system-workflows-history-summary
|
758
|
+
# /api/dashboards/system-workflows-history-details
|
759
|
+
# /api/dashboards/system-workflows-history-stage-details
|
674
760
|
# ---------------------------------------------------------------------------
|
675
|
-
#
|
676
|
-
# /api/dashboards/system-
|
677
|
-
# /api/dashboards/system-
|
761
|
+
# System Security Controls Dashboard
|
762
|
+
# /api/dashboards/system-control-compliance-summary
|
763
|
+
# /api/dashboards/system-security-controls-details
|
764
|
+
# /api/dashboards/system-assessment-procedures-details
|
678
765
|
# ---------------------------------------------------------------------------
|
679
|
-
#
|
680
|
-
# /api/dashboards/system-poam-summary
|
681
|
-
# /api/dashboards/system-poam-details
|
766
|
+
# System POA&M Dashboards
|
767
|
+
# /api/dashboards/system-poam-summary
|
768
|
+
# /api/dashboards/system-poam-details
|
682
769
|
# ---------------------------------------------------------------------------
|
683
|
-
#
|
684
|
-
# /api/dashboards/system-artifacts-summary
|
685
|
-
# /api/dashboards/system-artifacts-details
|
770
|
+
# System Artifacts Dashboards
|
771
|
+
# /api/dashboards/system-artifacts-summary
|
772
|
+
# /api/dashboards/system-artifacts-details
|
686
773
|
# ---------------------------------------------------------------------------
|
687
|
-
# Hardware
|
688
|
-
# /api/dashboards/system-hardware-summary
|
689
|
-
# /api/dashboards/system-hardware-details
|
774
|
+
# System Hardware Dashboards
|
775
|
+
# /api/dashboards/system-hardware-summary
|
776
|
+
# /api/dashboards/system-hardware-details
|
690
777
|
# ---------------------------------------------------------------------------
|
691
|
-
#
|
692
|
-
# /api/dashboards/system-sensor-hardware-summary
|
693
|
-
# /api/dashboards/system-sensor-hardware-details
|
778
|
+
# System Sensor Hardware Dashboards
|
779
|
+
# /api/dashboards/system-sensor-hardware-summary
|
780
|
+
# /api/dashboards/system-sensor-hardware-details
|
694
781
|
# ---------------------------------------------------------------------------
|
695
|
-
# Software
|
696
|
-
# /api/dashboards/system-software-summary
|
697
|
-
# /api/dashboards/system-software-details
|
782
|
+
# System Software Dashboards
|
783
|
+
# /api/dashboards/system-software-summary
|
784
|
+
# /api/dashboards/system-software-details
|
698
785
|
# ---------------------------------------------------------------------------
|
699
|
-
#
|
700
|
-
# /api/dashboards/system-sensor-software-summary
|
701
|
-
# /api/dashboards/system-sensor-software-details
|
702
|
-
# /api/dashboards/system-sensor-software-counts
|
786
|
+
# System Sensor Software Dashboards
|
787
|
+
# /api/dashboards/system-sensor-software-summary
|
788
|
+
# /api/dashboards/system-sensor-software-details
|
789
|
+
# /api/dashboards/system-sensor-software-counts
|
790
|
+
#--------------------------------------------------------------------------
|
791
|
+
# System Critical Assets
|
792
|
+
# /api/dashboards/system-critical-assets-summary
|
793
|
+
#--------------------------------------------------------------------------
|
794
|
+
# System Vulnerability Dashboards
|
795
|
+
# /api/dashboards/system-vulnerability-summary
|
703
796
|
# ---------------------------------------------------------------------------
|
704
|
-
#
|
705
|
-
#
|
706
|
-
#
|
707
|
-
|
797
|
+
# System Device Findings Dashboards
|
798
|
+
# /api/dashboards/system-device-findings-summary
|
799
|
+
# /api/dashboards/system-device-findings-details
|
800
|
+
#--------------------------------------------------------------------------
|
801
|
+
# System Applications Findings Dashboards
|
802
|
+
# /api/dashboards/system-application-findings-summary
|
803
|
+
# /api/dashboards/system-application-findings-details
|
708
804
|
# ---------------------------------------------------------------------------
|
709
805
|
# Ports and Protocols Dashboards
|
710
|
-
#
|
711
|
-
#
|
806
|
+
# /api/dashboards/system-ports-protocols-summary
|
807
|
+
# /api/dashboards/system-ports-protocols-details
|
712
808
|
#----------------------------------------------------------------------------
|
713
809
|
# System CONMON Integration Status Dashboard
|
714
|
-
#
|
810
|
+
# /api/dashboards/system-conmon-integration-status-summary
|
715
811
|
#----------------------------------------------------------------------------
|
716
812
|
# System Associations Dashboard
|
717
|
-
#
|
813
|
+
# /api/dashboards/system-associations-details
|
718
814
|
#----------------------------------------------------------------------------
|
719
|
-
#
|
720
|
-
#
|
815
|
+
# User System Assignments Dashboard
|
816
|
+
# /api/dashboards/user-system-assignments-details
|
721
817
|
#----------------------------------------------------------------------------
|
722
|
-
#
|
723
|
-
#
|
724
|
-
# /api/dashboards/va-omb-fisma-saop-summary - Get VA OMB-FISMA SAOP summary
|
818
|
+
# Organization Migration Status
|
819
|
+
# /api/dashboards/organization-migration-status-summary
|
725
820
|
#----------------------------------------------------------------------------
|
726
|
-
# System
|
727
|
-
#
|
821
|
+
# System Migration Status
|
822
|
+
# /api/dashboards/system-migration-status-summary
|
728
823
|
#----------------------------------------------------------------------------
|
729
|
-
# System
|
730
|
-
#
|
824
|
+
# System FISMA Metrics
|
825
|
+
# /api/dashboards/system-fisma-metrics
|
731
826
|
#----------------------------------------------------------------------------
|
732
|
-
#
|
733
|
-
#
|
827
|
+
# Coast Guard System FISMA Metrics
|
828
|
+
# /api/dashboards/coastguard-system-fisma-metrics
|
734
829
|
#----------------------------------------------------------------------------
|
735
|
-
#
|
736
|
-
#
|
737
|
-
|
830
|
+
# System Privacy Dashboards
|
831
|
+
# /api/dashboards/system-privacy-summary
|
832
|
+
#--------------------------------------------------------------------------
|
833
|
+
# VA OMB FISMA
|
834
|
+
# /api/dashboards/va-omb-fisma-saop-summary
|
738
835
|
#----------------------------------------------------------------------------
|
739
|
-
#
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
836
|
+
# VA Systems Dashboard
|
837
|
+
# /api/dashboards/va-system-icamp-tableau-poam-details
|
838
|
+
# /api/dashboards/va-system-aa-summary
|
839
|
+
# /api/dashboards/va-system-a2-summary
|
840
|
+
# /api/dashboards/va-system-pl-109-reporting-summary
|
841
|
+
# /api/dashboards/va-system-fisma-inventory-summary
|
842
|
+
# /api/dashboards/va-system-fisma-inventory-crypto-summary
|
843
|
+
# /api/dashboards/va-system-threat-risks-summary
|
844
|
+
# /api/dashboards/va-system-threat-sources-details
|
845
|
+
# /api/dashboards/va-system-threat-architecture-details
|
846
|
+
#----------------------------------------------------------------------------
|
847
|
+
# CMMC Assessment Dashboards
|
848
|
+
# /api/dashboards/cmmc-assessment-status-summary
|
849
|
+
# /api/dashboards/cmmc-assessment-requirements-compliance-summary
|
850
|
+
# /api/dashboards/cmmc-assessment-security-requirements-details
|
851
|
+
# /api/dashboards/cmmc-assessment-requirement-objectives-details
|
743
852
|
|
744
853
|
class Dashboards < SubCommandBase
|
745
854
|
def self.exit_on_failure?
|
@@ -773,51 +882,179 @@ module Emasser
|
|
773
882
|
end
|
774
883
|
|
775
884
|
#----------------------------------------------------------------------------
|
776
|
-
#
|
885
|
+
# System Terms / Conditions Dashboards
|
777
886
|
# /api/dashboards/system-terms-conditions-summary
|
778
887
|
desc 'terms_conditions_summary', 'Get systems terms conditions summary dashboard information'
|
779
888
|
def terms_conditions_summary
|
780
889
|
optional_options_keys = optional_options(@_initializer).keys
|
781
890
|
optional_options = to_input_hash(optional_options_keys, options)
|
782
891
|
|
783
|
-
result = EmassClient::
|
892
|
+
result = EmassClient::SystemTermsConditionsDashboardsApi.new.get_system_terms_conditions_summary(
|
784
893
|
options[:orgId], optional_options
|
785
894
|
)
|
786
895
|
puts to_output_hash(result).green
|
787
896
|
rescue EmassClient::ApiError => e
|
788
|
-
puts 'Exception when calling
|
897
|
+
puts 'Exception when calling SystemTermsConditionsDashboardsApi->get_system_terms_conditions_summary'.red
|
789
898
|
puts to_output_hash(e)
|
790
899
|
end
|
791
900
|
|
792
901
|
# /api/dashboards/system-terms-conditions-details
|
793
|
-
desc '
|
902
|
+
desc 'terms_conditions_details', 'Get systems terms conditions details dashboard information'
|
794
903
|
def terms_conditions_details
|
795
904
|
optional_options_keys = optional_options(@_initializer).keys
|
796
905
|
optional_options = to_input_hash(optional_options_keys, options)
|
797
906
|
|
798
|
-
result = EmassClient::
|
907
|
+
result = EmassClient::SystemTermsConditionsDashboardsApi.new.get_system_terms_conditions_details(
|
908
|
+
options[:orgId], optional_options
|
909
|
+
)
|
910
|
+
puts to_output_hash(result).green
|
911
|
+
rescue EmassClient::ApiError => e
|
912
|
+
puts 'Exception when calling SystemTermsConditionsDashboardsApi->get_system_terms_conditions_details'.red
|
913
|
+
puts to_output_hash(e)
|
914
|
+
end
|
915
|
+
|
916
|
+
# ---------------------------------------------------------------------------
|
917
|
+
# System Connectivity/CCSD
|
918
|
+
# /api/dashboards/system-connectivity-ccsd-summary
|
919
|
+
desc 'connectivity_ccsd_summary', 'Get systems connectivity CCSD summary dashboard information'
|
920
|
+
def connectivity_ccsd_summary
|
921
|
+
optional_options_keys = optional_options(@_initializer).keys
|
922
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
923
|
+
|
924
|
+
result = EmassClient::SystemConnectivityCCSDDashboardsApi.new.get_system_connectivity_ccsd_summary(
|
925
|
+
options[:orgId], optional_options
|
926
|
+
)
|
927
|
+
puts to_output_hash(result).green
|
928
|
+
rescue EmassClient::ApiError => e
|
929
|
+
puts 'Exception when calling SystemConnectivityCCSDDashboardsApi->get_system_connectivity_ccsd_summary'.red
|
930
|
+
puts to_output_hash(e)
|
931
|
+
end
|
932
|
+
|
933
|
+
# /api/dashboards/system-connectivity-ccsd-details
|
934
|
+
desc 'connectivity_ccsd_details', 'Get systems connectivity CCSD details dashboard information'
|
935
|
+
def connectivity_ccsd_details
|
936
|
+
optional_options_keys = optional_options(@_initializer).keys
|
937
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
938
|
+
|
939
|
+
result = EmassClient::SystemConnectivityCCSDDashboardsApi.new.get_system_connectivity_ccsd_details(
|
940
|
+
options[:orgId], optional_options
|
941
|
+
)
|
942
|
+
puts to_output_hash(result).green
|
943
|
+
rescue EmassClient::ApiError => e
|
944
|
+
puts 'Exception when calling SystemConnectivityCCSDDashboardsApi->get_system_connectivity_ccsd_details'.red
|
945
|
+
puts to_output_hash(e)
|
946
|
+
end
|
947
|
+
|
948
|
+
# ---------------------------------------------------------------------------
|
949
|
+
# System ATC/IATC
|
950
|
+
# /api/dashboards/system-atc-iatc-details
|
951
|
+
desc 'atc_iatc_details', 'Get systems ATC/IATC details dashboard information'
|
952
|
+
def atc_iatc_details
|
953
|
+
optional_options_keys = optional_options(@_initializer).keys
|
954
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
955
|
+
|
956
|
+
result = EmassClient::SystemATCIATCDashboardApi.new.get_system_atc_iatc_details(
|
957
|
+
options[:orgId], optional_options
|
958
|
+
)
|
959
|
+
puts to_output_hash(result).green
|
960
|
+
rescue EmassClient::ApiError => e
|
961
|
+
puts 'Exception when calling SystemATCIATCDashboardApi->get_system_atc_iatc_details'.red
|
962
|
+
puts to_output_hash(e)
|
963
|
+
end
|
964
|
+
|
965
|
+
# ---------------------------------------------------------------------------
|
966
|
+
# System Questionnaire
|
967
|
+
# /api/dashboards/system-questionnaire-summary
|
968
|
+
desc 'questionnaire_summary', 'Get systems connequestionnaire summary dashboard information'
|
969
|
+
def questionnaire_summary
|
970
|
+
optional_options_keys = optional_options(@_initializer).keys
|
971
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
972
|
+
|
973
|
+
result = EmassClient::SystemQuestionnaireDashboardsApi.new.get_system_questionnaire_summary(
|
974
|
+
options[:orgId], optional_options
|
975
|
+
)
|
976
|
+
puts to_output_hash(result).green
|
977
|
+
rescue EmassClient::ApiError => e
|
978
|
+
puts 'Exception when calling SystemQuestionnaireDashboardsApi->get_system_questionnaire_summary'.red
|
979
|
+
puts to_output_hash(e)
|
980
|
+
end
|
981
|
+
|
982
|
+
# /api/dashboards/system-questionnaire-details
|
983
|
+
desc 'questionnaire_details', 'Get systems connequestionnaire details dashboard information'
|
984
|
+
def questionnaire_details
|
985
|
+
optional_options_keys = optional_options(@_initializer).keys
|
986
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
987
|
+
|
988
|
+
result = EmassClient::SystemQuestionnaireDashboardsApi.new.get_system_questionnaire_details(
|
989
|
+
options[:orgId], optional_options
|
990
|
+
)
|
991
|
+
puts to_output_hash(result).green
|
992
|
+
rescue EmassClient::ApiError => e
|
993
|
+
puts 'Exception when calling SystemQuestionnaireDashboardsApi->get_system_questionnaire_details'.red
|
994
|
+
puts to_output_hash(e)
|
995
|
+
end
|
996
|
+
|
997
|
+
# ---------------------------------------------------------------------------
|
998
|
+
# System Workflows Dashboard
|
999
|
+
# /api/dashboards/system-workflows-history-summary
|
1000
|
+
desc 'workflows_history_summary', 'Get system workflows history summary dashboard information'
|
1001
|
+
def workflows_history_summary
|
1002
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1003
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1004
|
+
|
1005
|
+
result = EmassClient::SystemWorkflowsDashboardsApi.new.get_system_workflows_history_summary(
|
1006
|
+
options[:orgId], optional_options
|
1007
|
+
)
|
1008
|
+
puts to_output_hash(result).green
|
1009
|
+
rescue EmassClient::ApiError => e
|
1010
|
+
puts 'Exception when calling SystemWorkflowsDashboardsApi->get_system_workflows_history_summary'.red
|
1011
|
+
puts to_output_hash(e)
|
1012
|
+
end
|
1013
|
+
#--------------------------------------------------------------------------
|
1014
|
+
# /api/dashboards/system-workflows-history-details
|
1015
|
+
desc 'workflows_history_details', 'Get system workflows history details dashboard information'
|
1016
|
+
def workflows_history_details
|
1017
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1018
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1019
|
+
|
1020
|
+
result = EmassClient::SystemWorkflowsDashboardsApi.new.get_system_workflows_history_details(
|
799
1021
|
options[:orgId], optional_options
|
800
1022
|
)
|
801
1023
|
puts to_output_hash(result).green
|
802
1024
|
rescue EmassClient::ApiError => e
|
803
|
-
puts 'Exception when calling
|
1025
|
+
puts 'Exception when calling SystemWorkflowsDashboardsApi->get_system_workflows_history_details'.red
|
1026
|
+
puts to_output_hash(e)
|
1027
|
+
end
|
1028
|
+
#--------------------------------------------------------------------------
|
1029
|
+
# /api/dashboards/system-workflows-history-stage-details
|
1030
|
+
desc 'workflows_history_stage_details', 'Get system workflows history stage detail dashboard information'
|
1031
|
+
def workflows_history_stage_details
|
1032
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1033
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1034
|
+
|
1035
|
+
result = EmassClient::SystemWorkflowsDashboardsApi.new.get_system_workflows_history_stage_details(
|
1036
|
+
options[:orgId], optional_options
|
1037
|
+
)
|
1038
|
+
puts to_output_hash(result).green
|
1039
|
+
rescue EmassClient::ApiError => e
|
1040
|
+
puts 'Exception when calling SystemWorkflowsDashboardsApi->get_system_workflows_history_stage_details'.red
|
804
1041
|
puts to_output_hash(e)
|
805
1042
|
end
|
806
1043
|
|
807
1044
|
#--------------------------------------------------------------------------
|
808
|
-
#
|
1045
|
+
# Security Controls Dashboards
|
809
1046
|
# /api/dashboards/system-control-compliance-summary
|
810
1047
|
desc 'control_compliance_summary', 'Get systems control compliance summary dashboard information'
|
811
1048
|
def control_compliance_summary
|
812
1049
|
optional_options_keys = optional_options(@_initializer).keys
|
813
1050
|
optional_options = to_input_hash(optional_options_keys, options)
|
814
1051
|
|
815
|
-
result = EmassClient::
|
1052
|
+
result = EmassClient::SystemSecurityControlsDashboardsApi.new.get_system_control_compliance_summary(
|
816
1053
|
options[:orgId], optional_options
|
817
1054
|
)
|
818
1055
|
puts to_output_hash(result).green
|
819
1056
|
rescue EmassClient::ApiError => e
|
820
|
-
puts 'Exception when calling
|
1057
|
+
puts 'Exception when calling SystemSecurityControlsDashboardsApi->get_system_control_compliance_summary'.red
|
821
1058
|
puts to_output_hash(e)
|
822
1059
|
end
|
823
1060
|
|
@@ -827,12 +1064,12 @@ module Emasser
|
|
827
1064
|
optional_options_keys = optional_options(@_initializer).keys
|
828
1065
|
optional_options = to_input_hash(optional_options_keys, options)
|
829
1066
|
|
830
|
-
result = EmassClient::
|
1067
|
+
result = EmassClient::SystemSecurityControlsDashboardsApi.new.get_system_security_control_details(
|
831
1068
|
options[:orgId], optional_options
|
832
1069
|
)
|
833
1070
|
puts to_output_hash(result).green
|
834
1071
|
rescue EmassClient::ApiError => e
|
835
|
-
puts 'Exception when calling
|
1072
|
+
puts 'Exception when calling SystemSecurityControlsDashboardsApi->get_system_security_control_details'.red
|
836
1073
|
puts to_output_hash(e)
|
837
1074
|
end
|
838
1075
|
|
@@ -842,29 +1079,29 @@ module Emasser
|
|
842
1079
|
optional_options_keys = optional_options(@_initializer).keys
|
843
1080
|
optional_options = to_input_hash(optional_options_keys, options)
|
844
1081
|
|
845
|
-
result = EmassClient::
|
1082
|
+
result = EmassClient::SystemSecurityControlsDashboardsApi.new.get_system_assessment_procedures_details(
|
846
1083
|
options[:orgId], optional_options
|
847
1084
|
)
|
848
1085
|
puts to_output_hash(result).green
|
849
1086
|
rescue EmassClient::ApiError => e
|
850
|
-
puts 'Exception when calling
|
1087
|
+
puts 'Exception when calling SystemSecurityControlsDashboardsApi->get_system_assessment_procedures_details'.red
|
851
1088
|
puts to_output_hash(e)
|
852
1089
|
end
|
853
1090
|
|
854
1091
|
#--------------------------------------------------------------------------
|
855
|
-
#
|
1092
|
+
# Ststem POA&M Dashboard
|
856
1093
|
# /api/dashboards/system-poam-summary
|
857
1094
|
desc 'poam_summary', 'Get systems POA&Ms summary dashboard information'
|
858
1095
|
def poam_summary
|
859
1096
|
optional_options_keys = optional_options(@_initializer).keys
|
860
1097
|
optional_options = to_input_hash(optional_options_keys, options)
|
861
1098
|
|
862
|
-
result = EmassClient::
|
1099
|
+
result = EmassClient::SystemPOAMDashboardsApi.new.get_system_poam_summary(
|
863
1100
|
options[:orgId], optional_options
|
864
1101
|
)
|
865
1102
|
puts to_output_hash(result).green
|
866
1103
|
rescue EmassClient::ApiError => e
|
867
|
-
puts 'Exception when calling
|
1104
|
+
puts 'Exception when calling SystemPOAMDashboardsApi->get_system_poam_summary'.red
|
868
1105
|
puts to_output_hash(e)
|
869
1106
|
end
|
870
1107
|
|
@@ -874,29 +1111,29 @@ module Emasser
|
|
874
1111
|
optional_options_keys = optional_options(@_initializer).keys
|
875
1112
|
optional_options = to_input_hash(optional_options_keys, options)
|
876
1113
|
|
877
|
-
result = EmassClient::
|
1114
|
+
result = EmassClient::SystemPOAMDashboardsApi.new.get_system_poam_details(
|
878
1115
|
options[:orgId], optional_options
|
879
1116
|
)
|
880
1117
|
puts to_output_hash(result).green
|
881
1118
|
rescue EmassClient::ApiError => e
|
882
|
-
puts 'Exception when calling
|
1119
|
+
puts 'Exception when calling SystemPOAMDashboardsApi->get_system_poam_details'.red
|
883
1120
|
puts to_output_hash(e)
|
884
1121
|
end
|
885
1122
|
|
886
1123
|
#--------------------------------------------------------------------------
|
887
|
-
#
|
1124
|
+
# System Artifacts Dashboard
|
888
1125
|
# /api/dashboards/system-artifacts-summary
|
889
1126
|
desc 'artifacts_summary', 'Get systems artifacts summary dashboard information'
|
890
1127
|
def artifacts_summary
|
891
1128
|
optional_options_keys = optional_options(@_initializer).keys
|
892
1129
|
optional_options = to_input_hash(optional_options_keys, options)
|
893
1130
|
|
894
|
-
result = EmassClient::
|
1131
|
+
result = EmassClient::SystemArtifactsDashboardsApi.new.get_system_artifacts_summary(
|
895
1132
|
options[:orgId], optional_options
|
896
1133
|
)
|
897
1134
|
puts to_output_hash(result).green
|
898
1135
|
rescue EmassClient::ApiError => e
|
899
|
-
puts 'Exception when calling
|
1136
|
+
puts 'Exception when calling SystemArtifactsDashboardsApi->get_system_artifacts_summary'.red
|
900
1137
|
puts to_output_hash(e)
|
901
1138
|
end
|
902
1139
|
|
@@ -906,29 +1143,29 @@ module Emasser
|
|
906
1143
|
optional_options_keys = optional_options(@_initializer).keys
|
907
1144
|
optional_options = to_input_hash(optional_options_keys, options)
|
908
1145
|
|
909
|
-
result = EmassClient::
|
1146
|
+
result = EmassClient::SystemArtifactsDashboardsApi.new.get_system_artifacts_details(
|
910
1147
|
options[:orgId], optional_options
|
911
1148
|
)
|
912
1149
|
puts to_output_hash(result).green
|
913
1150
|
rescue EmassClient::ApiError => e
|
914
|
-
puts 'Exception when calling
|
1151
|
+
puts 'Exception when calling SystemArtifactsDashboardsApi->get_system_artifacts_details'.red
|
915
1152
|
puts to_output_hash(e)
|
916
1153
|
end
|
917
1154
|
|
918
1155
|
#--------------------------------------------------------------------------
|
919
|
-
# Hardware
|
1156
|
+
# System Hardware Dashboard
|
920
1157
|
# /api/dashboards/system-hardware-summary
|
921
1158
|
desc 'hardware_summary', 'Get system hardware summary dashboard information'
|
922
1159
|
def hardware_summary
|
923
1160
|
optional_options_keys = optional_options(@_initializer).keys
|
924
1161
|
optional_options = to_input_hash(optional_options_keys, options)
|
925
1162
|
|
926
|
-
result = EmassClient::
|
1163
|
+
result = EmassClient::SystemHardwareDashboardsApi.new.get_system_hardware_summary(
|
927
1164
|
options[:orgId], optional_options
|
928
1165
|
)
|
929
1166
|
puts to_output_hash(result).green
|
930
1167
|
rescue EmassClient::ApiError => e
|
931
|
-
puts 'Exception when calling
|
1168
|
+
puts 'Exception when calling SystemHardwareDashboardsApi->get_system_hardware_summary'.red
|
932
1169
|
puts to_output_hash(e)
|
933
1170
|
end
|
934
1171
|
|
@@ -938,29 +1175,29 @@ module Emasser
|
|
938
1175
|
optional_options_keys = optional_options(@_initializer).keys
|
939
1176
|
optional_options = to_input_hash(optional_options_keys, options)
|
940
1177
|
|
941
|
-
result = EmassClient::
|
1178
|
+
result = EmassClient::SystemHardwareDashboardsApi.new.get_system_hardware_details(
|
942
1179
|
options[:orgId], optional_options
|
943
1180
|
)
|
944
1181
|
puts to_output_hash(result).green
|
945
1182
|
rescue EmassClient::ApiError => e
|
946
|
-
puts 'Exception when calling
|
1183
|
+
puts 'Exception when calling SystemHardwareDashboardsApi->get_system_hardware_details'.red
|
947
1184
|
puts to_output_hash(e)
|
948
1185
|
end
|
949
1186
|
|
950
1187
|
#--------------------------------------------------------------------------
|
951
|
-
#
|
1188
|
+
# System Sensor Hardware Dashboard
|
952
1189
|
# /api/dashboards/system-sensor-hardware-summary
|
953
1190
|
desc 'sensor_hardware_summary', 'Get system sensor hardware summary dashboard information'
|
954
1191
|
def sensor_hardware_summary
|
955
1192
|
optional_options_keys = optional_options(@_initializer).keys
|
956
1193
|
optional_options = to_input_hash(optional_options_keys, options)
|
957
1194
|
|
958
|
-
result = EmassClient::
|
1195
|
+
result = EmassClient::SystemSensorHardwareDashboardsApi.new.get_system_sensor_hardware_summary(
|
959
1196
|
options[:orgId], optional_options
|
960
1197
|
)
|
961
1198
|
puts to_output_hash(result).green
|
962
1199
|
rescue EmassClient::ApiError => e
|
963
|
-
puts 'Exception when calling
|
1200
|
+
puts 'Exception when calling SystemSensorHardwareDashboardsApi->get_system_sensor_hardware_summary'.red
|
964
1201
|
puts to_output_hash(e)
|
965
1202
|
end
|
966
1203
|
|
@@ -970,29 +1207,29 @@ module Emasser
|
|
970
1207
|
optional_options_keys = optional_options(@_initializer).keys
|
971
1208
|
optional_options = to_input_hash(optional_options_keys, options)
|
972
1209
|
|
973
|
-
result = EmassClient::
|
1210
|
+
result = EmassClient::SystemSensorHardwareDashboardsApi.new.get_system_sensor_hardware_details(
|
974
1211
|
options[:orgId], optional_options
|
975
1212
|
)
|
976
1213
|
puts to_output_hash(result).green
|
977
1214
|
rescue EmassClient::ApiError => e
|
978
|
-
puts 'Exception when calling
|
1215
|
+
puts 'Exception when calling SystemSensorHardwareDashboardsApi->get_system_sensor_hardware_details'.red
|
979
1216
|
puts to_output_hash(e)
|
980
1217
|
end
|
981
1218
|
|
982
1219
|
#--------------------------------------------------------------------------
|
983
|
-
# Software
|
1220
|
+
# System Software Dashboards
|
984
1221
|
# /api/dashboards/system-software-summary
|
985
1222
|
desc 'software_summary', 'Get system software summary dashboard information'
|
986
1223
|
def software_summary
|
987
1224
|
optional_options_keys = optional_options(@_initializer).keys
|
988
1225
|
optional_options = to_input_hash(optional_options_keys, options)
|
989
1226
|
|
990
|
-
result = EmassClient::
|
1227
|
+
result = EmassClient::SystemSoftwareDashboardsApi.new.get_system_software_summary(
|
991
1228
|
options[:orgId], optional_options
|
992
1229
|
)
|
993
1230
|
puts to_output_hash(result).green
|
994
1231
|
rescue EmassClient::ApiError => e
|
995
|
-
puts 'Exception when calling
|
1232
|
+
puts 'Exception when calling SystemSoftwareDashboardsApi->get_system_software_summary'.red
|
996
1233
|
puts to_output_hash(e)
|
997
1234
|
end
|
998
1235
|
|
@@ -1002,29 +1239,29 @@ module Emasser
|
|
1002
1239
|
optional_options_keys = optional_options(@_initializer).keys
|
1003
1240
|
optional_options = to_input_hash(optional_options_keys, options)
|
1004
1241
|
|
1005
|
-
result = EmassClient::
|
1242
|
+
result = EmassClient::SystemSoftwareDashboardsApi.new.get_system_software_details(
|
1006
1243
|
options[:orgId], optional_options
|
1007
1244
|
)
|
1008
1245
|
puts to_output_hash(result).green
|
1009
1246
|
rescue EmassClient::ApiError => e
|
1010
|
-
puts 'Exception when calling
|
1247
|
+
puts 'Exception when calling SystemSoftwareDashboardsApi->get_system_software_details'.red
|
1011
1248
|
puts to_output_hash(e)
|
1012
1249
|
end
|
1013
1250
|
|
1014
1251
|
#--------------------------------------------------------------------------
|
1015
|
-
#
|
1252
|
+
# System Sensor Software Dashboards
|
1016
1253
|
# /api/dashboards/system-sensor-software-summary
|
1017
1254
|
desc 'sensor_software_summary', 'Get system sensor software summary dashboard information'
|
1018
1255
|
def sensor_software_summary
|
1019
1256
|
optional_options_keys = optional_options(@_initializer).keys
|
1020
1257
|
optional_options = to_input_hash(optional_options_keys, options)
|
1021
1258
|
|
1022
|
-
result = EmassClient::
|
1259
|
+
result = EmassClient::SystemSensorSoftwareDashboardsApi.new.get_system_sensor_software_summary(
|
1023
1260
|
options[:orgId], optional_options
|
1024
1261
|
)
|
1025
1262
|
puts to_output_hash(result).green
|
1026
1263
|
rescue EmassClient::ApiError => e
|
1027
|
-
puts 'Exception when calling
|
1264
|
+
puts 'Exception when calling SystemSensorSoftwareDashboardsApi->get_system_sensor_software_summary'.red
|
1028
1265
|
puts to_output_hash(e)
|
1029
1266
|
end
|
1030
1267
|
|
@@ -1034,12 +1271,12 @@ module Emasser
|
|
1034
1271
|
optional_options_keys = optional_options(@_initializer).keys
|
1035
1272
|
optional_options = to_input_hash(optional_options_keys, options)
|
1036
1273
|
|
1037
|
-
result = EmassClient::
|
1274
|
+
result = EmassClient::SystemSensorSoftwareDashboardsApi.new.get_system_sensor_software_details(
|
1038
1275
|
options[:orgId], optional_options
|
1039
1276
|
)
|
1040
1277
|
puts to_output_hash(result).green
|
1041
1278
|
rescue EmassClient::ApiError => e
|
1042
|
-
puts 'Exception when calling
|
1279
|
+
puts 'Exception when calling SystemSensorSoftwareDashboardsApi->get_system_sensor_software_details'.red
|
1043
1280
|
puts to_output_hash(e)
|
1044
1281
|
end
|
1045
1282
|
|
@@ -1049,44 +1286,63 @@ module Emasser
|
|
1049
1286
|
optional_options_keys = optional_options(@_initializer).keys
|
1050
1287
|
optional_options = to_input_hash(optional_options_keys, options)
|
1051
1288
|
|
1052
|
-
result = EmassClient::
|
1289
|
+
result = EmassClient::SystemSensorSoftwareDashboardsApi.new.get_system_sensor_software_counts(
|
1053
1290
|
options[:orgId], optional_options
|
1054
1291
|
)
|
1055
1292
|
puts to_output_hash(result).green
|
1056
1293
|
rescue EmassClient::ApiError => e
|
1057
|
-
puts 'Exception when calling
|
1294
|
+
puts 'Exception when calling SystemSensorSoftwareDashboardsApi->get_system_sensor_software_counts'.red
|
1058
1295
|
puts to_output_hash(e)
|
1059
1296
|
end
|
1060
1297
|
|
1061
1298
|
#--------------------------------------------------------------------------
|
1062
|
-
#
|
1299
|
+
# System Critical Assets
|
1300
|
+
# /api/dashboards/system-critical-assets-summary
|
1301
|
+
desc 'critical_assets_summary', 'Get system critical assets summary dashboard information'
|
1302
|
+
def critical_assets_summary
|
1303
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1304
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1305
|
+
|
1306
|
+
result = EmassClient::SystemCriticalAssetsDashboardApi.new.get_system_critical_assets_summary(
|
1307
|
+
options[:orgId], optional_options
|
1308
|
+
)
|
1309
|
+
puts to_output_hash(result).green
|
1310
|
+
rescue EmassClient::ApiError => e
|
1311
|
+
puts 'Exception when calling SystemCriticalAssetsDashboardApi->get_system_critical_assets_summary'.red
|
1312
|
+
puts to_output_hash(e)
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
#--------------------------------------------------------------------------
|
1316
|
+
# System Vulnerability Dashboards
|
1063
1317
|
# /api/dashboards/system-vulnerability-summary
|
1064
1318
|
desc 'vulnerability_summary', 'Get system vulnerability summary dashboard information'
|
1065
1319
|
def vulnerability_summary
|
1066
1320
|
optional_options_keys = optional_options(@_initializer).keys
|
1067
1321
|
optional_options = to_input_hash(optional_options_keys, options)
|
1068
1322
|
|
1069
|
-
result = EmassClient::
|
1323
|
+
result = EmassClient::SystemVulnerabilityDashboardApi.new.get_system_vulnerability_summary(
|
1070
1324
|
options[:orgId], optional_options
|
1071
1325
|
)
|
1072
1326
|
puts to_output_hash(result).green
|
1073
1327
|
rescue EmassClient::ApiError => e
|
1074
|
-
puts 'Exception when calling
|
1328
|
+
puts 'Exception when calling SystemVulnerabilityDashboardApi->get_system_vulnerability_summary'.red
|
1075
1329
|
puts to_output_hash(e)
|
1076
1330
|
end
|
1077
1331
|
|
1332
|
+
#--------------------------------------------------------------------------
|
1333
|
+
# System Device Findings Dashboards
|
1078
1334
|
# /api/dashboards/system-device-findings-summary
|
1079
1335
|
desc 'device_findings_summary', 'Get system device findings summary dashboard information'
|
1080
1336
|
def device_findings_summary
|
1081
1337
|
optional_options_keys = optional_options(@_initializer).keys
|
1082
1338
|
optional_options = to_input_hash(optional_options_keys, options)
|
1083
1339
|
|
1084
|
-
result = EmassClient::
|
1340
|
+
result = EmassClient::SystemDeviceFindingsDashboardsApi.new.get_system_device_findings_summary(
|
1085
1341
|
options[:orgId], optional_options
|
1086
1342
|
)
|
1087
1343
|
puts to_output_hash(result).green
|
1088
1344
|
rescue EmassClient::ApiError => e
|
1089
|
-
puts 'Exception when calling
|
1345
|
+
puts 'Exception when calling SystemDeviceFindingsDashboardsApi->get_system_device_findings_summary'.red
|
1090
1346
|
puts to_output_hash(e)
|
1091
1347
|
end
|
1092
1348
|
|
@@ -1096,29 +1352,61 @@ module Emasser
|
|
1096
1352
|
optional_options_keys = optional_options(@_initializer).keys
|
1097
1353
|
optional_options = to_input_hash(optional_options_keys, options)
|
1098
1354
|
|
1099
|
-
result = EmassClient::
|
1355
|
+
result = EmassClient::SystemDeviceFindingsDashboardsApi.new.get_system_device_findings_details(
|
1100
1356
|
options[:orgId], optional_options
|
1101
1357
|
)
|
1102
1358
|
puts to_output_hash(result).green
|
1103
1359
|
rescue EmassClient::ApiError => e
|
1104
|
-
puts 'Exception when calling
|
1360
|
+
puts 'Exception when calling SystemDeviceFindingsDashboardsApi->get_system_device_findings_details'.red
|
1105
1361
|
puts to_output_hash(e)
|
1106
1362
|
end
|
1107
1363
|
|
1108
1364
|
#--------------------------------------------------------------------------
|
1109
|
-
#
|
1365
|
+
# System Applications Findings Dashboards
|
1366
|
+
# /api/dashboards/system-application-findings-summary
|
1367
|
+
desc 'application_findings_summary', 'Get system device findings summary dashboard information'
|
1368
|
+
def application_findings_summary
|
1369
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1370
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1371
|
+
|
1372
|
+
result = EmassClient::SystemApplicationFindingsDashboardsApi.new.get_system_application_findings_summary(
|
1373
|
+
options[:orgId], optional_options
|
1374
|
+
)
|
1375
|
+
puts to_output_hash(result).green
|
1376
|
+
rescue EmassClient::ApiError => e
|
1377
|
+
puts 'Exception when calling SystemApplicationFindingsDashboardsApi->get_system_application_findings_summary'.red
|
1378
|
+
puts to_output_hash(e)
|
1379
|
+
end
|
1380
|
+
|
1381
|
+
# /api/dashboards/system-application-findings-details
|
1382
|
+
desc 'application_findings_details', 'Get system device findings details dashboard information'
|
1383
|
+
def application_findings_details
|
1384
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1385
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1386
|
+
|
1387
|
+
result = EmassClient::SystemApplicationFindingsDashboardsApi.new.get_system_application_findings_details(
|
1388
|
+
options[:orgId], optional_options
|
1389
|
+
)
|
1390
|
+
puts to_output_hash(result).green
|
1391
|
+
rescue EmassClient::ApiError => e
|
1392
|
+
puts 'Exception when calling SystemApplicationFindingsDashboardsApi->get_system_application_findings_details'.red
|
1393
|
+
puts to_output_hash(e)
|
1394
|
+
end
|
1395
|
+
|
1396
|
+
#--------------------------------------------------------------------------
|
1397
|
+
# System Ports and Protocols Dashboards
|
1110
1398
|
# /api/dashboards/system-ports-protocols-summary
|
1111
1399
|
desc 'ports_protocols_summary', 'Get system ports & portocols summary dashboard information'
|
1112
1400
|
def ports_protocols_summary
|
1113
1401
|
optional_options_keys = optional_options(@_initializer).keys
|
1114
1402
|
optional_options = to_input_hash(optional_options_keys, options)
|
1115
1403
|
|
1116
|
-
result = EmassClient::
|
1404
|
+
result = EmassClient::SystemPortsProtocolsDashboardsApi.new.get_system_ports_protocols_summary(
|
1117
1405
|
options[:orgId], optional_options
|
1118
1406
|
)
|
1119
1407
|
puts to_output_hash(result).green
|
1120
1408
|
rescue EmassClient::ApiError => e
|
1121
|
-
puts 'Exception when calling
|
1409
|
+
puts 'Exception when calling SystemPortsProtocolsDashboardsApi->get_system_ports_protocols_summary'.red
|
1122
1410
|
puts to_output_hash(e)
|
1123
1411
|
end
|
1124
1412
|
|
@@ -1128,12 +1416,12 @@ module Emasser
|
|
1128
1416
|
optional_options_keys = optional_options(@_initializer).keys
|
1129
1417
|
optional_options = to_input_hash(optional_options_keys, options)
|
1130
1418
|
|
1131
|
-
result = EmassClient::
|
1419
|
+
result = EmassClient::SystemPortsProtocolsDashboardsApi.new.get_system_ports_protocols_details(
|
1132
1420
|
options[:orgId], optional_options
|
1133
1421
|
)
|
1134
1422
|
puts to_output_hash(result).green
|
1135
1423
|
rescue EmassClient::ApiError => e
|
1136
|
-
puts 'Exception when calling
|
1424
|
+
puts 'Exception when calling SystemPortsProtocolsDashboardsApi->get_system_ports_protocols_details'.red
|
1137
1425
|
puts to_output_hash(e)
|
1138
1426
|
end
|
1139
1427
|
|
@@ -1171,20 +1459,88 @@ module Emasser
|
|
1171
1459
|
puts to_output_hash(e)
|
1172
1460
|
end
|
1173
1461
|
|
1174
|
-
|
1175
|
-
#
|
1462
|
+
#----------------------------------------------------------------------------
|
1463
|
+
# User System Assignments Dashboard
|
1176
1464
|
# /api/dashboards/user-system-assignments-details
|
1177
1465
|
desc 'assignments_details', 'Get user system assignments details dashboard information'
|
1178
1466
|
def assignments_details
|
1179
1467
|
optional_options_keys = optional_options(@_initializer).keys
|
1180
1468
|
optional_options = to_input_hash(optional_options_keys, options)
|
1181
1469
|
|
1182
|
-
result = EmassClient::
|
1470
|
+
result = EmassClient::UserSystemAssignmentsDashboardApi.new.get_user_system_assignments_details(
|
1471
|
+
options[:orgId], optional_options
|
1472
|
+
)
|
1473
|
+
puts to_output_hash(result).green
|
1474
|
+
rescue EmassClient::ApiError => e
|
1475
|
+
puts 'Exception when calling UserSystemAssignmentsDashboardApi->get_user_system_assignments_details'.red
|
1476
|
+
puts to_output_hash(e)
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
#----------------------------------------------------------------------------
|
1480
|
+
# Organization Migration Status
|
1481
|
+
# /api/dashboards/organization-migration-status-summary
|
1482
|
+
desc 'organization_migration_status_summary', 'Get organization migration status summary dashboard information'
|
1483
|
+
def organization_migration_status_summary
|
1484
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1485
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1486
|
+
|
1487
|
+
result = EmassClient::OrganizationMigrationStatusDashboardApi.new.get_organization_migration_status_summary(
|
1488
|
+
options[:orgId], optional_options
|
1489
|
+
)
|
1490
|
+
puts to_output_hash(result).green
|
1491
|
+
rescue EmassClient::ApiError => e
|
1492
|
+
puts 'Exception when calling OrganizationMigrationStatusDashboardApi->get_organization_migration_status_summary'.red
|
1493
|
+
puts to_output_hash(e)
|
1494
|
+
end
|
1495
|
+
|
1496
|
+
#----------------------------------------------------------------------------
|
1497
|
+
# System Migration Status
|
1498
|
+
# /api/dashboards/system-migration-status-summary
|
1499
|
+
desc 'system_migration_status_summary', 'Get system migration status summary dashboard information'
|
1500
|
+
def system_migration_status_summary
|
1501
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1502
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1503
|
+
|
1504
|
+
result = EmassClient::SystemMigrationStatusDashboardApi.new.get_system_migration_status_summary(
|
1183
1505
|
options[:orgId], optional_options
|
1184
1506
|
)
|
1185
1507
|
puts to_output_hash(result).green
|
1186
1508
|
rescue EmassClient::ApiError => e
|
1187
|
-
puts 'Exception when calling
|
1509
|
+
puts 'Exception when calling SystemMigrationStatusDashboardApi->get_system_migration_status_summary'.red
|
1510
|
+
puts to_output_hash(e)
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
#----------------------------------------------------------------------------
|
1514
|
+
# System FISMA Metrics
|
1515
|
+
# /api/dashboards/system-fisma-metrics
|
1516
|
+
desc 'fisma_metrics', 'Get FISMA metrics dashboard information'
|
1517
|
+
def fisma_metrics
|
1518
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1519
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1520
|
+
|
1521
|
+
result = EmassClient::SystemFISMAMetricsDashboardApi.new.get_system_fisma_metrics(
|
1522
|
+
options[:orgId], optional_options
|
1523
|
+
)
|
1524
|
+
puts to_output_hash(result).green
|
1525
|
+
rescue EmassClient::ApiError => e
|
1526
|
+
puts 'Exception when calling SystemFISMAMetricsDashboardApi->get_system_fisma_metrics'.red
|
1527
|
+
puts to_output_hash(e)
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
#----------------------------------------------------------------------------
|
1531
|
+
# Coast Guard System FISMA Metrics
|
1532
|
+
# /api/dashboards/coastguard-system-fisma-metrics
|
1533
|
+
desc 'coastguard_fisma_metrics', 'Get coastguard FISMA metrics dashboard information'
|
1534
|
+
def coastguard_fisma_metrics
|
1535
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1536
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1537
|
+
|
1538
|
+
result = EmassClient::CoastGuardSystemFISMAMetricsDashboardApi.new.get_coast_guard_system_fisma_metrics(
|
1539
|
+
options[:orgId], optional_options
|
1540
|
+
)
|
1541
|
+
puts to_output_hash(result).green
|
1542
|
+
rescue EmassClient::ApiError => e
|
1543
|
+
puts 'Exception when calling CoastGuardSystemFISMAMetricsDashboardApi->get_coast_guard_system_fisma_metrics'.red
|
1188
1544
|
puts to_output_hash(e)
|
1189
1545
|
end
|
1190
1546
|
|
@@ -1196,95 +1552,106 @@ module Emasser
|
|
1196
1552
|
optional_options_keys = optional_options(@_initializer).keys
|
1197
1553
|
optional_options = to_input_hash(optional_options_keys, options)
|
1198
1554
|
|
1199
|
-
result = EmassClient::
|
1555
|
+
result = EmassClient::SystemPrivacyDashboardApi.new.get_system_privacy_summary(
|
1200
1556
|
options[:orgId], optional_options
|
1201
1557
|
)
|
1202
1558
|
puts to_output_hash(result).green
|
1203
1559
|
rescue EmassClient::ApiError => e
|
1204
|
-
puts 'Exception when calling
|
1560
|
+
puts 'Exception when calling SystemPrivacyDashboardApi->get_system_privacy_summary'.red
|
1205
1561
|
puts to_output_hash(e)
|
1206
1562
|
end
|
1207
1563
|
|
1564
|
+
#--------------------------------------------------------------------------
|
1565
|
+
# VA OMB FISMA
|
1208
1566
|
# /api/dashboards/va-omb-fisma-saop-summary
|
1209
1567
|
desc 'fisma_saop_summary', 'Get VA OMB-FISMA SAOP summary dashboard information'
|
1210
1568
|
def fisma_saop_summary
|
1211
1569
|
optional_options_keys = optional_options(@_initializer).keys
|
1212
1570
|
optional_options = to_input_hash(optional_options_keys, options)
|
1213
1571
|
|
1214
|
-
result = EmassClient::
|
1572
|
+
result = EmassClient::VAOMBFISMADashboardApi.new.get_va_omb_fsma_saop_summary(
|
1215
1573
|
options[:orgId], optional_options
|
1216
1574
|
)
|
1217
1575
|
puts to_output_hash(result).green
|
1218
1576
|
rescue EmassClient::ApiError => e
|
1219
|
-
puts 'Exception when calling
|
1577
|
+
puts 'Exception when calling VAOMBFISMADashboardApi->get_va_omb_fsma_saop_summary'.red
|
1578
|
+
puts to_output_hash(e).yellow
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
#----------------------------------------------------------------------------
|
1582
|
+
# VA Systems Dashboard
|
1583
|
+
# /api/dashboards/va-system-icamp-tableau-poam-details
|
1584
|
+
desc 'va_icamp_tableau_poam_details', 'Get VA ICAMP Tableau POA&M details dashboard information'
|
1585
|
+
def va_icamp_tableau_poam_details
|
1586
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1587
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1588
|
+
|
1589
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_icamp_tableau_poam_details(
|
1590
|
+
options[:orgId], optional_options
|
1591
|
+
)
|
1592
|
+
puts to_output_hash(result).green
|
1593
|
+
rescue EmassClient::ApiError => e
|
1594
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_icamp_tableau_poam_details'.red
|
1220
1595
|
puts to_output_hash(e).yellow
|
1221
1596
|
end
|
1222
1597
|
|
1223
|
-
#--------------------------------------------------------------------------
|
1224
|
-
# System A&A Summary Dashboard
|
1225
1598
|
# /api/dashboards/va-system-aa-summary
|
1226
1599
|
desc 'va_aa_summary', 'Get VA system A&A summary dashboard information'
|
1227
1600
|
def va_aa_summary
|
1228
1601
|
optional_options_keys = optional_options(@_initializer).keys
|
1229
1602
|
optional_options = to_input_hash(optional_options_keys, options)
|
1230
1603
|
|
1231
|
-
result = EmassClient::
|
1604
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_aa_summary(
|
1232
1605
|
options[:orgId], optional_options
|
1233
1606
|
)
|
1234
1607
|
puts to_output_hash(result).green
|
1235
1608
|
rescue EmassClient::ApiError => e
|
1236
|
-
puts 'Exception when calling
|
1609
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_aa_summary'.red
|
1237
1610
|
puts to_output_hash(e).yellow
|
1238
1611
|
end
|
1239
1612
|
|
1240
|
-
#--------------------------------------------------------------------------
|
1241
|
-
# System A2.0 Summary Dashboard
|
1242
1613
|
# /api/dashboards/va-system-a2-summary
|
1243
1614
|
desc 'va_a2_summary', 'Get VA system A2.0 summary dashboard information'
|
1244
1615
|
def va_a2_summary
|
1245
1616
|
optional_options_keys = optional_options(@_initializer).keys
|
1246
1617
|
optional_options = to_input_hash(optional_options_keys, options)
|
1247
1618
|
|
1248
|
-
result = EmassClient::
|
1619
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_a2_summary(
|
1249
1620
|
options[:orgId], optional_options
|
1250
1621
|
)
|
1251
1622
|
puts to_output_hash(result).green
|
1252
1623
|
rescue EmassClient::ApiError => e
|
1253
|
-
puts 'Exception when calling
|
1624
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_a2_summary'.red
|
1254
1625
|
puts to_output_hash(e).yellow
|
1255
1626
|
end
|
1256
1627
|
|
1257
|
-
#--------------------------------------------------------------------------
|
1258
|
-
# System P.L. 109 Reporting Summary Dashboard
|
1259
1628
|
# /api/dashboards/va-system-pl-109-reporting-summary
|
1260
1629
|
desc 'va_pl_109_summary', 'Get VA System P.L. 109 reporting summary dashboard information'
|
1261
1630
|
def va_pl_109_summary
|
1262
1631
|
optional_options_keys = optional_options(@_initializer).keys
|
1263
1632
|
optional_options = to_input_hash(optional_options_keys, options)
|
1264
1633
|
|
1265
|
-
result = EmassClient::
|
1634
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_pl109_reporting_summary(
|
1266
1635
|
options[:orgId], optional_options
|
1267
1636
|
)
|
1268
1637
|
puts to_output_hash(result).green
|
1269
1638
|
rescue EmassClient::ApiError => e
|
1270
|
-
puts 'Exception when calling
|
1639
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_pl109_reporting_summary'.red
|
1271
1640
|
puts to_output_hash(e).yellow
|
1272
1641
|
end
|
1273
1642
|
|
1274
|
-
#--------------------------------------------------------------------------
|
1275
|
-
# FISMA Inventory Summary Dashboard
|
1276
1643
|
# /api/dashboards/va-system-fisma-inventory-summary
|
1277
1644
|
desc 'fisma_inventory_summary', 'Get VA system FISMA inventory summary dashboard information'
|
1278
1645
|
def fisma_inventory_summary
|
1279
1646
|
optional_options_keys = optional_options(@_initializer).keys
|
1280
1647
|
optional_options = to_input_hash(optional_options_keys, options)
|
1281
1648
|
|
1282
|
-
result = EmassClient::
|
1649
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_fisma_invetory_summary(
|
1283
1650
|
options[:orgId], optional_options
|
1284
1651
|
)
|
1285
1652
|
puts to_output_hash(result).green
|
1286
1653
|
rescue EmassClient::ApiError => e
|
1287
|
-
puts 'Exception when calling
|
1654
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_fisma_invetory_summary'.red
|
1288
1655
|
puts to_output_hash(e).yellow
|
1289
1656
|
end
|
1290
1657
|
|
@@ -1294,29 +1661,27 @@ module Emasser
|
|
1294
1661
|
optional_options_keys = optional_options(@_initializer).keys
|
1295
1662
|
optional_options = to_input_hash(optional_options_keys, options)
|
1296
1663
|
|
1297
|
-
result = EmassClient::
|
1664
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_fisma_invetory_crypto_summary(
|
1298
1665
|
options[:orgId], optional_options
|
1299
1666
|
)
|
1300
1667
|
puts to_output_hash(result).green
|
1301
1668
|
rescue EmassClient::ApiError => e
|
1302
|
-
puts 'Exception when calling
|
1669
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_fisma_invetory_crypto_summary'.red
|
1303
1670
|
puts to_output_hash(e).yellow
|
1304
1671
|
end
|
1305
1672
|
|
1306
|
-
#--------------------------------------------------------------------------
|
1307
|
-
# Threat Risks Dashboard
|
1308
1673
|
# /api/dashboards/va-system-threat-risks-summary
|
1309
1674
|
desc 'threat_risk_summary', 'Get VA System Threat Risks Summary dashboard information'
|
1310
1675
|
def threat_risk_summary
|
1311
1676
|
optional_options_keys = optional_options(@_initializer).keys
|
1312
1677
|
optional_options = to_input_hash(optional_options_keys, options)
|
1313
1678
|
|
1314
|
-
result = EmassClient::
|
1679
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_threat_risk_summary(
|
1315
1680
|
options[:orgId], optional_options
|
1316
1681
|
)
|
1317
1682
|
puts to_output_hash(result).green
|
1318
1683
|
rescue EmassClient::ApiError => e
|
1319
|
-
puts 'Exception when calling
|
1684
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_threat_risk_summary'.red
|
1320
1685
|
puts to_output_hash(e).yellow
|
1321
1686
|
end
|
1322
1687
|
|
@@ -1326,12 +1691,12 @@ module Emasser
|
|
1326
1691
|
optional_options_keys = optional_options(@_initializer).keys
|
1327
1692
|
optional_options = to_input_hash(optional_options_keys, options)
|
1328
1693
|
|
1329
|
-
result = EmassClient::
|
1694
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_threat_source_details(
|
1330
1695
|
options[:orgId], optional_options
|
1331
1696
|
)
|
1332
1697
|
puts to_output_hash(result).green
|
1333
1698
|
rescue EmassClient::ApiError => e
|
1334
|
-
puts 'Exception when calling
|
1699
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_threat_source_details'.red
|
1335
1700
|
puts to_output_hash(e).yellow
|
1336
1701
|
end
|
1337
1702
|
|
@@ -1341,12 +1706,74 @@ module Emasser
|
|
1341
1706
|
optional_options_keys = optional_options(@_initializer).keys
|
1342
1707
|
optional_options = to_input_hash(optional_options_keys, options)
|
1343
1708
|
|
1344
|
-
result = EmassClient::
|
1709
|
+
result = EmassClient::VASystemDashboardsApi.new.get_va_system_threat_architecture_details(
|
1710
|
+
options[:orgId], optional_options
|
1711
|
+
)
|
1712
|
+
puts to_output_hash(result).green
|
1713
|
+
rescue EmassClient::ApiError => e
|
1714
|
+
puts 'Exception when calling VASystemDashboardsApi->get_va_system_threat_architecture_details'.red
|
1715
|
+
puts to_output_hash(e).yellow
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
#----------------------------------------------------------------------------
|
1719
|
+
# CMMC Assessment Dashboards
|
1720
|
+
# /api/dashboards/cmmc-assessment-status-summary
|
1721
|
+
desc 'cmmc_status_summary', 'Get CMMC Assessment status summary dashboard information'
|
1722
|
+
def cmmc_status_summary
|
1723
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1724
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1725
|
+
|
1726
|
+
result = EmassClient::CMMCAssessmentDashboardsApi.new.get_cmmc_assessment_status_summary(
|
1727
|
+
options[:orgId], optional_options
|
1728
|
+
)
|
1729
|
+
puts to_output_hash(result).green
|
1730
|
+
rescue EmassClient::ApiError => e
|
1731
|
+
puts 'Exception when calling CMMCAssessmentDashboardsApi->get_cmmc_assessment_status_summary'.red
|
1732
|
+
puts to_output_hash(e).yellow
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# /api/dashboards/cmmc-assessment-requirements-compliance-summary
|
1736
|
+
desc 'cmmc_compliance_summary', 'Get CMMC Assessment Requirements Compliance Summary dashboard information'
|
1737
|
+
def cmmc_compliance_summary
|
1738
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1739
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1740
|
+
|
1741
|
+
result = EmassClient::CMMCAssessmentDashboardsApi.new.get_cmmc_assessment_requirements_compliance_summary(
|
1742
|
+
options[:orgId], optional_options
|
1743
|
+
)
|
1744
|
+
puts to_output_hash(result).green
|
1745
|
+
rescue EmassClient::ApiError => e
|
1746
|
+
puts 'Exception when calling CMMCAssessmentDashboardsApi->get_cmmc_assessment_requirements_compliance_summary'.red
|
1747
|
+
puts to_output_hash(e).yellow
|
1748
|
+
end
|
1749
|
+
|
1750
|
+
# /api/dashboards/cmmc-assessment-security-requirements-details
|
1751
|
+
desc 'cmmc_security_requirements_details', 'Get CMMC Assessment Security Requirements Details dashboard information'
|
1752
|
+
def cmmc_security_requirements_details
|
1753
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1754
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1755
|
+
|
1756
|
+
result = EmassClient::CMMCAssessmentDashboardsApi.new.get_cmmc_assessment_security_requirements_details(
|
1345
1757
|
options[:orgId], optional_options
|
1346
1758
|
)
|
1347
1759
|
puts to_output_hash(result).green
|
1348
1760
|
rescue EmassClient::ApiError => e
|
1349
|
-
puts 'Exception when calling
|
1761
|
+
puts 'Exception when calling CMMCAssessmentDashboardsApi->get_cmmc_assessment_security_requirements_details'.red
|
1762
|
+
puts to_output_hash(e).yellow
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
# /api/dashboards/cmmc-assessment-requirement-objectives-details
|
1766
|
+
desc 'cmmc_requirement_objectives_details', 'Get CMMC Assessment Requirement Objectives Details dashboard information'
|
1767
|
+
def cmmc_requirement_objectives_details
|
1768
|
+
optional_options_keys = optional_options(@_initializer).keys
|
1769
|
+
optional_options = to_input_hash(optional_options_keys, options)
|
1770
|
+
|
1771
|
+
result = EmassClient::CMMCAssessmentDashboardsApi.new.get_cmmc_assessment_requirement_objectives_details(
|
1772
|
+
options[:orgId], optional_options
|
1773
|
+
)
|
1774
|
+
puts to_output_hash(result).green
|
1775
|
+
rescue EmassClient::ApiError => e
|
1776
|
+
puts 'Exception when calling CMMCAssessmentDashboardsApi->get_cmmc_assessment_requirement_objectives_details'.red
|
1350
1777
|
puts to_output_hash(e).yellow
|
1351
1778
|
end
|
1352
1779
|
end
|
@@ -1385,8 +1812,11 @@ module Emasser
|
|
1385
1812
|
desc 'pac', 'Get status of active workflows in a system'
|
1386
1813
|
subcommand 'pac', PAC
|
1387
1814
|
|
1388
|
-
desc '
|
1389
|
-
subcommand '
|
1815
|
+
desc 'hardware', 'Get one or many hardware assets in a system'
|
1816
|
+
subcommand 'hardware', Hardware
|
1817
|
+
|
1818
|
+
desc 'software', 'Get one or many software assets in a system'
|
1819
|
+
subcommand 'software', Software
|
1390
1820
|
|
1391
1821
|
desc 'workflow_definitions', 'Get workflow definitions in a site'
|
1392
1822
|
subcommand 'workflow_definitions', WorkflowDefinitions
|
@@ -1394,6 +1824,9 @@ module Emasser
|
|
1394
1824
|
desc 'workflow_instances', 'Get workflow instance by system and/or ID in a system'
|
1395
1825
|
subcommand 'workflow_instances', WorkflowInstances
|
1396
1826
|
|
1827
|
+
desc 'cmmc', 'Get CMMC assessment information'
|
1828
|
+
subcommand 'cmmc', CMMC
|
1829
|
+
|
1397
1830
|
desc 'dashboards', 'Get dashboard information'
|
1398
1831
|
subcommand 'dashboards', Dashboards
|
1399
1832
|
end
|