README.md
# Aliyun
[![Fury](https://badge.fury.io/rb/aliyun.png)](http://badge.fury.io/rb/aliyun)
[![Code Climate](https://codeclimate.com/github/Lax/aliyun/badges/gpa.svg)](https://codeclimate.com/github/Lax/aliyun)
[![Test Coverage](https://codeclimate.com/github/Lax/aliyun/badges/coverage.svg)](https://codeclimate.com/github/Lax/aliyun/coverage)
[![Travis](https://travis-ci.org/Lax/aliyun.svg?branch=master)](https://travis-ci.org/Lax/aliyun)
[![CircleCI](https://circleci.com/gh/Lax/aliyun/tree/master.png?style=shield)](https://circleci.com/gh/Lax/aliyun)
[![security](https://hakiri.io/github/Lax/aliyun/master.svg)](https://hakiri.io/github/Lax/aliyun/master)
[![Dependency Status](https://gemnasium.com/Lax/aliyun.svg)](https://gemnasium.com/Lax/aliyun)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLax%2Faliyun.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FLax%2Faliyun?ref=badge_shield)
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](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
1. Fork it ( https://github.com/Lax/aliyun/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Author
* [Liu Lantao](https://github.com/Lax)
## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLax%2Faliyun.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FLax%2Faliyun?ref=badge_large)