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

Method newRequest

cloudstack/cloudstack.go:529–531  ·  view source on GitHub ↗

Execute the request against a CS API. Will return the raw JSON data returned by the API and nil if no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS error details. If a processing (code) error occurs the result will be nil and the generated error

(api string, params url.Values)

Source from the content-addressed store, hash-verified

527// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS
528// error details. If a processing (code) error occurs the result will be nil and the generated error
529func (cs *CloudStackClient) newRequest(api string, params url.Values) (json.RawMessage, error) {
530 return cs.newRawRequest(api, false, params)
531}
532
533// Execute the request against a CS API using POST. Will return the raw JSON data returned by the API and
534// nil if no error occurred. If the API returns an error the result will be nil and the HTTP error code

Callers 15

ListNsxControllersMethod · 0.80
ListCAProvidersMethod · 0.80
ListCaCertificateMethod · 0.80
ListInstanceGroupsMethod · 0.80
GetUploadParamsForIsoMethod · 0.80
ListIsoPermissionsMethod · 0.80
ListIsosMethod · 0.80
ListSystemVmsMethod · 0.80
ListSecurityGroupsMethod · 0.80
ListNicsMethod · 0.80

Calls 1

newRawRequestMethod · 0.95

Tested by

no test coverage detected