Sha256: f2a44eaa31c21c969156d5e99ba326e535cc3b306915e2600f7fc8db2366b97c

Contents?: true

Size: 521 Bytes

Versions: 56

Compression:

Stored size: 521 Bytes

Contents

module CloudstackClient

	module Job

		##
    # Retrieves the current status of asynchronous job.

    def query_job(id)
      params = {
          'command' => 'queryAsyncJobResult',
          'jobid' => id,
      }
      send_request(params)
    end

    ##
    # Lists all pending asynchronous jobs for the account.

    def list_jobs(opts = {})
      params = {
          'command' => 'listAsyncJobs'
      }
      params['listall'] = true if opts[:listall]
      send_request(params)['asyncjobs']
    end

	end

end

Version data entries

56 entries across 56 versions & 3 rubygems

Version Path
cloudstack_client-0.9.7 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.9.6 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.9.5 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.9.3 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.9.2 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.9.1 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.9.0 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.8.0 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.7.1 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.7.0 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.6.4 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.6.3 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.6.2 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.6.0 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.6.1 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.5.0 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.4.4 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.4.3 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.4.2 lib/cloudstack_client/commands/job.rb
cloudstack_client-0.4.1 lib/cloudstack_client/commands/job.rb