Start a Conversation

Unsolved

This post is more than 5 years old

782

August 28th, 2014 07:00

Using perl with ViPR RESTful API

Is there anyone out there who has developed tools/scripts using perl with ViPR RESTful API? 

36 Posts

August 28th, 2014 08:00

yes, if you post a high level question, I should be able to help you

2 Posts

August 28th, 2014 08:00

We are conducting a POC for ViPR and want to do some quick prototype work using perl using the API.   We need to develop the following:

1.     authentication using cookie (how to get cookie info using API)

2.     provision block storage for a host

3.     provision NAS volume and export to a host

If you or anyone has any code snippet that demonstrate how the above can be done that would save us some time.

36 Posts

August 28th, 2014 09:00

did you review the below documents?

     EMC ViPR 2.0 Product Documentation Index

     Access the ViPR REST API

     Use a proxyuser to run a ViPR REST API script

     http://www.emc.com/techpubs/vipr/authenticate_controller_rest_api-1.htm

     ViPR 2.0 REST API Reference

     EMC ViPR 2.0 CLI Reference (PDF)

    

the "understanding" level comfortable for implementation is achieved by reviewing these documents (in case of larger documents, review appropriate chapters).

for PERL implementation, you must review wiki article on "Basic HTTP Authentication" protocol, and involve LWP::WebAgent library, HTTP::Response, HTTP::Request, and MIME::BASE64 library (they might be named something similar, google search will uncover it).

Let me know if you require more help. Depending on how much help you require, I might have to suggest you engage appropriate EMC resources, through your local sales guys, so that time is properly allocated for engaging your customer.

No Events found!

Top