#[non_exhaustive]pub struct ListVulnerableAssetsOptionalParams {Show 17 fields
pub page_token: Option<String>,
pub page_number: Option<i64>,
pub filter_name: Option<String>,
pub filter_type: Option<AssetType>,
pub filter_version_first: Option<String>,
pub filter_version_last: Option<String>,
pub filter_repository_url: Option<String>,
pub filter_risks_in_production: Option<bool>,
pub filter_risks_under_attack: Option<bool>,
pub filter_risks_is_publicly_accessible: Option<bool>,
pub filter_risks_has_privileged_access: Option<bool>,
pub filter_risks_has_access_to_sensitive_data: Option<bool>,
pub filter_environments: Option<String>,
pub filter_teams: Option<String>,
pub filter_arch: Option<String>,
pub filter_operating_system_name: Option<String>,
pub filter_operating_system_version: Option<String>,
}
Expand description
ListVulnerableAssetsOptionalParams is a struct for passing parameters to the method SecurityMonitoringAPI::list_vulnerable_assets
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_name: Option<String>
Filter by name.
filter_type: Option<AssetType>
Filter by type.
filter_version_first: Option<String>
Filter by the first version of the asset since it has been vulnerable.
filter_version_last: Option<String>
Filter by the last detected version of the asset.
filter_repository_url: Option<String>
Filter by the repository url associated to the asset.
filter_risks_in_production: Option<bool>
Filter whether the asset is in production or not.
filter_risks_under_attack: Option<bool>
Filter whether the asset (Service) is under attack or not.
filter_risks_is_publicly_accessible: Option<bool>
Filter whether the asset (Host) is publicly accessible or not.
filter_risks_has_privileged_access: Option<bool>
Filter whether the asset (Host) has privileged access or not.
filter_risks_has_access_to_sensitive_data: Option<bool>
Filter whether the asset (Host) has access to sensitive data or not.
filter_environments: Option<String>
Filter by environment.
filter_teams: Option<String>
Filter by teams.
filter_arch: Option<String>
Filter by architecture.
filter_operating_system_name: Option<String>
Filter by operating system name.
filter_operating_system_version: Option<String>
Filter by operating system version.
Implementations§
Source§impl ListVulnerableAssetsOptionalParams
impl ListVulnerableAssetsOptionalParams
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_name(self, value: String) -> Self
pub fn filter_name(self, value: String) -> Self
Filter by name.
Sourcepub fn filter_type(self, value: AssetType) -> Self
pub fn filter_type(self, value: AssetType) -> Self
Filter by type.
Examples found in repository?
8async fn main() {
9 let mut configuration = datadog::Configuration::new();
10 configuration.set_unstable_operation_enabled("v2.ListVulnerableAssets", true);
11 let api = SecurityMonitoringAPI::with_config(configuration);
12 let resp = api
13 .list_vulnerable_assets(
14 ListVulnerableAssetsOptionalParams::default()
15 .filter_type(AssetType::HOST)
16 .filter_repository_url("github.com/datadog/dd-go".to_string())
17 .filter_risks_in_production(true),
18 )
19 .await;
20 if let Ok(value) = resp {
21 println!("{:#?}", value);
22 } else {
23 println!("{:#?}", resp.unwrap_err());
24 }
25}
Sourcepub fn filter_version_first(self, value: String) -> Self
pub fn filter_version_first(self, value: String) -> Self
Filter by the first version of the asset since it has been vulnerable.
Sourcepub fn filter_version_last(self, value: String) -> Self
pub fn filter_version_last(self, value: String) -> Self
Filter by the last detected version of the asset.
Sourcepub fn filter_repository_url(self, value: String) -> Self
pub fn filter_repository_url(self, value: String) -> Self
Filter by the repository url associated to the asset.
Examples found in repository?
8async fn main() {
9 let mut configuration = datadog::Configuration::new();
10 configuration.set_unstable_operation_enabled("v2.ListVulnerableAssets", true);
11 let api = SecurityMonitoringAPI::with_config(configuration);
12 let resp = api
13 .list_vulnerable_assets(
14 ListVulnerableAssetsOptionalParams::default()
15 .filter_type(AssetType::HOST)
16 .filter_repository_url("github.com/datadog/dd-go".to_string())
17 .filter_risks_in_production(true),
18 )
19 .await;
20 if let Ok(value) = resp {
21 println!("{:#?}", value);
22 } else {
23 println!("{:#?}", resp.unwrap_err());
24 }
25}
Sourcepub fn filter_risks_in_production(self, value: bool) -> Self
pub fn filter_risks_in_production(self, value: bool) -> Self
Filter whether the asset is in production or not.
Examples found in repository?
8async fn main() {
9 let mut configuration = datadog::Configuration::new();
10 configuration.set_unstable_operation_enabled("v2.ListVulnerableAssets", true);
11 let api = SecurityMonitoringAPI::with_config(configuration);
12 let resp = api
13 .list_vulnerable_assets(
14 ListVulnerableAssetsOptionalParams::default()
15 .filter_type(AssetType::HOST)
16 .filter_repository_url("github.com/datadog/dd-go".to_string())
17 .filter_risks_in_production(true),
18 )
19 .await;
20 if let Ok(value) = resp {
21 println!("{:#?}", value);
22 } else {
23 println!("{:#?}", resp.unwrap_err());
24 }
25}
Sourcepub fn filter_risks_under_attack(self, value: bool) -> Self
pub fn filter_risks_under_attack(self, value: bool) -> Self
Filter whether the asset (Service) is under attack or not.
Sourcepub fn filter_risks_is_publicly_accessible(self, value: bool) -> Self
pub fn filter_risks_is_publicly_accessible(self, value: bool) -> Self
Filter whether the asset (Host) is publicly accessible or not.
Sourcepub fn filter_risks_has_privileged_access(self, value: bool) -> Self
pub fn filter_risks_has_privileged_access(self, value: bool) -> Self
Filter whether the asset (Host) has privileged access or not.
Sourcepub fn filter_risks_has_access_to_sensitive_data(self, value: bool) -> Self
pub fn filter_risks_has_access_to_sensitive_data(self, value: bool) -> Self
Filter whether the asset (Host) has access to sensitive data or not.
Sourcepub fn filter_environments(self, value: String) -> Self
pub fn filter_environments(self, value: String) -> Self
Filter by environment.
Sourcepub fn filter_teams(self, value: String) -> Self
pub fn filter_teams(self, value: String) -> Self
Filter by teams.
Sourcepub fn filter_arch(self, value: String) -> Self
pub fn filter_arch(self, value: String) -> Self
Filter by architecture.
Sourcepub fn filter_operating_system_name(self, value: String) -> Self
pub fn filter_operating_system_name(self, value: String) -> Self
Filter by operating system name.
Sourcepub fn filter_operating_system_version(self, value: String) -> Self
pub fn filter_operating_system_version(self, value: String) -> Self
Filter by operating system version.
Trait Implementations§
Source§impl Clone for ListVulnerableAssetsOptionalParams
impl Clone for ListVulnerableAssetsOptionalParams
Source§fn clone(&self) -> ListVulnerableAssetsOptionalParams
fn clone(&self) -> ListVulnerableAssetsOptionalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more