Thanks, Edison. "With the job ID, you can periodically check the job status by making calls to queryAsyncJobResult command."
My question remains, then: can the API introduce callbacks so we don't have to polling, especially on long running operations? David La Motta Technical Marketing Engineer Citrix Solutions NetApp 919.476.5042 [email protected]<mailto:[email protected]> On Jun 17, 2013, at 1:57 PM, Edison Su <[email protected]<mailto:[email protected]>> wrote: -----Original Message----- From: La Motta, David [mailto:[email protected]<http://netapp.com>] Sent: Friday, June 14, 2013 7:54 AM To: <[email protected]<mailto:[email protected]>> Subject: enableStorageMaintenance ...works great for putting down the storage into maintenance mode (looking forward seeing this for secondary storage as well!). Now the question is, after I've run it... how do I know when it is done so I can operate on the volume? enableStorageMaintenance will return a job id, which can be used in queryAsyncJobResult. Here is the doc: http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Developers_Guide/asynchronous-commands.html Poll using updateStoragePool and query the state for "Maintenance"? What about introducing the ability to pass in callback URLs to the REST call? Thx. David La Motta Technical Marketing Engineer Citrix Solutions NetApp 919.476.5042 [email protected]<mailto:[email protected]>
