shwstppr opened a new pull request #83:
URL: https://github.com/apache/cloudstack-cloudmonkey/pull/83


   Fixes #81 
   
   Changes in this PR will allow making API calls when sync is called with 
arguments.
   
   ```
   ⇒  make run
   ▶  Running gofmt…
   ▶  Building executable… 022abb6
   ▶  Done!
   ./bin/cmk
   Apache CloudStack 🐵 CloudMonkey 6.1.0
   Report issues: https://github.com/apache/cloudstack-cloudmonkey/issues
   
   (sblab) 🐱 > sync
   Discovered 614 APIs
   (sblab) 🐱 > sync storagepool -h
   syncStoragePool: Sync storage pool with management server (currently 
supported for Datastore Cluster in VMware and syncs the datastores in it)
   This API is asynchronous.
   Required params: id, 
   API Params               Type     Description
   ==========               ====     ===========
   id                       uuid     Storage pool id
   (sblab) 🐱 > sync storagepool id=243f307c-6135-3772-8186-be65c695220b 
   {
     "accountid": "67e72573-cd47-11eb-bd54-1e009200048a",
     "cmd": 
"org.apache.cloudstack.api.command.admin.storage.SyncStoragePoolCmd",
     "completed": "2021-07-02T07:54:44+0000",
     "created": "2021-07-02T07:54:44+0000",
     "jobid": "dda93797-e1df-4693-8796-687c8f7da09c",
     "jobprocstatus": 0,
     "jobresult": {
       "errorcode": 431,
       "errortext": "SyncStoragePool API is currently supported only for 
storage type of datastore cluster"
     },
     "jobresultcode": 530,
     "jobresulttype": "object",
     "jobstatus": 2,
     "userid": "67e859fb-cd47-11eb-bd54-1e009200048a"
   }
   🙈 Error: async API failed for job dda93797-e1df-4693-8796-687c8f7da09c
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to