Sha256: 518b2ced0c048c158d18436ebe01a4a48a0b67c18365c6363b7e2fbfbe854ba9

Contents?: true

Size: 1.12 KB

Versions: 10

Compression:

Stored size: 1.12 KB

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",
  #:listeners          => [{:protocol          => "protocol",
  #                        :load_balancer_port => 0,
  #                        :instance_port      => 0,
  #                        :balancing_type     => "balancingType"}],
  #:availability_zone  => "availabilityZone",
  #:network_volume     => 0,
  #:ip_version         => "v6"
}

pp response = ncs4r.create_load_balancer(options)

p response.CreateLoadBalancerResult.DNSName

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nifty-cloud-sdk-1.11.beta7 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.11.beta6 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.11.beta5 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.11.beta4 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.11.beta3 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.11.beta2 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.11.beta1 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.9.beta1 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.8.beta1 sample/load_balancers/create-load-balancer.rb
nifty-cloud-sdk-1.7 sample/load_balancers/create-load-balancer.rb