---
name: "TSRecords"
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/TSRecords"
---

# TSRecords(3ts)

traffic Server maintains a set of records which cover both configuration values and statistics

## NAME

Traffic Server Records - traffic Server maintains a set of records which cover both configuration values and statistics

## SYNOPSIS

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

- ***TSReturnCode* TSMgmtStringCreate(*TSRecordType* rec\_type, const char \*name, const *TSMgmtString* data\_default, *TSRecordUpdateType* update\_type, *TSRecordCheckType* check\_type, const char \*check\_regex, *TSRecordAccessType* access\_type)**

  - ***TSReturnCode* TSMgmtIntCreate(*TSRecordType* rec\_type, const char \*name, const *TSMgmtInt* data\_default, *TSRecordUpdateType* update\_type, *TSRecordCheckType* check\_type, const char \*check\_regex, *TSRecordAccessType* access\_type)**

  ## DESCRIPTION

*TSMgmtStringCreate()* registers *name* as a configuration name and sets its various properties. If *check\_type* is *TS\_RECORDCHECK\_STR* then *check\_reg* must be point to a valid regular expression to use to check the string value.

If a plugin uses a value from *records.config* that is not built in to Traffic Server it must use this function or the value will be inaccessible and a warning for that name will be generated.

## RETURN VALUES

*TSMgmtStringCreate()* and *TSMgmtIntCreate()* return **TS\_SUCCESS** if the management value was created and **TS\_ERROR** if not.

## SEE ALSO

**[TSAPI(3ts)](/TSAPI/3ts.md)**

## COPYRIGHT

2026, dev@trafficserver.apache.org
