You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
3 years ago | |
---|---|---|
doc | 6 years ago | |
playbooks | 3 years ago | |
src | 3 years ago | |
test | 3 years ago | |
zuul.d | 3 years ago | |
.babelrc | 3 years ago | |
.editorconfig | 7 years ago | |
.eslintignore | 7 years ago | |
.eslintrc | 3 years ago | |
.gitignore | 6 years ago | |
.gitreview | 4 years ago | |
.istanbul.yml | 7 years ago | |
.nsprc | 7 years ago | |
LICENSE | 7 years ago | |
README.rst | 6 years ago | |
Vagrantfile | 7 years ago | |
bindep.txt | 7 years ago | |
configure-devstack.js | 3 years ago | |
karma.conf.babel.js | 3 years ago | |
karma.conf.js | 3 years ago | |
package.json | 3 years ago | |
vagrant.sh | 6 years ago | |
webpack.config.babel.js | 3 years ago |
README.rst
Team and repository tags
JS-OpenStack-lib
JS-OpenStack-lib is a Javascript library for interacting with OpenStack clouds. The project aims to provide a consistent and complete set of interactions with OpenStack's many services, along with documentations, examples, and tools. This library is compatible with both browser and server side Javascript.
Example
The following example simply connects to an OpenStack cloud and list flavors in the Compute service:
import OpenStack from 'js-openstack-lib';
// Initialize cloud
// cloudConfig is a JSON object corresponding to clouds.yaml
// (It is your responsibility to load and parse it)
const openStack = new OpenStack({
region_name: 'Region1',
auth: {
username: 'user',
password: 'pass',
project_name: 'js-openstack-lib',
auth_url: 'http://192.168.99.99/'
}
});
// List all flavors
openStack.networkList()
.then((networks) => {
console.log(networks);
});
Documentation
Coming soon
Contributing
If you're interested in contributing, the following will help you get started:
- Bug Tracker
- Code Hosting
- Code Review
https://review.openstack.org/#/q/status:open+project:openstack/js-openstack-lib,n,z
Please read Developer's Guide before sending your first patch for review
License
Apache 2.0