pub struct CSMAgentsAPI { /* private fields */ }
Expand description
Datadog Cloud Security Management (CSM) delivers real-time threat detection and continuous configuration audits across your entire cloud infrastructure, all in a unified view for seamless collaboration and faster remediation. Go to https://docs.datadoghq.com/security/cloud_security_management to learn more
Implementations§
Source§impl CSMAgentsAPI
impl CSMAgentsAPI
pub fn new() -> Self
Sourcepub fn with_config(config: Configuration) -> Self
pub fn with_config(config: Configuration) -> Self
Examples found in repository?
examples/v2_csm-agents_ListAllCSMAgents.rs (line 9)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = CSMAgentsAPI::with_config(configuration);
10 let resp = api
11 .list_all_csm_agents(ListAllCSMAgentsOptionalParams::default())
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
More examples
examples/v2_csm-agents_ListAllCSMServerlessAgents.rs (line 9)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = CSMAgentsAPI::with_config(configuration);
10 let resp = api
11 .list_all_csm_serverless_agents(ListAllCSMServerlessAgentsOptionalParams::default())
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
pub fn with_client_and_config( config: Configuration, client: ClientWithMiddleware, ) -> Self
Sourcepub async fn list_all_csm_agents(
&self,
params: ListAllCSMAgentsOptionalParams,
) -> Result<CsmAgentsResponse, Error<ListAllCSMAgentsError>>
pub async fn list_all_csm_agents( &self, params: ListAllCSMAgentsOptionalParams, ) -> Result<CsmAgentsResponse, Error<ListAllCSMAgentsError>>
Get the list of all CSM Agents running on your hosts and containers.
Examples found in repository?
examples/v2_csm-agents_ListAllCSMAgents.rs (line 11)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = CSMAgentsAPI::with_config(configuration);
10 let resp = api
11 .list_all_csm_agents(ListAllCSMAgentsOptionalParams::default())
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
Sourcepub async fn list_all_csm_agents_with_http_info(
&self,
params: ListAllCSMAgentsOptionalParams,
) -> Result<ResponseContent<CsmAgentsResponse>, Error<ListAllCSMAgentsError>>
pub async fn list_all_csm_agents_with_http_info( &self, params: ListAllCSMAgentsOptionalParams, ) -> Result<ResponseContent<CsmAgentsResponse>, Error<ListAllCSMAgentsError>>
Get the list of all CSM Agents running on your hosts and containers.
Sourcepub async fn list_all_csm_serverless_agents(
&self,
params: ListAllCSMServerlessAgentsOptionalParams,
) -> Result<CsmAgentsResponse, Error<ListAllCSMServerlessAgentsError>>
pub async fn list_all_csm_serverless_agents( &self, params: ListAllCSMServerlessAgentsOptionalParams, ) -> Result<CsmAgentsResponse, Error<ListAllCSMServerlessAgentsError>>
Get the list of all CSM Serverless Agents running on your hosts and containers.
Examples found in repository?
examples/v2_csm-agents_ListAllCSMServerlessAgents.rs (line 11)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = CSMAgentsAPI::with_config(configuration);
10 let resp = api
11 .list_all_csm_serverless_agents(ListAllCSMServerlessAgentsOptionalParams::default())
12 .await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}
Sourcepub async fn list_all_csm_serverless_agents_with_http_info(
&self,
params: ListAllCSMServerlessAgentsOptionalParams,
) -> Result<ResponseContent<CsmAgentsResponse>, Error<ListAllCSMServerlessAgentsError>>
pub async fn list_all_csm_serverless_agents_with_http_info( &self, params: ListAllCSMServerlessAgentsOptionalParams, ) -> Result<ResponseContent<CsmAgentsResponse>, Error<ListAllCSMServerlessAgentsError>>
Get the list of all CSM Serverless Agents running on your hosts and containers.
Trait Implementations§
Source§impl Clone for CSMAgentsAPI
impl Clone for CSMAgentsAPI
Source§fn clone(&self) -> CSMAgentsAPI
fn clone(&self) -> CSMAgentsAPI
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CSMAgentsAPI
impl Debug for CSMAgentsAPI
Auto Trait Implementations§
impl Freeze for CSMAgentsAPI
impl !RefUnwindSafe for CSMAgentsAPI
impl Send for CSMAgentsAPI
impl Sync for CSMAgentsAPI
impl Unpin for CSMAgentsAPI
impl !UnwindSafe for CSMAgentsAPI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more