All Products
Search
Document Center

OpenSearch:CreateFunctionTask

Last Updated:Oct 16, 2024

Starts a training task for an algorithm instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /v4/openapi/app-groups/{appGroupIdentity}/functions/{functionName}/instances/{instanceName}/tasks HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
appGroupIdentitystringYes

The name of the application.

app_group_name
functionNamestringYes

The name of the feature.

ctr
instanceNamestringYes

The name of the instance.

ctr_test

Sample requests

POST /v4/openapi/app-groups/my-app/functions/ctr/instances/ctr_test/task

Response parameters

ParameterTypeDescriptionExample
object

The response body.

Statusstring

The status of the request.

OK
HttpCodelong

The HTTP status code.

200
RequestIdstring

The ID of the request.

1638157990724
Messagestring

The error message.

success
Codestring

The error code.

Task.IsRunning
Latencylong

The time consumed for the request, in milliseconds.

123

Sample success responses

{
  "status" : "OK",
  "requestId" : "",
  "httpCode": 200,
  "code": "",
  "message": "",
  "latency" : 123,
  "result" : {},
}

Examples

Sample success responses

JSONformat

{
  "Status": "OK",
  "HttpCode": 200,
  "RequestId": "1638157990724",
  "Message": "success",
  "Code": "Task.IsRunning",
  "Latency": 123
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history