12 releases
0.3.0-alpha.1 | Jan 16, 2020 |
---|---|
0.2.7 | Jan 30, 2019 |
0.2.6 | Dec 14, 2018 |
0.2.5 | Jun 5, 2018 |
0.1.3 | Apr 3, 2017 |
#108 in #request-response
37 downloads per month
35KB
690 lines
Extrahop REST API Client
Rust tools for working with the ExtraHop REST API.
This library is not an exhaustive strongly-typed client for the API; using that model is not recommended as it may lead to breakages during deserialization that don't impact your code. Instead, the library provides utilities which should be used in concert with structs defined in consuming libraries to make request and response handling easier.
Examples
use extrahop;
let client = Client::new("extrahop", ApiKey::new("YOUR_KEY"));
let rsp = client.get("dashboards").send();
// handle a normal reqwest response.
lib.rs
:
ExtraHop REST API client.
This crate provides an asynchronous client for working with the REST API, along with some feature-gated stronger types for scenarios such as working with activity maps. It is not a goal of this crate to provide complete API bindings, as doing so would make the crate dependent on specific firmware versions.
Getting Started
Appliances using self-signed SSL certificates will get an error using this library
because the host OS can't establish a secure connection. To address this, get the
public certificate from http://{EXTRAHOP_HOST}/public.cer
and trust it at the system
level.
Dependencies
~3–8MB
~180K SLoC