Domain name for API request: cls.intl.tencentcloudapi.com.
Import Preview
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: DescribeEsRechargePreview. |
| Version | Yes | String | Common Params. The value used for this API: 2020-10-16. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| Name | Yes | String | Name: Length not exceeding 64 characters. |
| TopicId | Yes | String | Log topic ID. -Obtain the log topic Id through Get Log Topic List. - Obtain the log topic Id through Create Log Topic. |
| Index | Yes | String | Index information. Different indexes can be separated by English commas and support wildcards. |
| Query | Yes | String | Elasticsearch Query Statement. |
| EsInfo | Yes | EsInfo | es cluster configuration. |
| ImportInfo | Yes | EsImportInfo | es import information. |
| TimeInfo | Yes | EsTimeInfo | Field information of es import time. |
| Parameter Name | Type | Description |
|---|---|---|
| Data | Array of String | Preview data info |
| 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. |
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeEsRechargePreview
<Common request parameters>
{
"Name": "preview_test",
"TopicId": "d8f1bad5-80ad-427a-8dc9-3108778e39aa",
"Index": "louder_search",
"Query": "ab",
"EsInfo": {
"EsType": 2,
"AccessMode": 2,
"User": "es_user",
"Address": "127.0.0.1",
"Port": 9200,
"Password": "abc@syz"
},
"ImportInfo": {
"Type": 1,
"MaxDelay": 120,
"CheckInterval": 60
},
"TimeInfo": {
"Type": 1
}
}
{
"Response": {
"Data": [
"{\"@__TIMESTAMP__\":1747258435179,\"Label_index\":null}"
],
"RequestId": "e0897b10-09df-49de-b0ec-8644f12972ec"
}
}
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 |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| AuthFailure.UnauthorizedOperation | Request unauthorized. |
| FailedOperation | Operation failed. |
| FailedOperation.Timeout | Operation timed out |
| InternalError | Internal error. |
| InternalError.DbError | DB Error. |
| InternalError.IllegalRole | Illegal role. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameter.DbDuplication | The unique key of database conflicts. |
| InvalidParameter.ParamError | Parameter error. |
| InvalidParameterValue | Incorrect parameter value. |
| LimitExceeded.RecordOutOfLimit | Record exceeds limit |
| MissingParameter | Missing parameter. |
| UnauthorizedOperation | Unauthorized operation. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | Unsupported operation. |
文档反馈