Client library for talking to Elasticweb API. Supports all endpoints.
Add this line to your application's Gemfile:
gem 'elasticweb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install elasticweb
Initialize client:
client = ElasticWeb::Client.new('API_KEY')
And then talk to API:
client.me
Client methods just map 1 to 1 to API, see all of them beyond. Check API docs for list of available options
.
me
accounts
create_account(options)
update_account(id, options)
delete_account(id)
update_cron(id, options)
servers
aliases(account_id)
create_alias(account_id, options)
update_alias(alias_name, options)
delete_alias(alias_name)
domains(account_id)
create_domain(account_id, options)
update_domain(domain_name, options)
delete_domain(domain_name)
domain_dns(domain_name)
dns(id)
create_dns(domain_name, options)
delete_dns(id)
databases(account_id)
create_database(account_id, options)
delete_database(account_id, db_name)
databases_users(account_id)
database_user_info(account_id, db_user_name)
create_database_user(account_id, options)
update_database_user(account_id, db_user_name, options)
delete_database_user(account_id, db_user_name)
operation_types
operations(type_name)
Bug reports and pull requests are welcome on GitHub at https://github.com/dev1vitaly/elasticweb.
The gem is available as open source under the terms of the MIT License.