Querying Details About a Metadata Collection Task
Function
Query details about a collection task.
Calling Method
For details, see Calling APIs.
URI
GET /v3/{project_id}/metadata/tasks/{task_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain it, see Project ID and Account ID. |
| task_id | Yes | String | Task ID |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. This parameter is mandatory when token authentication is used. You can obtain it from the value of X-Subject-Token in the response message header returned by the "Obtaining a User Token" API of the IAM service. |
| workspace | Yes | String | Workspace ID. For details about how to obtain it, see Instance ID and Workspace ID. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| id | String | Task ID |
| name | String | Task name |
| description | String | Task description. |
| user_id | String | User ID. |
| create_time | String | Creation time. |
| project_id | String | Product ID. |
| dir_id | String | Directory ID |
| schedule_config | SchedulerInfo object | Scheduling information |
| parameter_config | Array of CustomMetadata objects | User-defined metadata information. |
| update_time | String | Modification time. |
| user_name | String | User name. |
| path | String | Path |
| last_run_time | String | Last execution time. |
| start_time | String | Start time |
| end_time | String | End time |
| next_run_time | String | Next execution time. |
| duty_person | String | Owner |
| update_type | String | Modification type |
| data_source_type | String | Data source type |
| task_config | Object | Task information, which is Map(String, Object) The key is the attribute name, and value is the attribute value. |
| data_source_workspace_id | String | Workspace ID of the data source |
| Parameter | Type | Description |
|---|---|---|
| cron_expression | String | Expression |
| end_time | String | End time |
| max_time_out | Integer | Maximum timeout interval |
| interval | String | Interval |
| schedule_type | String | Scheduling type |
| start_time | String | Start time |
| job_id | Integer | Job ID |
| enabled | Integer | Enabled |
| Parameter | Type | Description |
|---|---|---|
| description | String | Description |
| type | String | Type |
| task_id | String | Task ID |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Status code: 404
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
Example Requests
None
Example Responses
Status code: 200
OK.
{
"create_time" : "1663573720930",
"data_source_type" : "HIVE",
"data_source_workspace_id" : null,
"description" : "",
"dir_id" : "0",
"duty_person" : "user_demo",
"end_time" : "0",
"id" : "8a9480ed8353e491018354b87f63009e",
"last_run_time" : "1663574072000",
"name" : "Collect and verify FAW-Volkswagen requirements.",
"next_run_time" : "0",
"parameter_config" : [ ],
"path" : "",
"project_id" : null,
"schedule_config" : [ {
"cron_expression" : null,
"enabled" : 4,
"end_time" : null,
"interval" : null,
"job_id" : 261593,
"max_time_out" : 60,
"schedule_type" : "RUN_ONCE",
"start_time" : null
} ],
"start_time" : "0",
"task_config" : [ ],
"update_time" : "1663573720930",
"update_type" : null,
"user_id" : "0833a573fe80d5401f6dc010a775569a",
"user_name" : "user_demo"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | OK. |
| 400 | Bad request. |
| 401 | Unauthorized. |
| 403 | Forbidden. |
| 404 | Not found. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.