HewlettPackard/hpe-onesphere-js

Name: hpe-onesphere-js

Owner: Hewlett Packard Enterprise

Description: null

Created: 2017-12-04 17:35:29.0

Updated: 2018-05-10 23:32:30.0

Pushed: 2018-05-10 23:35:59.0

Homepage: null

Size: 329

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hpe-onesphere-js

Javascript bindings to the HPE OneSphere REST API.

Usage

Install dependency

i @hpe/hpe-onesphere-js

Example usage

rt OneSphere from '@hpe/hpe-onesphere-js';

t oneSphere = new OneSphere(host);
phere.postSession({ username: ..., password: ... })
hen(() => oneSphere.getSession())
hen(session => console.log('Session:', session));
APIs
Catalogs
atalog(uri, args)
atalogs(args)
atalogType(uri, args)
atalogTypes(args)
Deployments
eployment(data, args)
eployment(uri, args)
eployments(args)
veDeployment(uri, args)
Metrics
etrics(args)
Networks
etworks(args)
Projects
roject(data, args)
roject(uri, args)
rojects(args)
teProject(uri, data, args)
veProject(uri, args)
Providers
rovider(data, args)
rovider(uri, args)
roviders(args)
roviderTypes(args)
veProvider(uri, args)
Rates
ates(args)
ate(uri, args)
Regions
egion(uri, args)
egions(args)
veRegion(uri, args) // args: { force: true }
Roles
ole(uri, args)
oles(args)
Services
ervice(uri, args)
ervices(args)
erviceTypes(args)
Sessions
ession(args)
Session({ username, password })
Status
tatus(args)
Tag Keys
agKey(data, args)
agKeys(args)
agKey(uri, args)
veTagKey(uri, args)
Tags
ag(data, args)
ags(args)
ag(uri, args)
veTag(uri, args)
Users
ser(data, args)
sers(args)
ser(uri, args)
teUser(uri, data, args)
veUser(uri, args)
Virtual Machine Profiles
irtualMachineProfile(uri, args)
irtualMachineProfiles(args)
Zones
one(uri, args)
ones(args)
oneTypes(args)
veZone(uri, args)
Development

Install

 install

Test

test

The tests are full integration tests and require the following environment variables:

PHERE_URL='https://my.onesphere.com'
PHERE_USERNAME='eric.soderberg@hpe.com'
PHERE_PASSWORD='...'

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.