Sha256: 4c8ae2ee582a6cefa96dad2b482397406a29883d17384d92887db81c3e2e2800
Contents?: true
Size: 948 Bytes
Versions: 10
Compression:
Stored size: 948 Bytes
Contents
#!/usr/bin/env ruby #-- # ニフティクラウドSDK for Ruby # # Ruby Gem Name:: nifty-cloud-sdk # Author:: NIFTY Corporation # Copyright:: Copyright 2011 NIFTY Corporation All Rights Reserved. # License:: Distributes under the same terms as Ruby # Home:: http://cloud.nifty.com/api/ #++ require 'rubygems' require File.dirname(__FILE__) + "/../../lib/NIFTY" require 'pp' ACCESS_KEY = ENV["NIFTY_CLOUD_ACCESS_KEY"] || "<Your Access Key ID>" SECRET_KEY = ENV["NIFTY_CLOUD_SECRET_KEY"] || "<Your Secret Access Key>" ncs4r = NIFTY::Cloud::Base.new(:access_key => ACCESS_KEY, :secret_key => SECRET_KEY) options = { #:zone_name => [] } pp response = ncs4r.describe_availability_zones(options) response.availabilityZoneInfo.item.each do |zone| p zone.zoneName p zone.zoneState p zone.regionName if set = zone.messageSet set.item.each do |item| p item.message end end end
Version data entries
10 entries across 10 versions & 1 rubygems