curl --request GET \
--url https://{tenant}/config \
--header 'X-Tyk-Authorization: <api-key>'{
"listen_port": 9090,
"healthcheck_port": 8180,
"http_port": 8180,
"enable_http_profiler": false,
"server_options": {
"use_ssl": false,
"certificate": {
"cert_file": "./server.crt",
"key_file": "./server.key"
},
"min_version": 0,
"ssl_ciphers": "<string>",
"ssl_certificates": "<string>"
},
"http_server_options": {
"use_ssl": false,
"certificate": {
"cert_file": "",
"key_file": ""
},
"min_version": 0,
"ssl_ciphers": "<string>",
"ssl_certificates": "<string>"
},
"security": {
"private_certificate_encoding_secret": "",
"enable_http_secure_endpoints": true,
"secret": ""
},
"storage": {
"type": "redis",
"host": "localhost",
"port": 6379,
"master_name": "",
"sentinel_password": "",
"username": "",
"password": "",
"database": 0,
"optimisation_max_idle": 0,
"optimisation_max_active": 0,
"enable_cluster": false,
"hosts": "<string>",
"addrs": "<string>",
"redis_use_ssl": false,
"redis_ssl_insecure_skip_verify": false,
"debug": false,
"timeout": 0,
"use_ssl": false,
"ssl_insecure_skip_verify": false,
"ca_file": "",
"cert_file": "",
"key_file": "",
"max_version": "",
"min_version": ""
},
"analytics": {
"type": "mongo",
"connection_string": "",
"table_sharding": false,
"batch_size": 0,
"postgres": {
"prefer_simple_protocol": false
},
"mysql": {
"default_string_size": 0,
"disable_datetime_precision": false,
"dont_support_rename_index": false,
"dont_support_rename_column": false,
"skip_initialize_with_version": false
},
"mongo_url": "",
"mongo_use_ssl": false,
"mongo_ssl_insecure_skip_verify": false,
"mongo_ssl_allow_invalid_hostnames": false,
"mongo_ssl_ca_file": "",
"mongo_ssl_pem_keyfile": "",
"mongo_session_consistency": "",
"mongo_batch_size": 0,
"driver": "mongo-go",
"mongo_direct_connection": false
},
"hash_keys": true,
"session_timeout": 0,
"forward_analytics_to_pump": false,
"enable_multiple_analytics_keys": false,
"dont_store_selective": false,
"dont_store_aggregate": false,
"org_session_expiration": 60,
"org_session_cleanup": 60,
"license": "",
"aggregates_ignore_tags": "<string>",
"track_all_paths": false,
"store_analytics_per_minute": false,
"ignore_tag_prefix_list": "<string>",
"threshold_len_tag_list": 1000,
"omit_analytics_index_creation": false,
"enable_separate_analytics_store": false,
"analytics_storage": {
"type": "",
"host": "",
"port": 0,
"master_name": "",
"sentinel_password": "",
"username": "",
"password": "",
"database": 0,
"optimisation_max_idle": 0,
"optimisation_max_active": 0,
"enable_cluster": false,
"hosts": "<string>",
"addrs": "<string>",
"redis_use_ssl": false,
"redis_ssl_insecure_skip_verify": false,
"debug": false,
"timeout": 0,
"use_ssl": false,
"ssl_insecure_skip_verify": false,
"ca_file": "",
"cert_file": "",
"key_file": "",
"max_version": "",
"min_version": ""
},
"log_level": "info",
"enable_key_logging": false,
"sync_worker_config": {
"enabled": true,
"hash_keys": true,
"max_batch_size": 1000,
"time_between_batches": 3,
"max_workers": 1000,
"warmup_time": 0,
"group_key_ttl": 30
},
"enable_ownership": false,
"config_field": "sync_worker_config.warmup_time",
"env": "TYK_MDCB_SYNCWORKERCONFIG_WARMUPTIME",
"value": "0",
"obfuscated": false,
"type": "full"
}Returns the current configuration status of the system. You can optionally filter for a specific configuration field.
Example curl commands:
Get full configuration:
curl -X GET \
http://localhost:8181/config \
-H 'X-Tyk-Authorization: your-secret-key'
Get specific configuration field:
curl -X GET \
'http://localhost:8181/config?field=storage.host' \
-H 'X-Tyk-Authorization: your-secret-key'
curl --request GET \
--url https://{tenant}/config \
--header 'X-Tyk-Authorization: <api-key>'{
"listen_port": 9090,
"healthcheck_port": 8180,
"http_port": 8180,
"enable_http_profiler": false,
"server_options": {
"use_ssl": false,
"certificate": {
"cert_file": "./server.crt",
"key_file": "./server.key"
},
"min_version": 0,
"ssl_ciphers": "<string>",
"ssl_certificates": "<string>"
},
"http_server_options": {
"use_ssl": false,
"certificate": {
"cert_file": "",
"key_file": ""
},
"min_version": 0,
"ssl_ciphers": "<string>",
"ssl_certificates": "<string>"
},
"security": {
"private_certificate_encoding_secret": "",
"enable_http_secure_endpoints": true,
"secret": ""
},
"storage": {
"type": "redis",
"host": "localhost",
"port": 6379,
"master_name": "",
"sentinel_password": "",
"username": "",
"password": "",
"database": 0,
"optimisation_max_idle": 0,
"optimisation_max_active": 0,
"enable_cluster": false,
"hosts": "<string>",
"addrs": "<string>",
"redis_use_ssl": false,
"redis_ssl_insecure_skip_verify": false,
"debug": false,
"timeout": 0,
"use_ssl": false,
"ssl_insecure_skip_verify": false,
"ca_file": "",
"cert_file": "",
"key_file": "",
"max_version": "",
"min_version": ""
},
"analytics": {
"type": "mongo",
"connection_string": "",
"table_sharding": false,
"batch_size": 0,
"postgres": {
"prefer_simple_protocol": false
},
"mysql": {
"default_string_size": 0,
"disable_datetime_precision": false,
"dont_support_rename_index": false,
"dont_support_rename_column": false,
"skip_initialize_with_version": false
},
"mongo_url": "",
"mongo_use_ssl": false,
"mongo_ssl_insecure_skip_verify": false,
"mongo_ssl_allow_invalid_hostnames": false,
"mongo_ssl_ca_file": "",
"mongo_ssl_pem_keyfile": "",
"mongo_session_consistency": "",
"mongo_batch_size": 0,
"driver": "mongo-go",
"mongo_direct_connection": false
},
"hash_keys": true,
"session_timeout": 0,
"forward_analytics_to_pump": false,
"enable_multiple_analytics_keys": false,
"dont_store_selective": false,
"dont_store_aggregate": false,
"org_session_expiration": 60,
"org_session_cleanup": 60,
"license": "",
"aggregates_ignore_tags": "<string>",
"track_all_paths": false,
"store_analytics_per_minute": false,
"ignore_tag_prefix_list": "<string>",
"threshold_len_tag_list": 1000,
"omit_analytics_index_creation": false,
"enable_separate_analytics_store": false,
"analytics_storage": {
"type": "",
"host": "",
"port": 0,
"master_name": "",
"sentinel_password": "",
"username": "",
"password": "",
"database": 0,
"optimisation_max_idle": 0,
"optimisation_max_active": 0,
"enable_cluster": false,
"hosts": "<string>",
"addrs": "<string>",
"redis_use_ssl": false,
"redis_ssl_insecure_skip_verify": false,
"debug": false,
"timeout": 0,
"use_ssl": false,
"ssl_insecure_skip_verify": false,
"ca_file": "",
"cert_file": "",
"key_file": "",
"max_version": "",
"min_version": ""
},
"log_level": "info",
"enable_key_logging": false,
"sync_worker_config": {
"enabled": true,
"hash_keys": true,
"max_batch_size": 1000,
"time_between_batches": 3,
"max_workers": 1000,
"warmup_time": 0,
"group_key_ttl": 30
},
"enable_ownership": false,
"config_field": "sync_worker_config.warmup_time",
"env": "TYK_MDCB_SYNCWORKERCONFIG_WARMUPTIME",
"value": "0",
"obfuscated": false,
"type": "full"
}Secret value set in sink.conf
Optional configuration field name to filter by
Successful retrieval of the current configuration.
9090
8180
8180
false
Show child attributes
false
0
Show child attributes
false
0
Show child attributes
"redis"
"localhost"
6379
""
""
""
""
0
0
0
false
false
false
false
0
false
false
""
""
""
""
""
Show child attributes
"mongo"
""
false
0
Show child attributes
0
false
false
false
false
""
false
false
false
""
""
""
0
"mongo-go"
false
true
0
false
false
false
false
60
60
""
false
false
1000
false
false
Show child attributes
""
""
0
""
""
""
""
0
0
0
false
false
false
false
0
false
false
""
""
""
""
""
"info"
false
Show child attributes
true
true
1000
3
1000
0
30
false
"sync_worker_config.warmup_time"
"TYK_MDCB_SYNCWORKERCONFIG_WARMUPTIME"
"0"
false
full, single Was this page helpful?