After the API service is called, data is returned in a unified format. The returned HTTP status code 2xx indicates that the call succeeds, and the status code 4xx or 5xx indicates that the call fails. If a call is successful, the response data is in JSON format.
The following is an example of data returned for the cluster creation request.
If an error is reported in an API call, no result data is returned. The caller can locate the cause of an error based on the error code corresponding to each interface and the error message.
When an error occurs, HTTP Code (> 299) and Body are returned. Body contains the “HostId”, “Code”, and “Message” fields. Here is an example of a request error.
"Code" : "InvalidParameter",
"Messge" : " Specified parameter format is not valid."