#[non_exhaustive]pub struct ListVulnerabilitiesOptionalParams {Show 42 fields
pub page_token: Option<String>,
pub page_number: Option<i64>,
pub filter_type: Option<VulnerabilityType>,
pub filter_cvss_base_score_op: Option<f64>,
pub filter_cvss_base_severity: Option<VulnerabilitySeverity>,
pub filter_cvss_base_vector: Option<String>,
pub filter_cvss_datadog_score_op: Option<f64>,
pub filter_cvss_datadog_severity: Option<VulnerabilitySeverity>,
pub filter_cvss_datadog_vector: Option<String>,
pub filter_status: Option<VulnerabilityStatus>,
pub filter_tool: Option<VulnerabilityTool>,
pub filter_library_name: Option<String>,
pub filter_library_version: Option<String>,
pub filter_advisory_id: Option<String>,
pub filter_risks_exploitation_probability: Option<bool>,
pub filter_risks_poc_exploit_available: Option<bool>,
pub filter_risks_exploit_available: Option<bool>,
pub filter_risks_epss_score_op: Option<f64>,
pub filter_risks_epss_severity: Option<VulnerabilitySeverity>,
pub filter_language: Option<String>,
pub filter_ecosystem: Option<VulnerabilityEcosystem>,
pub filter_code_location_location: Option<String>,
pub filter_code_location_file_path: Option<String>,
pub filter_code_location_method: Option<String>,
pub filter_fix_available: Option<bool>,
pub filter_repo_digests: Option<String>,
pub filter_origin: Option<String>,
pub filter_asset_name: Option<String>,
pub filter_asset_type: Option<AssetType>,
pub filter_asset_version_first: Option<String>,
pub filter_asset_version_last: Option<String>,
pub filter_asset_repository_url: Option<String>,
pub filter_asset_risks_in_production: Option<bool>,
pub filter_asset_risks_under_attack: Option<bool>,
pub filter_asset_risks_is_publicly_accessible: Option<bool>,
pub filter_asset_risks_has_privileged_access: Option<bool>,
pub filter_asset_risks_has_access_to_sensitive_data: Option<bool>,
pub filter_asset_environments: Option<String>,
pub filter_asset_teams: Option<String>,
pub filter_asset_arch: Option<String>,
pub filter_asset_operating_system_name: Option<String>,
pub filter_asset_operating_system_version: Option<String>,
}
Expand description
ListVulnerabilitiesOptionalParams is a struct for passing parameters to the method SecurityMonitoringAPI::list_vulnerabilities
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.page_token: Option<String>
Its value must come from the links
section of the response of the first request. Do not manually edit it.
page_number: Option<i64>
The page number to be retrieved. It should be equal or greater than 1
filter_type: Option<VulnerabilityType>
Filter by vulnerability type.
filter_cvss_base_score_op: Option<f64>
Filter by vulnerability base (i.e. from the original advisory) severity score.
filter_cvss_base_severity: Option<VulnerabilitySeverity>
Filter by vulnerability base severity.
filter_cvss_base_vector: Option<String>
Filter by vulnerability base CVSS vector.
filter_cvss_datadog_score_op: Option<f64>
Filter by vulnerability Datadog severity score.
filter_cvss_datadog_severity: Option<VulnerabilitySeverity>
Filter by vulnerability Datadog severity.
filter_cvss_datadog_vector: Option<String>
Filter by vulnerability Datadog CVSS vector.
filter_status: Option<VulnerabilityStatus>
Filter by the status of the vulnerability.
filter_tool: Option<VulnerabilityTool>
Filter by the tool of the vulnerability.
filter_library_name: Option<String>
Filter by library name.
filter_library_version: Option<String>
Filter by library version.
filter_advisory_id: Option<String>
Filter by advisory ID.
filter_risks_exploitation_probability: Option<bool>
Filter by exploitation probability.
filter_risks_poc_exploit_available: Option<bool>
Filter by POC exploit availability.
filter_risks_exploit_available: Option<bool>
Filter by public exploit availability.
filter_risks_epss_score_op: Option<f64>
Filter by vulnerability EPSS severity score.
filter_risks_epss_severity: Option<VulnerabilitySeverity>
Filter by vulnerability EPSS severity.
filter_language: Option<String>
Filter by language.
filter_ecosystem: Option<VulnerabilityEcosystem>
Filter by ecosystem.
filter_code_location_location: Option<String>
Filter by vulnerability location.
filter_code_location_file_path: Option<String>
Filter by vulnerability file path.
filter_code_location_method: Option<String>
Filter by method.
filter_fix_available: Option<bool>
Filter by fix availability.
filter_repo_digests: Option<String>
Filter by vulnerability repo_digest
(when the vulnerability is related to Image
asset).
filter_origin: Option<String>
Filter by origin.
filter_asset_name: Option<String>
Filter by asset name.
filter_asset_type: Option<AssetType>
Filter by asset type.
filter_asset_version_first: Option<String>
Filter by the first version of the asset this vulnerability has been detected on.
filter_asset_version_last: Option<String>
Filter by the last version of the asset this vulnerability has been detected on.
filter_asset_repository_url: Option<String>
Filter by the repository url associated to the asset.
filter_asset_risks_in_production: Option<bool>
Filter whether the asset is in production or not.
filter_asset_risks_under_attack: Option<bool>
Filter whether the asset is under attack or not.
filter_asset_risks_is_publicly_accessible: Option<bool>
Filter whether the asset is publicly accessible or not.
filter_asset_risks_has_privileged_access: Option<bool>
Filter whether the asset is publicly accessible or not.
filter_asset_risks_has_access_to_sensitive_data: Option<bool>
Filter whether the asset has access to sensitive data or not.
filter_asset_environments: Option<String>
Filter by asset environments.
filter_asset_teams: Option<String>
Filter by asset teams.
filter_asset_arch: Option<String>
Filter by asset architecture.
filter_asset_operating_system_name: Option<String>
Filter by asset operating system name.
filter_asset_operating_system_version: Option<String>
Filter by asset operating system version.
Implementations§
Source§impl ListVulnerabilitiesOptionalParams
impl ListVulnerabilitiesOptionalParams
Sourcepub fn page_token(self, value: String) -> Self
pub fn page_token(self, value: String) -> Self
Its value must come from the links
section of the response of the first request. Do not manually edit it.
Sourcepub fn page_number(self, value: i64) -> Self
pub fn page_number(self, value: i64) -> Self
The page number to be retrieved. It should be equal or greater than 1
Sourcepub fn filter_type(self, value: VulnerabilityType) -> Self
pub fn filter_type(self, value: VulnerabilityType) -> Self
Filter by vulnerability type.
Sourcepub fn filter_cvss_base_score_op(self, value: f64) -> Self
pub fn filter_cvss_base_score_op(self, value: f64) -> Self
Filter by vulnerability base (i.e. from the original advisory) severity score.
Sourcepub fn filter_cvss_base_severity(self, value: VulnerabilitySeverity) -> Self
pub fn filter_cvss_base_severity(self, value: VulnerabilitySeverity) -> Self
Filter by vulnerability base severity.
Examples found in repository?
10async fn main() {
11 let mut configuration = datadog::Configuration::new();
12 configuration.set_unstable_operation_enabled("v2.ListVulnerabilities", true);
13 let api = SecurityMonitoringAPI::with_config(configuration);
14 let resp = api
15 .list_vulnerabilities(
16 ListVulnerabilitiesOptionalParams::default()
17 .filter_cvss_base_severity(VulnerabilitySeverity::HIGH)
18 .filter_asset_type(AssetType::SERVICE)
19 .filter_tool(VulnerabilityTool::INFRA),
20 )
21 .await;
22 if let Ok(value) = resp {
23 println!("{:#?}", value);
24 } else {
25 println!("{:#?}", resp.unwrap_err());
26 }
27}
Sourcepub fn filter_cvss_base_vector(self, value: String) -> Self
pub fn filter_cvss_base_vector(self, value: String) -> Self
Filter by vulnerability base CVSS vector.
Sourcepub fn filter_cvss_datadog_score_op(self, value: f64) -> Self
pub fn filter_cvss_datadog_score_op(self, value: f64) -> Self
Filter by vulnerability Datadog severity score.
Sourcepub fn filter_cvss_datadog_severity(self, value: VulnerabilitySeverity) -> Self
pub fn filter_cvss_datadog_severity(self, value: VulnerabilitySeverity) -> Self
Filter by vulnerability Datadog severity.
Sourcepub fn filter_cvss_datadog_vector(self, value: String) -> Self
pub fn filter_cvss_datadog_vector(self, value: String) -> Self
Filter by vulnerability Datadog CVSS vector.
Sourcepub fn filter_status(self, value: VulnerabilityStatus) -> Self
pub fn filter_status(self, value: VulnerabilityStatus) -> Self
Filter by the status of the vulnerability.
Sourcepub fn filter_tool(self, value: VulnerabilityTool) -> Self
pub fn filter_tool(self, value: VulnerabilityTool) -> Self
Filter by the tool of the vulnerability.
Examples found in repository?
10async fn main() {
11 let mut configuration = datadog::Configuration::new();
12 configuration.set_unstable_operation_enabled("v2.ListVulnerabilities", true);
13 let api = SecurityMonitoringAPI::with_config(configuration);
14 let resp = api
15 .list_vulnerabilities(
16 ListVulnerabilitiesOptionalParams::default()
17 .filter_cvss_base_severity(VulnerabilitySeverity::HIGH)
18 .filter_asset_type(AssetType::SERVICE)
19 .filter_tool(VulnerabilityTool::INFRA),
20 )
21 .await;
22 if let Ok(value) = resp {
23 println!("{:#?}", value);
24 } else {
25 println!("{:#?}", resp.unwrap_err());
26 }
27}
Sourcepub fn filter_library_name(self, value: String) -> Self
pub fn filter_library_name(self, value: String) -> Self
Filter by library name.
Sourcepub fn filter_library_version(self, value: String) -> Self
pub fn filter_library_version(self, value: String) -> Self
Filter by library version.
Sourcepub fn filter_advisory_id(self, value: String) -> Self
pub fn filter_advisory_id(self, value: String) -> Self
Filter by advisory ID.
Sourcepub fn filter_risks_exploitation_probability(self, value: bool) -> Self
pub fn filter_risks_exploitation_probability(self, value: bool) -> Self
Filter by exploitation probability.
Sourcepub fn filter_risks_poc_exploit_available(self, value: bool) -> Self
pub fn filter_risks_poc_exploit_available(self, value: bool) -> Self
Filter by POC exploit availability.
Sourcepub fn filter_risks_exploit_available(self, value: bool) -> Self
pub fn filter_risks_exploit_available(self, value: bool) -> Self
Filter by public exploit availability.
Sourcepub fn filter_risks_epss_score_op(self, value: f64) -> Self
pub fn filter_risks_epss_score_op(self, value: f64) -> Self
Filter by vulnerability EPSS severity score.
Sourcepub fn filter_risks_epss_severity(self, value: VulnerabilitySeverity) -> Self
pub fn filter_risks_epss_severity(self, value: VulnerabilitySeverity) -> Self
Filter by vulnerability EPSS severity.
Sourcepub fn filter_language(self, value: String) -> Self
pub fn filter_language(self, value: String) -> Self
Filter by language.
Sourcepub fn filter_ecosystem(self, value: VulnerabilityEcosystem) -> Self
pub fn filter_ecosystem(self, value: VulnerabilityEcosystem) -> Self
Filter by ecosystem.
Sourcepub fn filter_code_location_location(self, value: String) -> Self
pub fn filter_code_location_location(self, value: String) -> Self
Filter by vulnerability location.
Sourcepub fn filter_code_location_file_path(self, value: String) -> Self
pub fn filter_code_location_file_path(self, value: String) -> Self
Filter by vulnerability file path.
Sourcepub fn filter_code_location_method(self, value: String) -> Self
pub fn filter_code_location_method(self, value: String) -> Self
Filter by method.
Sourcepub fn filter_fix_available(self, value: bool) -> Self
pub fn filter_fix_available(self, value: bool) -> Self
Filter by fix availability.
Sourcepub fn filter_repo_digests(self, value: String) -> Self
pub fn filter_repo_digests(self, value: String) -> Self
Filter by vulnerability repo_digest
(when the vulnerability is related to Image
asset).
Sourcepub fn filter_origin(self, value: String) -> Self
pub fn filter_origin(self, value: String) -> Self
Filter by origin.
Sourcepub fn filter_asset_name(self, value: String) -> Self
pub fn filter_asset_name(self, value: String) -> Self
Filter by asset name.
Sourcepub fn filter_asset_type(self, value: AssetType) -> Self
pub fn filter_asset_type(self, value: AssetType) -> Self
Filter by asset type.
Examples found in repository?
10async fn main() {
11 let mut configuration = datadog::Configuration::new();
12 configuration.set_unstable_operation_enabled("v2.ListVulnerabilities", true);
13 let api = SecurityMonitoringAPI::with_config(configuration);
14 let resp = api
15 .list_vulnerabilities(
16 ListVulnerabilitiesOptionalParams::default()
17 .filter_cvss_base_severity(VulnerabilitySeverity::HIGH)
18 .filter_asset_type(AssetType::SERVICE)
19 .filter_tool(VulnerabilityTool::INFRA),
20 )
21 .await;
22 if let Ok(value) = resp {
23 println!("{:#?}", value);
24 } else {
25 println!("{:#?}", resp.unwrap_err());
26 }
27}
Sourcepub fn filter_asset_version_first(self, value: String) -> Self
pub fn filter_asset_version_first(self, value: String) -> Self
Filter by the first version of the asset this vulnerability has been detected on.
Sourcepub fn filter_asset_version_last(self, value: String) -> Self
pub fn filter_asset_version_last(self, value: String) -> Self
Filter by the last version of the asset this vulnerability has been detected on.
Sourcepub fn filter_asset_repository_url(self, value: String) -> Self
pub fn filter_asset_repository_url(self, value: String) -> Self
Filter by the repository url associated to the asset.
Sourcepub fn filter_asset_risks_in_production(self, value: bool) -> Self
pub fn filter_asset_risks_in_production(self, value: bool) -> Self
Filter whether the asset is in production or not.
Sourcepub fn filter_asset_risks_under_attack(self, value: bool) -> Self
pub fn filter_asset_risks_under_attack(self, value: bool) -> Self
Filter whether the asset is under attack or not.
Sourcepub fn filter_asset_risks_is_publicly_accessible(self, value: bool) -> Self
pub fn filter_asset_risks_is_publicly_accessible(self, value: bool) -> Self
Filter whether the asset is publicly accessible or not.
Sourcepub fn filter_asset_risks_has_privileged_access(self, value: bool) -> Self
pub fn filter_asset_risks_has_privileged_access(self, value: bool) -> Self
Filter whether the asset is publicly accessible or not.
Sourcepub fn filter_asset_risks_has_access_to_sensitive_data(
self,
value: bool,
) -> Self
pub fn filter_asset_risks_has_access_to_sensitive_data( self, value: bool, ) -> Self
Filter whether the asset has access to sensitive data or not.
Sourcepub fn filter_asset_environments(self, value: String) -> Self
pub fn filter_asset_environments(self, value: String) -> Self
Filter by asset environments.
Sourcepub fn filter_asset_teams(self, value: String) -> Self
pub fn filter_asset_teams(self, value: String) -> Self
Filter by asset teams.
Sourcepub fn filter_asset_arch(self, value: String) -> Self
pub fn filter_asset_arch(self, value: String) -> Self
Filter by asset architecture.
Sourcepub fn filter_asset_operating_system_name(self, value: String) -> Self
pub fn filter_asset_operating_system_name(self, value: String) -> Self
Filter by asset operating system name.
Sourcepub fn filter_asset_operating_system_version(self, value: String) -> Self
pub fn filter_asset_operating_system_version(self, value: String) -> Self
Filter by asset operating system version.
Trait Implementations§
Source§impl Clone for ListVulnerabilitiesOptionalParams
impl Clone for ListVulnerabilitiesOptionalParams
Source§fn clone(&self) -> ListVulnerabilitiesOptionalParams
fn clone(&self) -> ListVulnerabilitiesOptionalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more