manta-cli 2.0.0-beta.9

Another CLI for ALPS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Ephemeral env (interactive image-boot) endpoint.

use serde_json::Value;

use super::MantaClient;

impl MantaClient {
  pub async fn create_ephemeral_env(
    &self,
    token: &str,
    image_id: &str,
  ) -> anyhow::Result<Value> {
    let body = serde_json::json!({ "image_id": image_id });
    self.post_json(token, "/ephemeral-env", &body).await
  }
}