This API is used to start a service task. This parameter applies only to IEF. It cannot be used in ModelArts Edge.
POST /v1/{project_id}/services/{service_id}/tasks/{task_id}/start
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
service_id |
Yes |
String |
Service ID |
task_id |
Yes |
String |
ID of a specified service task |
None
Status code: 400
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Internal service error code |
error_msg |
String |
Error message |
Status code: 404
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Internal service error code |
error_msg |
String |
Error message |
Start a specified service task.
/v1/b722xxxxxxxxxxxxxxxxxxxxxxeb4674/services/88bbxxxx-xxxx-xxxx-xxxx-xxxxxxxxbcfe/tasks/53e4xxxxxxxxxxxxxxxxxxxxxxb55b3e/start
Status code: 400
The request is invalid.
{
"error_code" : "ModelArts.0101",
"error_msg" : "Invalid argument. parameter [task_id] does not match ^[0-9a-f]{32}$."
}
Status code: 404
The specified service does not exist.
{
"error_code" : "ModelArts.3502",
"error_msg" : "Service 2a2db77f-xxxx-xxxx-xxxx-608a31865313 does not exist."
}
Status Code |
Description |
|---|---|
202 |
The request for starting a service task has been accepted. |
400 |
The request is invalid. |
404 |
The specified service does not exist. |
See Error Codes.