csm-rs 0.89.2

A library for Shasta
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde_json::Value;

use crate::common::csm;
use crate::error::Error;

pub async fn health_check(
  shasta_token: &str,
  shasta_base_url: &str,
  shasta_root_cert: &[u8],
) -> Result<Value, Error> {
  let api_url = shasta_base_url.to_owned() + "/cfs/healthz";

  let response =
    csm::process_get_http_request(shasta_token, api_url, shasta_root_cert)
      .await;
  response
}