v2_action_connection_RegisterAppKey/
v2_action-connection_RegisterAppKey.rs

1// Register a new App Key returns "Created" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_action_connection::ActionConnectionAPI;
4
5#[tokio::main]
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = ActionConnectionAPI::with_config(configuration);
9    let resp = api
10        .register_app_key("b7feea52-994e-4714-a100-1bd9eff5aee1".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}