Domain name for API request: wedata.intl.tencentcloudapi.com.
This API is used to obtain instance lists.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: GetTaskInstance. |
Version | Yes | String | Common Params. The value used for this API: 2021-08-20. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-singapore, eu-frankfurt, na-ashburn, na-siliconvalley. |
ProjectId | Yes | String | Project ID. |
InstanceKey | Yes | String | Unique identifier of an instance. |
ScheduleTimeZone | No | String | Time zone. Time zone. specifies the time zone. the default value is UTC+8. |
Parameter Name | Type | Description |
---|---|---|
Data | InstanceDetailVO | Details of scheduling an instance. Note: This field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to obtain instance details.
POST / HTTP/1.1
Host: wedata.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetTaskInstance
<Common request parameters>
{
"ProjectId": "1460947878944567296",
"InstanceKey": "20250326150742906_2025-03-28 00:00:00",
"ScheduleTimeZone": "UTC+6"
}
{
"Response": {
"Data": {
"CostTime": "00:00:12.000",
"CurRunDate": "2025-03-28 00:00:00",
"EndTime": "2025-03-27 22:18:55",
"ExecutorGroupId": "20240222212719833743",
"ExecutorGroupName": "qfh_test",
"FolderId": "2493fc25-643d-11ef-8ec8-b8599f277de5",
"FolderName": "dylandlwu",
"InChargeList": [
"dylandlwu"
],
"InstanceKey": "20250326150742906_2025-03-28 00:00:00",
"InstanceLifeCycleList": [
{
"BrokerIp": "ins-6m365yvb",
"CodeFileName": null,
"CostTime": "-11",
"ExecutionJobId": "6820250328000318055",
"InstanceKey": "20250326150742906_2025-03-28 00:00:00",
"InstanceState": 2,
"LifeCycleDetailList": [
{
"DetailState": "COMPLETE",
"EndTime": null,
"StartTime": "2025-03-27 22:18:59",
"State": null
},
{
"DetailState": "RUNNING",
"EndTime": "2025-03-27 22:18:59",
"StartTime": "2025-03-27 22:18:43",
"State": null
},
{
"DetailState": "WAIT_RUN",
"EndTime": "2025-03-27 22:18:43",
"StartTime": "2025-03-27 22:02:58",
"State": null
},
{
"DetailState": "WAIT_UPSTREAM",
"EndTime": "2025-03-27 22:02:58",
"StartTime": "2025-03-27 22:02:44",
"State": null
}
],
"LifeRoundNum": 0,
"LogType": null,
"OriginFileName": null,
"RunType": "PERIODIC",
"Tries": 0
}
],
"InstanceState": 2,
"InstanceType": null,
"LatestLog": {
"BrokerIp": "ins-6m365yvb",
"CodeFileSize": "1 KB",
"CodeInfo": "echo this is log demo;",
"EndTime": "2025-03-27 22:18:59",
"ExtInfo": "45308",
"InstanceKey": "20250326150742906_2025-03-28 00:00:00",
"InstanceState": 2,
"IsEnd": true,
"LineCount": 331,
"LogFileSize": "1 KB",
"LogInfo": "2025-03-28 00:18:37 this is log demo",
"ProjectId": "1460947878944567296",
"RunType": "PERIODIC",
"StartTime": "2025-03-27 22:18:43"
},
"NextCurDate": "2025-03-28 00:20:00",
"ProjectId": "1460947878944567296",
"SchedulerTime": "2025-03-27 22:00:00",
"StartTime": "2025-03-27 22:18:43",
"TaskCycleType": "I",
"TaskId": "20250326150742906",
"TaskName": "dq_test_dylan_shell_01",
"TaskType": {
"TypeDesc": "Shell",
"TypeId": 35,
TypeSort: data computing
},
"TotalRunNum": 1,
"Tries": 1,
"TryLimit": 5,
"WorkflowId": "ec66594e-53a0-48cb-8044-a9eb3a58efe5",
"WorkflowName": "dq_test_0326"
},
"RequestId": "e8393496-32f6-4273-8555-32b9a69d63cb"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation | Operation Failure. |