Software AG Products 10.5 | Configuring API Gateway | API Gateway Data Store | Administering API Gateway Data Store | Configuring Elasticsearch Properties using Template
 
Configuring Elasticsearch Properties using Template
You can configure the Elasticsearch properties using the following Command Central template:
sagcc exec templates composite import -i properties.yaml (properties.yaml)
sagcc exec templates composite apply sag-apigw-datastore-properties nodes=local
Sample template:
alias: sag-apigw-datastore-properties
description: API Gateway Data Store Properties

layers:
runtime:
templates:
- apigw-datastore-properties

templates:
apigw-datastore-properties:
products:
CEL:
default:
configuration:
CEL:
CUSTOM-PROPERTIES:
CUSTOM-PROPERTIES-default: |
---
searchguard.ssl.transport.enforce_hostname_verification: false
path.logs: "C:\\sag\\cc\\InternalDataStore/newlogs"
path.repo:
- "C:\\sag\\cc\\InternalDataStore/archives"
searchguard.ssl.http.clientauth_mode: "OPTIONAL"
searchguard.check_snapshot_restore_write_privileges: true
cluster.initial_master_nodes:
- "nodename"
searchguard.ssl.transport.resolve_hostname: false
searchguard.restapi.roles_enabled:
- "SGS_ALL_ACCESS"
searchguard.enable_snapshot_restore_privilege: true
searchguard.ssl.transport.enable_openssl_if_available: true
searchguard.authcz.admin_dn:
- "CN=sgadmin"

provision:
default:
runtime: ${nodes}