v2_fleet_automation_GetFleetDeployment/
v2_fleet-automation_GetFleetDeployment.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_fleet_automation::FleetAutomationAPI;
4
5#[tokio::main]
6async fn main() {
7 let deployment_id = std::env::var("DEPLOYMENT_ID").unwrap();
9 let mut configuration = datadog::Configuration::new();
10 configuration.set_unstable_operation_enabled("v2.GetFleetDeployment", true);
11 let api = FleetAutomationAPI::with_config(configuration);
12 let resp = api.get_fleet_deployment(deployment_id.clone()).await;
13 if let Ok(value) = resp {
14 println!("{:#?}", value);
15 } else {
16 println!("{:#?}", resp.unwrap_err());
17 }
18}