Common Algorithm Parameters
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
algorithmName |
Yes |
String |
Algorithm name. For details, see the description of each algorithm. |
parameters |
No |
Object |
Algorithm parameters. For details, see the parameter description of each algorithm. |
output |
No |
Object |
Result output parameter. For details, see Table 2. |
timeout |
No |
Integer |
Timeout interval, in seconds. The value range is (0, 2147483648). |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
format |
No |
String |
Output format of the algorithm result. The options are JSON and TXT. The default value is JSON. For the TXT format, see Algorithm Results in TXT Format. |
mode |
No |
String |
Output mode of algorithm results. The options include FULL and TRUNCATED. The default value is TRUNCATED.
|

For parameters with default values, if the passed parameter value is null, it will be treated as the default value.
Example Response
Algorithms are executed based on input parameters. You can call Querying Job Status and Execution Results to use the job_id returned by the algorithm to obtain the algorithm execution result.
Status code: 200
Example response for a successful request
{ "data": { "outputs": { $response_data //Result of each algorithm. The results vary with the algorithm. "runtime": 1.365867, "data_return_size": 3, "data_offset": 0, "data_total_size": 100 } }, "status": "complete" }

response_data indicates the result of each algorithm. The results vary with algorithms.
Status code: 400
Example response for a failed request
Http Status Code: 400 { "status": "complete", "errorMessage": "Unknown algorithm name: pagerank12", "errorCode": "GES.8301", "result": "failed" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot