Sha256: b5a8928ee19fe8f154f7eb2ac34f572ddefaa78473829feb7e710a9e8d62168c

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

# List findings with detection_type query param returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.unstable_operations["v2.list_findings".to_sym] = true
end
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
opts = {
  filter_vulnerability_type: [
    FindingVulnerabilityType::MISCONFIGURATION,
    FindingVulnerabilityType::ATTACK_PATH,
  ],
}
p api_instance.list_findings(opts)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/security-monitoring/ListFindings_1668290866.rb
datadog_api_client-2.28.1 examples/v2/security-monitoring/ListFindings_1668290866.rb