#api #cloud #openstack


Asynchronous OpenStack session and authentication

12 releases

✓ Uses Rust 2018 edition

new 0.3.1 Jul 13, 2020
0.2.5 Oct 1, 2019
0.2.4 Jun 17, 2019
0.1.1 Mar 31, 2019

#35 in Authentication

Download history 62/week @ 2020-03-21 14/week @ 2020-03-28 16/week @ 2020-04-04 141/week @ 2020-04-11 32/week @ 2020-04-18 9/week @ 2020-04-25 12/week @ 2020-05-02 4/week @ 2020-05-09 48/week @ 2020-05-16 60/week @ 2020-05-23 58/week @ 2020-05-30 37/week @ 2020-06-06 20/week @ 2020-06-13 8/week @ 2020-06-20 18/week @ 2020-06-27 21/week @ 2020-07-04

126 downloads per month
Used in 2 crates

Apache-2.0 and maybe MPL-2.0

3.5K SLoC

Asynchronous OpenStack session and authentication

Build Status License Latest Version Documentation

The goal of this project is to provide a asynchronous API for HTTP requests against OpenStack clouds. For a more high-level API see rust-openstack.

This project requires Rust compiler 1.40.0 or newer.


Asynchronous OpenStack session and authentication.


This crate provides low-level asynchronous access to OpenStack API. It features:

  1. Authentication and token caching.
  2. Major and microversion handling.
  3. Service catalog integration.
  4. JSON API error handling.
  5. Service types for supported services.

It does NOT provide:

  1. Protocol structures for any services.
  2. Automatic microversion negotiation.

See openstack crate for these features.


This crate requires Rust 2018 edition and relies heavily on futures 0.1. It has not yet been updated for the new async/await syntax and may not be compatible with it out-of-box.


Your entry point to the API is the Session structure. To create it you need an authentication type object first. It can be obtained by:

  • Using Password authentication against the Identity service.
  • Using NoAuth authentication type, allowing access to standalone services without authentication.

A Session can be created directly by loading it:

  • From the clouds.yaml configuration file using from_config.
  • From environment variables using from_env.

See Session documentation for the details on using a Session for making OpenStack calls.

If you need to work with a small number of servics, Adapter provides a more convenient interface. An adapter can be created directly using Adapter::new or from an existing Session using Session::adapter or Session::into_adapter.


~234K SLoC