Module: Wazuh::Api::Endpoints::Rules
- Included in:
- Wazuh::Api::Endpoints
- Defined in:
- lib/wazuh/api/endpoints/rules.rb
Instance Method Summary collapse
-
#all_rules(options = {}) ⇒ Object
Returns all rules.
-
#gdpr_rules(options = {}) ⇒ Object
Returns the GDPR requirements of all rules.
-
#gpg13_rules(options = {}) ⇒ Object
Returns the GPG13 requirements of all rules.
-
#hipaa_rules(options = {}) ⇒ Object
Returns the HIPAA requirements of all rules.
-
#nist_800_53_rules(options = {}) ⇒ Object
Returns the NIST-800-53 requirements of all rules.
-
#pic_rules(options = {}) ⇒ Object
Returns the PCI requirements of all rules.
-
#rule_by_id(rule_id, options = {}) ⇒ Object
Returns the rules with the specified id.
-
#rule_files(options = {}) ⇒ Object
Returns the files of all rules.
-
#rules_groups(options = {}) ⇒ Object
Returns the groups of all rules.
Instance Method Details
#all_rules(options = {}) ⇒ Object
Returns all rules.
9 10 11 12 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 9 def all_rules( = {}) data = get '/rules', data.items end |
#gdpr_rules(options = {}) ⇒ Object
Returns the GDPR requirements of all rules.
25 26 27 28 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 25 def gdpr_rules( = {}) data = get '/rules/gdpr', data.items end |
#gpg13_rules(options = {}) ⇒ Object
Returns the GPG13 requirements of all rules.
33 34 35 36 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 33 def gpg13_rules( = {}) data = get '/rules/gpg13', data.items end |
#hipaa_rules(options = {}) ⇒ Object
Returns the HIPAA requirements of all rules.
49 50 51 52 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 49 def hipaa_rules( = {}) data = get '/rules/hipaa', data.items end |
#nist_800_53_rules(options = {}) ⇒ Object
Returns the NIST-800-53 requirements of all rules.
57 58 59 60 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 57 def nist_800_53_rules( = {}) data = get '/rules/nist-800-53', data.items end |
#pic_rules(options = {}) ⇒ Object
Returns the PCI requirements of all rules
65 66 67 68 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 65 def pic_rules( = {}) data = get '/rules/pci', data.items end |
#rule_by_id(rule_id, options = {}) ⇒ Object
Returns the rules with the specified id.
82 83 84 85 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 82 def rule_by_id(rule_id, = {}) data = get "/rules/#{rule_id}", data.items end |
#rule_files(options = {}) ⇒ Object
Returns the files of all rules.
17 18 19 20 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 17 def rule_files( = {}) data = get '/rules/files', data.items end |
#rules_groups(options = {}) ⇒ Object
Returns the groups of all rules.
41 42 43 44 |
# File 'lib/wazuh/api/endpoints/rules.rb', line 41 def rules_groups( = {}) data = get '/rules/groups', data.items end |