MCPcopy Index your code
hub / github.com/apache/cloudstack-go / NewClient

Function NewClient

cloudstack/cloudstack.go:443–446  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
443func 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

Callers 15

TestCertificateServiceFunction · 0.92
TestMetricsServiceFunction · 0.92
TestAutoScaleServiceFunction · 0.92
TestLimitServiceFunction · 0.92
TestNiciraNVPServiceFunction · 0.92
TestMiscServiceFunction · 0.92
TestRouterServiceFunction · 0.92
TestWebhookServiceFunction · 0.92
TestNetworkServiceFunction · 0.92
TestInternalLBServiceFunction · 0.92

Calls 1

newClientFunction · 0.85

Tested by 15

TestCertificateServiceFunction · 0.74
TestMetricsServiceFunction · 0.74
TestAutoScaleServiceFunction · 0.74
TestLimitServiceFunction · 0.74
TestNiciraNVPServiceFunction · 0.74
TestMiscServiceFunction · 0.74
TestRouterServiceFunction · 0.74
TestWebhookServiceFunction · 0.74
TestNetworkServiceFunction · 0.74
TestInternalLBServiceFunction · 0.74