Ruby Gem to connect on Solidfire storage Array API to collect stats. Currently support Simple Authentication and very basic functionalities. Work with API version 8 of SolidFire.
Currently supporting volumes, cluster and disks listing and stats API call's to collect performance metrics for monitoring usage. Nothing for managing cluster yet.
Creation of VolumeAccessGroup, map volumes and iSCSI initiator.
Use gem: RestClient to interract with Solidfire API.
Gems requirements:
- rest_client
- net/http
- json
Install it:
$ gem install solidfire_api
$ irb
> require 'solidfire_api'
require 'solidfire_api'
my_sf = SolidfireApi::Connection.new({
:mvip => "192.168.0.1",
:username => "monitor",
:password => "patate",
:verify_ssl => true
})
# Some method examples:
my_sf.name
my_sf.mvip
my_sf.svip
my_sf.volumes_list
If you don't want to use CHAP authentication for iSCSI LUN access from initiator, you have to attach Volume to Volume Access Group that include iSCSI initiators.
Administrator privileges required.
require 'solidfire_api'
my_sf = SolidfireApi::Connection.new({
:mvip => "192.168.0.1",
:username => "admin",
:password => "admin_password"
})
my_sf.vag_add_volume("volumename", "group_name")
=> {}
- Fork it ( http://github.com/pdion891/solidfire_api/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- Everything else