All Products
Search
Document Center

OpenSearch:ListDataSourceTasks

Last Updated:Jul 16, 2024

Displays data source tasks.

Operation description

Method

GET

URI

/openapi/ha3/instances/{instanceId}/data-source-tasks

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /openapi/ha3/instances/{instanceId}/data-source-tasks

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-7e22rof5304

Sample requests

GET /openapi/ha3/instances/{instanceId}/data-source-tasks

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

id of request

CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511
resultarray<object>

The index information.

object

The result returned by data search.

groupTypestring

The change group type.

" "
fsmIdstring

The ID of the finite state machine (FSM).

tisplus_opensearch@datasource_flow_fsm@1062017779051424-ha-cn-2r42ostoc01_ecom_table@vpc_hz_domain_1@null@MANUAL-ha-cn-2r42ostoc01_ecom_table@1655974525756@006754
namestring

The card name.

general
timestring

The timestamp of the card.

1646279473
typestring

The card type.

search
userstring

The user who triggered the generation of the FSM process.

""
statusstring

The FSM status.

2
extraAttributestring

The additional attributes of the card.

""
field3string

The field3 field that was passed when the FSM was created.

""
tagsarray<object>

The tags of the progress bar.

object

The tag of the data source.

tagLevelstring

The tag level.

""
msgstring

The tag content.

succeed in handling request
taskNodesarray<object>

The task information.

object

The information about the nodes of the task.

namestring

The task name.

ha-cn-7pp2ngv4s02_qrs
indexlong

The ordinal number of the task.

100
finishDatestring

The time when the task was complete.

""
statusstring

The task status.

onlyPublished

Sample responses

Success responses

{
  "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
  "result": [
    {
      "groupType": "table",
      "fsmId": "tisplus_opensearch@create_online_deploy_fsm@opensearch_pre_standard_private_20211110_2@pre_domain_1@null@null@1637215469093@127746",
      "name": "",
      "taskNodes": [
        {
          "nodeInfo": {
            "msg": "stopped clean fsm: []",
            "name": "stop clean",
            "index": 0,
            "msg":"",
            "finishDate": "2021-11-18 14:04:49",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "prepare",
            "index": 1,
            "finishDate": "2021-11-18 14:05:09",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "merger port",
            "index": 2,
            "finishDate": "2021-11-18 14:05:19",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "moss create",
            "index": 3,
            "finishDate": "2021-11-18 14:05:39",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "submit hippo",
            "index": 4,
            "finishDate": "2021-11-18 14:05:59",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "admin started",
            "index": 5,
            "finishDate": "2021-11-18 14:16:05",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "zone create",
            "index": 6,
            "finishDate": "2021-11-18 14:16:45",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "switch index",
            "index": 13,
            "finishDate": "2021-11-18 14:16:55",
            "status": "SUCCESS"
          }
        }
      ],
      "time": "2021-11-18 14:04:29",
      "type": "onlineGroup",
      "user": "74087",
      "status": "success"
    },
    {
      "groupType": "table",
      "fsmId": "tisplus_opensearch@delete_biz_fsm@multi_biz_opensearch-default@null@null@default@1631777272819@926304",
      "name": "delete_biz_fsm",
      "taskNodes": [
        {
          "nodeInfo": {
            "msg": "stop biz create fsm success",
            "name": "stop fsm",
            "index": 0,
            "finishDate": "2021-09-16 15:27:53",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "msg": "Ha3BizConfigResource [default] not exist",
            "name": "delete moss",
            "index": 1,
            "finishDate": "2021-09-16 15:28:04",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "msg": "skip delete cause resource[name=default] not exist",
            "name": "delete biz resource",
            "index": 2,
            "finishDate": "2021-09-16 15:28:14",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "msg": "skip check cause no InnerData.BizConfigResource is null",
            "name": "check suez",
            "index": 3,
            "finishDate": "2021-09-16 15:28:24",
            "status": "SUCCESS"
          }
        },
        {
          "nodeInfo": {
            "name": "finished",
            "index": 4,
            "finishDate": "2021-09-16 15:28:24",
            "status": "SUCCESS"
          }
        }
      ],
      "time": "2021-09-16 15:27:53",
      "type": "delete_biz_fsm",
      "user": "",
      "status": "success"
    }
  ]

Examples

Sample success responses

JSONformat

{
  "requestId": "CC5EC8FA-5C0D-56AF-BEF4-6FCCEABD0511",
  "result": [
    {
      "groupType": "\" \"",
      "fsmId": "tisplus_opensearch@datasource_flow_fsm@1062017779051424-ha-cn-2r42ostoc01_ecom_table@vpc_hz_domain_1@null@MANUAL-ha-cn-2r42ostoc01_ecom_table@1655974525756@006754",
      "name": "general",
      "time": "1646279473",
      "type": "search",
      "user": "\"\"",
      "status": "2",
      "extraAttribute": "\"\"",
      "field3": "\"\"",
      "tags": [
        {
          "tagLevel": "\"\"",
          "msg": "succeed in handling request"
        }
      ],
      "taskNodes": [
        {
          "name": "ha-cn-7pp2ngv4s02_qrs",
          "index": 100,
          "finishDate": "\"\"",
          "status": "onlyPublished"
        }
      ]
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-01-12Add OperationView Change Details