npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hpe/hpe-onesphere-js

v0.1.7

Published

HPE OneSphere Javascript API

Downloads

21

Readme

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/hpe-onesphere-js';

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

APIs

Appliances

getAppliance(uri, args)
getAppliances(args)
addAppliance(data, args)
updateAppliance(uri, data, args)
removeAppliance(uri, args)

Billing Accounts

getBillingAccount(uri, args)
getBillingAccounts(args)
addBillingAccount(data, args)
updateBillingAccount(uri, data, args)
removeBillingAccount(uri, args)

Catalogs

getCatalog(uri, args)
getCatalogs(args)
addCatalog(data, args)
updateCatalog(uri, data, args)
getCatalogTypes(args)

Connect App

getConnectApp(args)

Deployments

getDeployment(uri, args)
getDeployments(args)
addDeployment(data, args)
updateDeployment(uri, data, args)
removeDeployment(uri, args)
actionOnDeployment(uri, data, args)
getDeploymentConsole(uri, args)
getDeploymentKubeconfig(uri, args)

Keypairs

getKeyPair(args)

Memberships

getMemberships(arg)
addMembership(data, args)
removeMembership(uri, args)
getMembershipRoles(args)

Metrics

getMetrics(args)

Networks

getNetwork(uri, args)
getNetworks(args)
updateNetwork(uri, data, args)

Password Reset

resetSingleUsePassword(data, args)
changePassword(data, args)

Projects

getProject(uri, args)
getProjects(args)
addProject(data, args)
updateProject(uri, data, args)

Providers

getProvider(uri, args)
getProviders(args)
addProvider(data, args)
updateProvider(uri, data, args)
removeProvider(uri, args)
getProviderTypes(args)

Rates

getRate(uri, args)
getRates(args)

Regions

getRegion(uri, args)
getRegions(args)
addRegion(data, args)
updateRegion(uri, data, args)
removeRegion(uri, args) // args: { force: true }
getRegionConnection(uri, args)
addRegionConnection(uri, data, args)
removeRegionConnection(uri, args)
getRegionConnectorImage(uri, args)

Roles

getRole(uri, args)
getRoles(args)

Services

getService(uri, args)
getServices(args)
getServiceType(args)
getServiceTypes(args)

Sessions

getSession(args)
postSession({ username, password })
getSessionSSO(args)
callbackSessionSSO(args)

Status

getStatus(args)

Tag Keys

getTagKey(uri, args)
getTagKeys(args)
addTagKey(data, args)
removeTagKey(uri, args)

Tags

getTag(uri, args)
getTags(args)
addTag(data, args)
removeTag(uri, args)

Users

getUser(uri, args)
getUsers(args)
addUser(data, args)
updateUser(uri, data, args)
removeUser(uri, args)

Version

getVersion(args)(args)

Virtual Machine Profiles

getVirtualMachineProfile(uri, args)
getVirtualMachineProfiles(args)

Volumes

getVolume(uri, args)
getVolumes(args)
addVolume(data, args)
updateVolume(uri, data, args)
removeVolume(uri, args)

Zones

getZone(uri, args)
getZones(args)
addZone(data, args)
updateZone(uri, data, args)
removeZone(uri, args)
actionOnZone(uri, data, args)
getZoneApplianceImage(uri, args)
getZoneTaskStatus(uri, args)
getZoneConnections(uri, args)
addZoneConnection(uri, data, args)
updateZoneConnection(uri, data, uuid, args)
removeZoneConnection(uri, uuid, args)
getZoneEndpoint(uri, args)
getZoneTypes(args)
getZoneTypeResourceProfiles(uri, args)

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='[email protected]'
ONESPHERE_PASSWORD='...'