Skip to content

Lax/aliyun

Repository files navigation

Aliyun

Fury Code Climate Test Coverage Travis CircleCI security Dependency Status FOSSA Status

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

  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

License

FOSSA Status