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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Javascript bindings to the HPE OneSphere REST API.
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));
atalog(uri, args)
atalogs(args)
atalogType(uri, args)
atalogTypes(args)
eployment(data, args)
eployment(uri, args)
eployments(args)
veDeployment(uri, args)
etrics(args)
etworks(args)
roject(data, args)
roject(uri, args)
rojects(args)
teProject(uri, data, args)
veProject(uri, args)
rovider(data, args)
rovider(uri, args)
roviders(args)
roviderTypes(args)
veProvider(uri, args)
ates(args)
ate(uri, args)
egion(uri, args)
egions(args)
veRegion(uri, args) // args: { force: true }
ole(uri, args)
oles(args)
ervice(uri, args)
ervices(args)
erviceTypes(args)
ession(args)
Session({ username, password })
tatus(args)
agKey(data, args)
agKeys(args)
agKey(uri, args)
veTagKey(uri, args)
ag(data, args)
ags(args)
ag(uri, args)
veTag(uri, args)
ser(data, args)
sers(args)
ser(uri, args)
teUser(uri, data, args)
veUser(uri, args)
irtualMachineProfile(uri, args)
irtualMachineProfiles(args)
one(uri, args)
ones(args)
oneTypes(args)
veZone(uri, args)
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='...'