v2_fleet_automation_ListFleetDeployments/
v2_fleet-automation_ListFleetDeployments.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_fleet_automation::FleetAutomationAPI;
4use datadog_api_client::datadogV2::api_fleet_automation::ListFleetDeploymentsOptionalParams;
5
6#[tokio::main]
7async fn main() {
8 let mut configuration = datadog::Configuration::new();
9 configuration.set_unstable_operation_enabled("v2.ListFleetDeployments", true);
10 let api = FleetAutomationAPI::with_config(configuration);
11 let resp = api
12 .list_fleet_deployments(ListFleetDeploymentsOptionalParams::default())
13 .await;
14 if let Ok(value) = resp {
15 println!("{:#?}", value);
16 } else {
17 println!("{:#?}", resp.unwrap_err());
18 }
19}