Giter Site home page Giter Site logo

dorongrinstein / enstratus-api-utils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lusis/enstratus-api-utils

0.0 2.0 0.0 4.34 MB

enstratus-api-utils

Clojure 4.56% C# 64.41% Go 4.72% Shell 1.07% Java 19.12% JavaScript 1.52% Python 2.64% Ruby 1.96%

enstratus-api-utils's Introduction

enStratus API Utils

These are just a few bits of example code and notes around how to work with the enStratus API. I've also tried to keep the interfaces in each language similar where appropriate for comparison purposes (i.e. not passing an option hash in Ruby or not chaining methods) For that reason, it's not the prettiest usage of each langauge but it's much easier to compare between examples.

What's in here?

Just a toc of sorts

Signing examples

The enStratus API is fairly complex. The thing that trips most people up, however, is the signing process.

A few key points to remember are:

  • The path you sign excludes any filters you might want to pass
  • User-agent in the request must match the one in the signature
  • The timestamp used in the signature is millseconds not Unix time

API versioning

The enStratus API is versioned by release date. Some functionality might not exist in the version you're trying. Always make sure you're referencing the correct version's documentation.

IDs

IDs that you see in the enStratus console don't always match up with the ID you're expected to pass. A good example of this is the Snapshot API. The volumeId in the console looks something like this:

j-111-222

however the value you pass in the snapshot call would be:

111222

Content type is required

You can use either XML or JSON but you have to set the header appropriately.

enstratus-api-utils's People

Contributors

dorongrinstein avatar lusis avatar timf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.