Sha256: dbe18867293680cdde1c2cf24aa5235341e9386a57953e6a52d19d203e60a13d
Contents?: true
Size: 991 Bytes
Versions: 10
Compression:
Stored size: 991 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 = { #:load_balancer_name => "loadBalancerName", #:load_balancer_port => 0, #:instance_port => 0, #:instances => ["instanceId"] } pp response = ncs4r.register_instances_with_load_balancer(options) response.RegisterInstancesWithLoadBalancerResult.Instances.member.each do |instance| p instance.InstanceId end
Version data entries
10 entries across 10 versions & 1 rubygems