# otSrpServerLeaseConfig Struct Reference

# otSrpServerLeaseConfig


`#include <openthread/srp_server.h>`

Includes SRP server LEASE and KEY-LEASE configurations.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-srp-server-lease-config#structot_srp_server_lease_config_1ad8a36541ef7773e0af91cafc381963c0` | `uint32_t` The maximum KEY-LEASE interval in seconds. |
| `https://openthread.io/reference/struct/ot-srp-server-lease-config#structot_srp_server_lease_config_1a2404ba700228e72301089603d44cb077` | `uint32_t` The maximum LEASE interval in seconds. |
| `https://openthread.io/reference/struct/ot-srp-server-lease-config#structot_srp_server_lease_config_1a310bb7f985d597c79351eb368324cc63` | `uint32_t` The minimum KEY-LEASE interval in seconds. |
| `https://openthread.io/reference/struct/ot-srp-server-lease-config#structot_srp_server_lease_config_1a96efeb583e58c333adc55b90b9fcd16c` | `uint32_t` The minimum LEASE interval in seconds. |

## Public attributes

### mMaxKeyLease

```
uint32_t otSrpServerLeaseConfig::mMaxKeyLease
```
The maximum KEY-LEASE interval in seconds.

### mMaxLease

```
uint32_t otSrpServerLeaseConfig::mMaxLease
```
The maximum LEASE interval in seconds.

### mMinKeyLease

```
uint32_t otSrpServerLeaseConfig::mMinKeyLease
```
The minimum KEY-LEASE interval in seconds.

### mMinLease

```
uint32_t otSrpServerLeaseConfig::mMinLease
```
The minimum LEASE interval in seconds.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).