Modify Individual Bound Index Configuration¶
POST /api/v1/external_log_index_cfg/{cfg_uuid}/modify
Overview¶
Modify a custom storage bound index configuration
Route Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
cfg_uuid | string | Y | Configuration UUID |
Body Request Parameters¶
Parameter Name | Type | Required | Description |
---|---|---|---|
extend | json | Custom data from the frontend Can be empty: True |
|
exterStoreName | string | Y | External storage name mapped to name (SLS type corresponds to StoreName, Volcano Cloud's TLS corresponds to topic_name)Can be empty: False |
name | string | Y | Index name Example: xxx Can be empty: False |
exterStoreProject | string | Project corresponding to external storage index (SLS type corresponds to StoreProject, Volcano Cloud's TLS corresponds to project_name) Can be empty: False |
|
region | string | Specified region for external resources Can be empty: False |
|
isPublicNetworkAccess | boolean | Whether public network access is enabled, effective when storeType is sls, defaults to False (added in iteration on 2024-07-10) Can be empty: True |
|
accessCfg | json | Y | Access configuration information for external resources Can be empty: False |
accessCfg.cloudAccountId | string | Cloud account ID Can be empty: False |
|
accessCfg.ak | string | Secret key ID Can be empty: False |
|
accessCfg.sk | string | Secret key Can be empty: False |
|
accessCfg.url | string | URL address Can be empty: False |
|
accessCfg.username | string | Username Can be empty: False Can be an empty string: True |
|
accessCfg.password | string | Password Can be empty: False Can be an empty string: True |
|
accessCfg.iamProjectName | string | IAM project name for Volcano Cloud TLS Can be empty: False Can be an empty string: True |
|
accessCfg.iamProjectDisplayName | string | Display name of iam_project_name for Volcano Cloud TLS Can be empty: False Can be an empty string: True |
|
accessCfg.projectId | string | Project ID for Volcano Cloud TLS Can be empty: False Can be an empty string: True |
|
accessCfg.topicId | string | Topic ID for Volcano Cloud TLS Can be empty: False Can be an empty string: True |
|
fields | array | List of field mapping configurations to be updated Can be empty: False |
|
fields[*] | None | ||
fields[*].field | string | Y | Field name Example: message Can be empty: False |
fields[*].originalField | string | Y | Original field name Example: content Can be empty: False Can be an empty string: True |
Additional Parameter Notes¶
Request Example¶
curl 'https://openapi.guance.com/api/v1/external_log_index_cfg/lgim_xxxx32/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"accessCfg":{"url":"aabb.com","username":"test33"},"exterStoreName":"aa_uuid","fields":[{"field":"time","originalField":"time"},{"field":"__docid","originalField":"__docid"},{"field":"message","originalField":"message"}]}' \
--compressed