Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Ruby Gem for Kaseya's VSA web service.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
.yardopts
Gemfile
LICENSE.txt
README.md
Rakefile
kaseyaws.gemspec

README.md

KaseyaWS

A simple Ruby Gem that provides a Ruby client for Kaseya's VSA web service.

This is currently a work in progress, as all Kaseya web service operations are not yet implemented.

The offical documentation for the Kaseya VSA web service

Installation

KaseyaWS is available at Rubygems and can be installed as follows.

$ gem install kaseyaws

or add it to your Gemfile:

gem 'kaseyaws', '~> 0.0.6'

Usage

require 'kaseyaws'

# Create a new web service client instance
kclient = KaseyaWS::Client.new("username","password","mykserver.domain.com")

#Get alarm list, returns hash
alarms = kclient.get_alarm_list

#Get a specific alarm by alarm id, returns hash
alarm = kclient.get_alarm(alarms[:alarms][:alarm][0][:monitor_alarm_id])

alarm[:alarm_subject]
# => "Monitoring generated Counter ALARM at 5:47:54 am 01-Feb-13 on computer.systems.company"

Dependencies

KaseyaWS has two Gem dependencies, Savon and json.

Savon

The Heavy metal SOAP client Savon does most of the work.

JSON

A Ruby implementation for JSON.

Something went wrong with that request. Please try again.