Aliyun
Ruby wrapper of Aliyun API for system adminstrator.
Installation
Add gem 'aliyun'
to your application's Gemfile:
gem 'aliyun'
And then run:
$ bundle install
Or install it with gem command:
$ gem install aliyun
Usage
Example:
require 'rubygems'
require 'aliyun'
options = {
:access_key_id => "_YOUR_API_KEY_",
:access_key_secret => "_YOUR_API_SECRET_",
:service => :ecs
}
service = Aliyun::Service.new options
parameters = {}
puts service.DescribeRegions parameters
You can create/fetch access key
and secret
at https://i.aliyun.com/access_key
Current support these services:
-
:cdn
=>CDN
(Content Delivery Network) -
:cms
=>CMS
(Cloud Monitor Service) -
:dns
=>DNS
(Domain Name Service) -
:ecs
=>ECS
(Elastic Compute Service) -
:ram
=>RAM
(Resource Access Management) -
:rds
=>RDS
(Relational Database Service) -
:slb
=>SLB
(Server Load Balancer) -
:sts
=>STS
(Security Token Service) -
:vpc
=>VPC
(Virtual Private Cloud) -
:business
=>Business
(Aliyun Account Management)
Contributing
- Fork it ( https://github.com/Lax/aliyun/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 a new Pull Request