Method: TenableRuby::Client#report_by_image_id

Defined in:
lib/tenable-ruby.rb

#report_by_image_id(image_id) ⇒ Object

Returns a report in JSON format for an image that you specify by ID. Note: If you do not have the image_id, you can call the list-images endpoint.

Reference: developer.tenable.com/reference#container-security-reports-report-by-image-id



713
714
715
# File 'lib/tenable-ruby.rb', line 713

def report_by_image_id(image_id)
  http_get(:uri => "/container-security/api/v1/reports/by_image?image_id=#{image_id}", :fields => header)
end