Module: CloudstackClient::Job
- Defined in:
- lib/cloudstack_client/commands/job.rb
Instance Method Summary collapse
-
#list_jobs(opts = {}) ⇒ Object
Lists all pending asynchronous jobs for the account.
-
#query_job(id) ⇒ Object
Retrieves the current status of asynchronous job.
Instance Method Details
#list_jobs(opts = {}) ⇒ Object
Lists all pending asynchronous jobs for the account.
19 20 21 22 23 24 25 |
# File 'lib/cloudstack_client/commands/job.rb', line 19 def list_jobs(opts = {}) params = { 'command' => 'listAsyncJobs' } params['listall'] = true if opts[:listall] send_request(params)['asyncjobs'] end |
#query_job(id) ⇒ Object
Retrieves the current status of asynchronous job.
8 9 10 11 12 13 14 |
# File 'lib/cloudstack_client/commands/job.rb', line 8 def query_job(id) params = { 'command' => 'queryAsyncJobResult', 'jobid' => id, } send_request(params) end |