This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| excon.request {:chunk_size=>1048576, :connect_timeout=>60, :debug_request=>true, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.12.1", "Content-Type"=>"application/json", "Accept"=>"application/json", | |
| "X-Auth-Token"=>"bad token", "Host"=>"ord.blockstorage.api.rackspacecloud.com:443"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::Expects, Excon::Middleware::Idempotent, | |
| Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :read_timeout=>60, :retry_limit=>4, | |
| :ssl_ca_file=>"/Users/kyle.rames/.rvm/gems/ruby-1.9.3-p392@fog_dev/gems/excon-0.24.0/data/cacert.pem", :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, | |
| :host=>"ord.blockstorage.api.rackspacecloud.com", :path=>"/v1/772045/volumes", :port=>"443", :query=>nil, :scheme=>"https", :user=>nil, :password=>"REDACTED", :instrumentor=>Excon::StandardInstrumentor, :expects=>[200], | |
| :method=>"GET", :retries_remaining=>4, :connecti |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.9.3p392 :003 > service.delete_network net.id | |
| excon.request {:chunk_size=>1048576, :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.12.1", "Content-Type"=>"application/json", "Accept"=>"application/json", "X-Auth-Token"=>"6ff9abe98db0415f99a12317e59e0cc0", "Host"=>"dfw.servers.api.rackspacecloud.com:443"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/Users/kyle.rames/.rvm/gems/ruby-1.9.3-p392@fog_dev/gems/excon-0.24.0/data/cacert.pem", :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"dfw.servers.api.rackspacecloud.com", :path=>"/v2/772045/os-networksv2/ef03eac3-e07e-4001-b151-d0af2231e6de.json", :port=>"443", :query=>nil, :scheme=>"https", :user=>nil, :password=>"REDACTED", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service = Fog::Rackspace::LoadBalancers.new | |
| #create load balancer | |
| lb = service.load_balancers.create :name => 'bob-the-balancer', | |
| :protocol => 'HTTP', | |
| :port => 80, | |
| :virtual_ips => [{:type => 'PUBLIC'}], | |
| :nodes => [{:address => '1.1.1.1', | |
| :port => 80, | |
| :condition => 'ENABLED' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fog' | |
| require 'tempfile' | |
| # Note: Only Rackspace, HP, and Amazon have CDN support. This example only demonstrates creating a CDN backed container with Rackspace and HP. (Amazon does something else.) | |
| begin | |
| # :provider is the only standard key all others are provider specific | |
| service = Fog::Storage.new :provider => 'rackspace', | |
| :rackspace_username => ARGV[0], | |
| :rackspace_api_key => ARGV[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fog' | |
| SEGMENT_LIMIT = 1024 * 1024 * 10 | |
| BUFFER_SIZE = Excon.defaults[:chunk_size] || 1024 * 1024 | |
| Excon.defaults[:retry_limit] = 0 | |
| service = Fog::Storage.new({ | |
| :provider => 'Rackspace', | |
| :rackspace_region => :dfw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| excon.request {:chunk_size=>1048576, :connect_timeout=>60, :debug_request=>false, :debug_response=>true, :headers=>{"User-Agent"=>"fog/1.12.1", "Content-Type"=>nil, "Accept"=>"application/json", "X-Auth-Token"=>"6fba6c5b4817446cbec0286f5e1fb5f4", "Content-Length"=>0, "ETag"=>"6bca3dcbd6eb0a7044e90e0297447faa", "Host"=>"storage101.dfw1.clouddrive.com:443"}, :idempotent=>true, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :read_timeout=>60, :retry_limit=>0, :ssl_ca_file=>"/Users/kyle.rames/.rvm/gems/ruby-1.9.3-p286@fog/gems/excon-0.23.0/data/cacert.pem", :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>60, :host=>"storage101.dfw1.clouddrive.com", :path=>"/v1/MossoCloudFS_5d0bc756-9753-4681-bdc3-570aa8ba86c3/bucket/frank.jpg%2F0000000001", :port=>"443", :query=>nil, :scheme=>"https", :user=>nil, :password=>"RED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class FilterProcessor | |
| #install in VCR config | |
| # VCR.config do |c| | |
| # FilterProcessor.new(config) | |
| # end | |
| def initialize(config) | |
| @filters = [] | |
| config.before_record {|i| self.process_before_record(i) } | |
| config.before_playback {|i| self.process_before_playback(i) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --include --header "Accept: application/json" --header "X-Auth-token: MY_SECRET_TOKEN --request PUT --data-binary '{ | |
| "name": "workers", | |
| "cooldown": 60, | |
| "minEntities": 0, | |
| "maxEntities": 0, | |
| "metadata": { | |
| "firstkey": "this is a string", | |
| "secondkey": "1" | |
| } | |
| }' "https://dfw.autoscale.api.rackspacecloud.com/v1.0/772045/groups/2066dd25-c590-4f0d-b94a-5f59887888b4/config" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Server 2012 + SQL Server 2012 Web SP1 | |
| Windows Server 2012 + SQL Server 2012 Standard SP1 | |
| Windows Server 2012 (with updates) | |
| Windows Server 2012 | |
| Windows Server 2008 x64 SP2 | |
| Windows Server 2008 R2 SP1 + SQL Server 2012 Web SP1 | |
| Windows Server 2008 R2 SP1 + SQL Server 2012 Standard SP1 | |
| Windows Server 2008 R2 SP1 + SQL Server 2008 R2 Web SP2 | |
| Windows Server 2008 R2 SP1 + SQL Server 2008 R2 Standard SP2 | |
| Windows Server 2008 R2 SP1 (with updates) + SQL Server 2012 Standard SP1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'fog' | |
| # Please replace these with the approprate values | |
| RACKSPACE_USERNAME = "YOUR USERNAME" | |
| RACKSPACE_API_KEY = "YOUR API KEY" | |
| RACKSPACE_TEMP_URL_KEY = "#192!29jd!23990192DSAF" | |
| puts "Creating Storage Service" | |
| begin |