Gets the details of an asynchronous task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
featurestore:GetTask |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/tasks/{TaskId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. Call the ListInstances API to obtain this ID. |
fs-cn-******** |
| TaskId |
string |
Yes |
The task ID. Call the ListTasks API to obtain this ID. |
3 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
37D19490-AB69-567D-A852-407C94E510E9 |
| ProjectId |
string |
The project ID. |
3 |
| ProjectName |
string |
The project name. |
project_1 |
| Type |
string |
The task type.
|
OfflineToOnline |
| ObjectType |
string |
The type of the target object.
|
ModelFeature |
| ObjectId |
string |
The ID of the target object. |
3 |
| Status |
string |
The status of the task.
|
Running |
| Config |
string |
The task configuration. |
{ "mode": "overwrite", "partitions": { "dt": "20230820" }, "event_time": "", "config": {}, "offline_to_online": true } |
| RunningConfig |
string |
The task runtime configuration. |
DROP TABLE IF EXISTS public.fsxxx |
| GmtCreateTime |
string |
The creation time. |
2023-07-04T11:26:09.036+08:00 |
| GmtModifiedTime |
string |
The update time. |
2023-07-04T11:26:09.036+08:00 |
| GmtExecutedTime |
string |
The execution time. |
2023-07-04T11:26:09.036+08:00 |
| GmtFinishedTime |
string |
The completion time. |
2023-07-04T11:26:09.036+08:00 |
Examples
Success response
JSON format
{
"RequestId": "37D19490-AB69-567D-A852-407C94E510E9",
"ProjectId": "3",
"ProjectName": "project_1",
"Type": "OfflineToOnline",
"ObjectType": "ModelFeature",
"ObjectId": "3",
"Status": "Running",
"Config": "{\n\t\"mode\": \"overwrite\",\n\t\"partitions\": {\n\t\t\"dt\": \"20230820\"\n\t},\n\t\"event_time\": \"\",\n\t\"config\": {},\n\t\"offline_to_online\": true\n}",
"RunningConfig": "DROP TABLE IF EXISTS public.fsxxx",
"GmtCreateTime": "2023-07-04T11:26:09.036+08:00",
"GmtModifiedTime": "2023-07-04T11:26:09.036+08:00",
"GmtExecutedTime": "2023-07-04T11:26:09.036+08:00",
"GmtFinishedTime": "2023-07-04T11:26:09.036+08:00"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.