Sha256: cb0bb755b35431373209358dd74fd26c81b75382471905b8fd6fdeb74dfad8c0

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/updateVMAffinityGroup.html]
        def update_vm_affinity_group(id, options={})
          options.merge!(
            'command' => 'updateVMAffinityGroup', 
            'id' => id  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb