Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 2.17 KB

FalconContainerCli.md

File metadata and controls

77 lines (53 loc) · 2.17 KB

Falcon::FalconContainerCli

All URIs are relative to https://api.us-2.crowdstrike.com

Method HTTP request Description
read_image_vulnerabilities POST /image-assessment/combined/vulnerability-lookups/v1 Retrieve known vulnerabilities for the provided image

read_image_vulnerabilities

read_image_vulnerabilities(body)

Retrieve known vulnerabilities for the provided image

Examples

require 'time'
require 'crimson-falcon'

# Setup authorization
Falcon.configure do |config|
  config.client_id = "Your_Client_ID"
  config.client_secret = "Your_Client_Secret"
  config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
end

api_instance = Falcon::FalconContainerCli.new
body = Falcon::ApiImageLookupRequest.new({osversion: 'osversion_example', packages: [Falcon::ModelsPackageInfoType.new]}) # ApiImageLookupRequest | 

begin
  # Retrieve known vulnerabilities for the provided image
  result = api_instance.read_image_vulnerabilities(body)
  p result
rescue Falcon::ApiError => e
  puts "Error when calling FalconContainerCli->read_image_vulnerabilities: #{e}"
end

Using the read_image_vulnerabilities_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> read_image_vulnerabilities_with_http_info(body)

begin
  # Retrieve known vulnerabilities for the provided image
  data, status_code, headers = api_instance.read_image_vulnerabilities_with_http_info(body)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <CoreEntitiesResponse>
rescue Falcon::ApiError => e
  puts "Error when calling FalconContainerCli->read_image_vulnerabilities_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
body ApiImageLookupRequest

Return type

CoreEntitiesResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json