0.0
No commit activity in last 3 years
No release in over 3 years
Simple wrapper to access opsource cloud's api'
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0

Runtime

 Project Readme

ruby-opsource

=============

Ruby client for Opsource cloud's REST API. Opsource cloud is formally Dimension Data now.

  1. API spec - https://github.com/udayakiran/opsource_client/raw/master/doc/Cloud-REST-API-v09-032113.pdf

  2. API details - http://cloud.dimensiondata.com/saas-solutions/services/public-cloud/api

NOTE: This is the base client framework and a few sample APIs. More APIs can be added as you need by referring the document attached above.

Setup & Usage

To use it as a gem -

 gem install opsource_client

OR

 gem 'opsource_client', git: 'https://github.com/udayakiran/opsource_client.git'

To use it as a rails plugin (For older versions of rails) -

 git clone https://github.com/udayakiran/opsource_client.git

 copy opsource_client to vendors/plugins

Configuration -

This is a one time configuration where you specify your opsource account's organization id, username and password of the admin account using which API calls need to be made.

client = OpsourceClient::Client.new
client.organization_id = organization_id
client.admin_username =  admin_username
client.admin_password =  admin_password

Sample API call -

To create a NAT rule

opc = OpsourceClient::Client.new

# ...

opc.create_natrule({:net_id => network_id, :sourceIp => private_ip, :name => private_ip})