TSMGMTDATATYPEGET(3ts)

πŸ“¦
version 9.2.5 Β· 4 versions
, in ubuntu noble, ubuntu questing

πŸ’– TSMgmtDataTypeGet β€” the manual page, but make it cute πŸ’–

okay bestie, welcome to the TSMgmtDataTypeGet(3ts) page, a certified Apache Traffic Server banger. it lives in the 3ts manual section and it's lowkey one of the most useful little gremlins in the whole API. let's get into it 🫢


✨ NAME ✨

TSMgmtDataTypeGet β€” the TSMgmtDataTypeGet API function. yes queen, the name is the name, we love a self-titled icon πŸ’…


🌸 SYNOPSIS 🌸

#include <ts/ts.h>

TSReturnCode TSMgmtDataTypeGet(const char *var_name, TSRecordDataType
*result)

that's it. that's the whole vibe. include the header, call the function, get your answer ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, fr fr: this function gets the type of a value for a configuration variable. like, you've got a variable, you wanna know what kind of thing it is β€” that's the whole job, and she does it flawlessly πŸ‘‘

  • var_name is the name of the variable, as a null terminated string. (yes, null terminated, do not play with her on this πŸ₯Ί)
  • the type value gets stored in result.
  • and heads up bestie: the function can return TS_ERROR if var_name is not found. so like, if you're asking about a variable that doesn't exist? she's gonna tell you. no cap.

πŸ’œ TYPES πŸ’œ

need the full deets on the type situation? check TSRecordDataType for a detailed description. she's got the whole breakdown over there, iykyk πŸ“–βœ¨


⭐ RETURN VALUES ⭐

  • TS_SUCCESS β€” if the var_name was found. slay, you did it πŸ’–
  • TS_ERROR β€” if not. 😭 it's giving "that variable said no thank you"
not me double-checking your return values for you, because i love you and i want you to succeed 🫢

2026, dev@trafficserver.apache.org


and that's the page, bestie!! 🌈 this gorgeous little manual page is from version 9.2, dated Feb 12, 2026, and honestly? iconic behavior from the Apache Traffic Server girlies. go forth and TSMgmtDataTypeGet responsibly, ily, mwah πŸ’‹πŸ’–πŸ§š

πŸ“¦ where this page comes from