Common Algorithm Parameters
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
algorithmName |
Yes |
String |
Algorithm name. The options are (algorithm names you can call):
|
parameters |
Yes |
Object |
Algorithm parameters. For details, see the parameter descriptions of each algorithm. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
executionMode |
No |
String |
The default value is sync. Supported algorithms are as follows (algorithm names you can call):
|
offset |
No |
Integer |
Synchronization result offset. The default value is 0.
NOTE:
This parameter is available when executionMode is sync. Supported algorithms are as follows (algorithm names you can call):
|
limit |
No |
Integer |
Maximum number of returned synchronization results. The maximum value is 100000. The default value is 100000.
NOTE:
This parameter is available when executionMode is sync. Supported algorithms are as follows (algorithm names you can call):
|
Response Parameters
Parameter |
Type |
Description |
---|---|---|
errorMessage |
String |
System prompt. If execution succeeds, this parameter may be left blank. If execution fails, this parameter is used to display the error message. |
errorCode |
String |
System prompt. If execution succeeds, this parameter may be left blank. If execution fails, this parameter is used to display the error code. |
status |
String |
Job status returned for a successful query. The options are pending, running, and complete. This parameter is left blank when the query fails. |
data |
Object |
Algorithm execution result. This parameter is left blank when the query fails. |
Example Request
{ "algorithmName":"XXX", "parameters":{ ... } }
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": { "path": [ "46", "133", "138" ], "source": "46", "target": "138" } }, "result": "success" }

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 { "errorMessage": "UnSupported value [shortest_path11] for parameter [algorithmName].", "errorCode": "GES.8402", "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