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(body)
Retrieve known vulnerabilities for the provided image
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
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
Name | Type | Description | Notes |
---|---|---|---|
body | ApiImageLookupRequest |
oauth2
- Content-Type: application/json
- Accept: application/json