Sha256: 058f96ab31c9375b1181428f73aff4a9a48c47d6b8254fef9c79cc7a5658689e

Contents?: true

Size: 920 Bytes

Versions: 14

Compression:

Stored size: 920 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class Real
        # Attach a detached server to a nominated server
        #
        # @param [String] identifier Unique reference to identify the resource
        # @param [Hash] options
        # @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
        # @option options [String] :server The identifier of the server
        # @option options [Boolean] :boot Set +true+ to attach as boot volume. Only when server is stopped
        #
        # @return [Hash] if successful Hash version of JSON object
        # @return [NilClass] if no options were passed
        #
        def attach_volume(identifier, options)
          return nil if identifier.nil? || identifier == ""
          wrapped_request("post", "/1.0/volumes/#{identifier}/attach", [202], options)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-brightbox-1.11.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.10.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.9.1 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.9.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.8.2 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.8.1 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.8.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.7.3 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.7.2 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.7.1 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.7.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.6.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.5.0 lib/fog/brightbox/requests/compute/attach_volume.rb
fog-brightbox-1.5.0.rc1 lib/fog/brightbox/requests/compute/attach_volume.rb