Sha256: ecd90f52cba1acdb17e1cc8a831b463e2904103626a6c75e9ea9126991e05324

Contents?: true

Size: 925 Bytes

Versions: 2

Compression:

Stored size: 925 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class Real
        # Perform storage profile compliance check on a VM.
        #
        # This operation is asynchronous and return a task. When the task
        # completes, the compliance check on the VM has been completed and the
        # results can be retrieved.
        #
        # @param [String] id Object identifier of the VM.
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/POST-CheckVmCompliance.html
        # @since vCloud API version 5.1
        def post_check_vm_compliance(id)
          request(
            :expects => 202,
            :method  => 'POST',
            :parser  => Fog::ToHashDocument.new,
            :path    => "vApp/#{id}/action/checkCompliance"
          )
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-vcloud-director-0.3.1 lib/fog/vcloud_director/requests/compute/post_check_vm_compliance.rb
fog-vcloud-director-0.3.0 lib/fog/vcloud_director/requests/compute/post_check_vm_compliance.rb