---
name: "TSMgmtSourceGet"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSMgmtSourceGet"
---

# TSMgmtSourceGet(3ts)

TSMgmtSourceGet API function

## NAME

TSMgmtSourceGet - TSMgmtSourceGet API function

## SYNOPSIS

```
#include <ts/ts.h>
```

- ***TSReturnCode* TSMgmtSourceGet(const char \*var\_name, *TSMgmtSource* \*result)**

  ## DESCRIPTION

Get the source of a value for a configuration variable. *var\_name* is the name of the variable as a nul terminated string. The source value is stored in *result*. The function can return failure if *var\_name* is not found.

## TYPES

- **type TSMgmtSource**

  Source of the current value for a management (configuration) value.

  - **TS\_MGMT\_SOURCE\_NULL**

    Invalid value, no source available. This is primarily used as an initialization or error value and should be returned only when the API call fails.

  - **TS\_MGMT\_SOURCE\_DEFAULT**

    The default value provided by the Traffic Server core.

  - **TS\_MGMT\_SOURCE\_PLUGIN**

    The configuration variable was created by a plugin and the value is the default value provided by a plugin.

  - **TS\_MGMT\_SOURCE\_EXPLICIT**

    The value has been set in *records.config*. Note this value is returned even if the variable was explicitly set to the default value.

  - **TS\_MGMT\_SOURCE\_ENV**

    The value was retrieved from the process environment, overriding the default value.

## RETURN VALUES

*TS\_SUCCESS* if the *var\_name* was found, *TS\_ERROR* if not.

## COPYRIGHT

2026, dev@trafficserver.apache.org
