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

Method newPostRequest

cloudstack/cloudstack.go:536–538  ·  view source on GitHub ↗

Execute the request against a CS API using POST. 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 generat

(api string, params url.Values)

Source from the content-addressed store, hash-verified

534// nil if no error occurred. If the API returns an error the result will be nil and the HTTP error code
535// and CS error details. If a processing (code) error occurs the result will be nil and the generated error
536func (cs *CloudStackClient) newPostRequest(api string, params url.Values) (json.RawMessage, error) {
537 return cs.newRawRequest(api, true, params)
538}
539
540// Execute a raw request against a CS API. Will return the raw JSON data returned by the API and nil if
541// no error occurred. If the API returns an error the result will be nil and the HTTP error code and CS

Calls 1

newRawRequestMethod · 0.95

Tested by

no test coverage detected