Create Binding Index Configuration¶
POST /api/v1/log_index_cfg/bind
Overview¶
Create a custom storage binding index
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
extend | json | Frontend custom data Allow empty: True |
|
name | string | Y | Index name Example: xxx Allow empty: False |
storeType | string | Y | Storage type Example: xxx Allow empty: False |
exterStoreName | string | Y | External storage name mapped to name (SLS type corresponds to StoreName, Volcengine TLS corresponds to topic_name) Allow empty: False |
exterStoreProject | string | External storage index corresponding project (SLS type corresponds to StoreProject, Volcengine TLS corresponds to project_name) Allow empty: False |
|
region | string | Specify the region of the external resource Allow empty: False |
|
isPublicNetworkAccess | boolean | Whether to access via public network, effective when storeType is sls, default is False (added in 2024-07-10 iteration) Allow empty: True |
|
accessCfg | json | Y | External resource access configuration information Allow empty: False |
accessCfg.ak | string | Secret key Id Allow empty: False |
|
accessCfg.sk | string | Secret key Allow empty: False |
|
accessCfg.url | string | URL Allow empty: False |
|
accessCfg.username | string | Username Allow empty: False |
|
accessCfg.password | string | Password Allow empty: False |
|
accessCfg.iamProjectName | string | Volcengine TLS iam_project_name Allow empty: False Allow empty string: True |
|
accessCfg.iamProjectDisplayName | string | Display name of Volcengine TLS iam_project_name Allow empty: False Allow empty string: True |
|
accessCfg.projectId | string | Volcengine TLS project_id Allow empty: False Allow empty string: True |
|
accessCfg.topicId | string | Volcengine TLS topic_id Allow empty: False Allow empty string: True |
|
fields | array | List of field mapping configurations to be updated Allow empty: False |
|
fields[*] | None | ||
fields[*].field | string | Y | Field name Example: message Allow empty: False |
fields[*].originalField | string | Y | Original field name Example: content Allow empty: False Allow empty string: True |
Parameter Additional Notes¶
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/log_index_cfg/bind' \
-H 'Content-Type: application/json' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"accessCfg":{"url":"aa.com","password":"test","username":"test"},"exterStoreName":"aa_uuid","fields":[{"field":"time","originalField":"time"},{"field":"__docid","originalField":"__docid"},{"field":"message","originalField":"message"}],"storeType":"es","name":"openapi_test"}' \
--compressed