Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hpe/hpe-onesphere-js

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpe/hpe-onesphere-js

HPE OneSphere Javascript API

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

hpe-onesphere-js

Javascript bindings to the HPE OneSphere REST API.

Usage

Install dependency

npm i -S HewlettPackard/hpe-onesphere-js#dist

Example usage

import OneSphere from 'hpe-onesphere-js';

const oneSphere = new OneSphere(host);
oneSphere.postSession({ username: ..., password: ... })
  .then(() => oneSphere.getSession())
  .then(session => console.log('Session:', session));

APIs

getStatus()
postSession({ username, password })
getSession()

getUsers()
addUser(...)
getUser(uri)
removeUser(uri)
getRoles()
getRole(uri)

getCatalogs()
getCatalog(uri)
getServiceTypes()
getServices()
getService(uri)
getVirtualMachineProfiles()
getVirtualMachineProfile(uri)
getTagKeys()
getTagKey(uri)
getTags()
getTag(uri)

getProviderTypes()
getProviders()
getProvider(uri)
getRegions()
getRegion(uri)
getZoneTypes()
getZones()
getZone(uri)
getRates()
getRate(uri)

getProjects()
getProject(uri)
getDeployments()
getDeployment(uri)
getMetrics(options)

Development

Install

yarn install

Test

npm test

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

ONESPHERE_URL='https://my.onesphere.com'
ONESPHERE_USERNAME='eric.soderberg@hpe.com'
ONESPHERE_PASSWORD='...'

FAQs

Package last updated on 26 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc