Default non-async client. So for async calls you need to implement and check the async job result yourself. When using HTTPS with a self-signed certificate to connect to your CloudStack API, you would probably want to set 'verifyssl' to false so the call ignores the SSL errors/warnings.
(apiurl string, apikey string, secret string, verifyssl bool, options ...ClientOption)
| 441 | // HTTPS with a self-signed certificate to connect to your CloudStack API, you would probably want to set 'verifyssl' to |
| 442 | // false so the call ignores the SSL errors/warnings. |
| 443 | func NewClient(apiurl string, apikey string, secret string, verifyssl bool, options ...ClientOption) *CloudStackClient { |
| 444 | cs := newClient(apiurl, apikey, secret, false, verifyssl, options...) |
| 445 | return cs |
| 446 | } |
| 447 | |
| 448 | // For sync API calls this client behaves exactly the same as a standard client call, but for async API calls |
| 449 | // this client will wait until the async job is finished or until the configured AsyncTimeout is reached. When the async |