Calling all DevOps-minded users of HP Cloud Service Automation (HP CSA)!
We have a lot of customers who need to automatically test their service designs while developing them. We found ourselves repeatedly building a test system using whichever tools they specified (usually HP Operations Orchestration). Rather than writing the same code over and over again we’ve decided to end the madness and build an open-source javascript client library for HP CSA.
We’re releasing it to the community with an open source licence at https://bitbucket.org/automationlogic/hpcsa. The library allows you to programmatically order, modify, control and cancel CSA subscriptions.
We hope you’ll be able to build web and CLI integrations to your automated testing tools much more easily using this module. We welcome contributions, feature requests, and bug reports on bitbucket.
Here’s a snippet from the README on how to get started:
First you need to log in to your CSA instance: var hpcsa = require ('hpcsa'); var login = hpcsa.login("https://myCsaServer:8444", // your HP CSA server "consumer", // marketplace username "cloud" // marketplace password "CSA_CONSUMER", // CSA organisation name "idmTransportUser", // idm username "idmTransportUser", // idm password true // false to turn off certificate checking ) login.then(function(xAuthToken){ console.log ("congratulations. your token is " + xAuthToken) }) Once you’ve verified this works, you can move onto actually doing stuff.
var hpcsa = require ('hpcsa'); var login = hpcsa.login("https://myCsaServer:8444", // your HP CSA server "consumer", // marketplace username "cloud" // marketplace password "CSA_CONSUMER", // CSA organisation name "idmTransportUser", // idm username "idmTransportUser", // idm password true // false to turn off certificate checking ) login.then(function(xAuthToken){ console.log ("congratulations. your token is " + xAuthToken) })
Order a subscription: Here’s how to order a basic subscription (add this to the bottom of the above code): login.then(function(){ return hpcsa.order( "Global Shared Catalog", // catalog name "SIMPLE_SYSTEM", // offering category name "RHEL7 Virtual Server", // offering name "My redhat server", // subscription name {}, // subscriber options ) })
login.then(function(){ return hpcsa.order( "Global Shared Catalog", // catalog name "SIMPLE_SYSTEM", // offering category name "RHEL7 Virtual Server", // offering name "My redhat server", // subscription name {}, // subscriber options ) })
Let us know what you build and what you think!
We work with our clients to de-risk and accelerate their business goals realisation. Our approach is based on tailoring our services to fit your needs leveraging our portfolio of strategy, execution, innovation and service delivery offerings to help you reach your objectives
We’re always on the lookout for exceptional talent and people who share our values. Even as we continue to grow, we maintain a family environment with respect and teamwork core to our culture.
Companies can start deploying containerised workloads to Kubernetes In days not months, by leveraging Automation Logic’s Kubernetes Platform Accelerator.
Largest Irish-Founded Tech Employer Surpasses 3000 Employees Signing 15th and 16th Acquisition Deals Version 1, a leading digital transformation partner, is to acquire Automation Logic – for an undisclosed sum as part of its ambitious growth strategy for 2023 and beyond. The Automation Logic deal is subject to clearance by the National Security and Investment […]
Automation Logic were recognised as one of the UK’s best Workplaces again for the 5th year running! We also placed 29th in best workplaces for women. This highlights the great work that we are doing as a business, including all the wonderful work being put in by the employee-led DE&I groups. This award means so […]