New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

openstack-client

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openstack-client

openstack client for nodejs

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
127
-14.77%
Maintainers
1
Weekly downloads
 
Created
Source

openstack-client

openstack client for nodejs

a thin wrapper over the Openstack REST API

also availalble in clojure and elixir

usage

let client = require("openstack-client");
let token = client.authenticate({
    endpoint: "http://keystone/v3",
    name:"admin",
    password: "password",
    userDomainName:"Default",
    projectName:"admin",
    projectDomainName:"Default"
});
client.nova.server.list(token, "RegionOne").then(function(servers) {
    console.dir(servers);
});

normally following methods are defined for a resource

let {keystone: {user}} = client
user.list(token, region)
user.create(token, region, {name: 'bob'})
user.show(token, region, id)
user.update(token, region, {email: 'bob@bob.com'})
user.del(token, region, id)

sometimes, additional methods are defined, like this

server creation is an exception that you have to pass the server key, might be changed in future versions

nova.server.create(token, region, {server: {name: 'vm-101'}})

read the code and consult the Openstack REST API for more details

Keywords

openstack

FAQs

Package last updated on 11 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts