TSMGMTSOURCEGET(3ts)
π TSMGMTSOURCEGET π
okay bestie so this is a page from the Apache Traffic Server manual, section 3ts β the library function girlies. and today's main character is literally TSMgmtSourceGet. she's an API function and she's here to tell you where a config value came from. like, who set it? was it the core? a plugin? you? the environment?? she knows. π΅οΈβοΈβ¨
πΈ NAME πΈ
TSMgmtSourceGet β the TSMgmtSourceGet API function. that's it, that's the whole name, no cap. π
β¨ SYNOPSIS β¨
#include <ts/ts.h>
TSReturnCode TSMgmtSourceGet(const char *var_name, TSMgmtSource *result)
like, that's the whole vibe. include the header, call the function, get the tea. π
π¦ DESCRIPTION π¦
so basically she gets the source of a value for a configuration variable. the way that works is: var_name is the name of the variable, and it's gotta be a nul terminated string (yes bestie, terminated, respect the nul π). the source value gets stored in result β she writes it there for you.
and heads up: the function can return failure if var_name is not found. so if you typo the variable name it's not gonna be cute, it's gonna fail. π
π TYPES π
type TSMgmtSource
the source of the current value for a management (configuration) value. she's an enum, she's got range, let's meet the girls:
TS_MGMT_SOURCE_NULLβ invalid value, no source available. this one is primarily used as an initialization or error value and should be returned only when the API call fails. so if you see her, something went wrong, periodt. π©TS_MGMT_SOURCE_DEFAULTβ the default value provided by the Traffic Server core. the og, untouched, factory settings energy. π±TS_MGMT_SOURCE_PLUGINβ the configuration variable was created by a plugin, and the value is the default value provided by that plugin. plugin made it, plugin owns it. π§TS_MGMT_SOURCE_EXPLICITβ the value has been set inrecords.config. and note: this value is returned even if the variable was explicitly set to the default value. so like, if you deliberately typed the same thing as the default, she still knows you did that. she's watching. she's proud of you. πTS_MGMT_SOURCE_ENVβ the value was retrieved from the process environment, overriding the default value. env var said "not today, default" and took over. π
π₯ RETURN VALUES π₯
TS_SUCCESSif thevar_namewas found πTS_ERRORif not π
that's it. binary. no in-between. slay.
π«Ά COPYRIGHT π«Ά
2026, dev@trafficserver.apache.org
and that's the whole page bestie!! tysm for reading, you ate that fr fr π β¨
Apache Traffic Server 9.2 β Feb 12, 2026 β version girlies and date girlies, this one's for you ππ¦π
π¦ where this page comes from
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms