All Products
Search
Document Center

OpenSearch:ListDataSources

Last Updated:Jul 16, 2024

Obtains the list of data sources.

Operation description

Method

GET

URI

/openapi/ha3/instances/{instanceId}/data-sources

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-sources

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-2r42ostoc01

Sample requests

GET /openapi/ha3/instances/ha3_instances_id/data-sources

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

The ID of the request.

93A9E542-8CF8-5BA6-99AB-94C0FE520429
resultarray<object>

The results returned.

object

The list of data source information.

namestring

The name of the data source.

data_source_name
typestring

The type of the data source.

odps
domainstring

The data center in which the data source is deployed.

test
indexesarray

The indexes.

string

The index of the data source.

index1
lastFulTimelong

The time when the full data of the data source was last queried.

1718787785
statusstring

The status of the data source. Valid values: new: The data source is being created. publish: The data source is in the normal state. trash: The data source is being deleted.

new

Examples

Sample success responses

JSONformat

{
  "requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
  "result": [
    {
      "name": "data_source_name",
      "type": "odps",
      "domain": "test",
      "indexes": [
        "index1"
      ],
      "lastFulTime": 1718787785,
      "status": "new"
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-07-19The response structure of the API has changedView Change Details
2022-01-12Add OperationView Change Details