New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

hpe-onesphere-js

Javascript bindings to the HPE OneSphere REST API.

Usage

Install dependency

npm i @hpe/hpe-onesphere-js

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)
addTagKey(data)
removeTagKey(uri)
getTags()
getTag(uri)
addTag(data)
removeTag(uri)

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

getProjects()
getProject(uri)
addProject(data)
updateProject(uri, data)
removeProject(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 02 Mar 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