v2_confluent_cloud_GetConfluentAccount/
v2_confluent-cloud_GetConfluentAccount.rs

1// Get Confluent account returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_confluent_cloud::ConfluentCloudAPI;
4
5#[tokio::main]
6async fn main() {
7    // there is a valid "confluent_account" in the system
8    let confluent_account_data_id = std::env::var("CONFLUENT_ACCOUNT_DATA_ID").unwrap();
9    let configuration = datadog::Configuration::new();
10    let api = ConfluentCloudAPI::with_config(configuration);
11    let resp = api
12        .get_confluent_account(confluent_account_data_id.clone())
13        .await;
14    if let Ok(value) = resp {
15        println!("{:#?}", value);
16    } else {
17        println!("{:#?}", resp.unwrap_err());
18    }
19}