Project

huntress

0.0
The project is in a healthy, maintained state
A Ruby wrapper for the Huntress APIs (readonly)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

>= 0.5.0
 Project Readme

Sophos Central Partner API

Version

This is a wrapper for the Huntress API. You can see the API endpoints

Installation

Add this line to your application's Gemfile:

gem 'huntress'

And then execute:

> bundle install

Or install it yourself as:

> gem install huntress

Usage

Before you start making the requests to API provide the client id and client secret and email/password using the configuration wrapping.

require 'huntress'

LOGGER = 'huntres-api.log'

Huntress.reset
Huntress.logger = Logger.new(AUTH_LOGGER)

Huntress.configure do |config|
  config.client_id = ENV['HUNTRESS_API_KEY']
  config.client_secret = ENV['HUNTRESS_API_SECRET']
end
client = Huntress.client
result = client.login

Resources

Authentication

# setup configuration
#
client.login
Resource API endpoint Description
.login

Operations

Huntress endpoint implemented

Resource API endpoint
.account /v1/account
.actor /v1/actor
.agents, .agent(id) /v1/agents/{id}
.billing_reports, .billing_report /v1/billing_reports/{id}
.incident_reports, .incident_report(id) /v1/incident_reports/{id}
.remediations(report_id), .remediation(report_id, id) /v1incident_reports/{report_id}/remediations/{id}
.organizations, .organization(id) /v1/organizations/{id}
.reports, .report(id) /v1/reports/{id}
.signals, .signal(id) /v1/signals/{id}

Contributing

Bug reports and pull requests are welcome on GitHub.

License

The gem is available as open source under the terms of the MIT License.