# otSrpServerLeaseInfo Struct Reference

# otSrpServerLeaseInfo


`#include <openthread/srp_server.h>`

Includes SRP server lease information of a host/service.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-srp-server-lease-info#structot_srp_server_lease_info_1a2434bd1b5a1c7d0cf471ea529dec675e` | `uint32_t` The key lease time of a host/service in milliseconds. |
| `https://openthread.io/reference/struct/ot-srp-server-lease-info#structot_srp_server_lease_info_1a8b76533d537fae29c50cbff8acc55416` | `uint32_t` The lease time of a host/service in milliseconds. |
| `https://openthread.io/reference/struct/ot-srp-server-lease-info#structot_srp_server_lease_info_1ab45892ca91a890a6da037d4f5e61149f` | `uint32_t` The remaining key lease time of a host/service in milliseconds. |
| `https://openthread.io/reference/struct/ot-srp-server-lease-info#structot_srp_server_lease_info_1ad90ff0b7b606fd6610f492c4ab11eb34` | `uint32_t` The remaining lease time of the host/service in milliseconds. |

## Public attributes

### mKeyLease

```
uint32_t otSrpServerLeaseInfo::mKeyLease
```
The key lease time of a host/service in milliseconds.

### mLease

```
uint32_t otSrpServerLeaseInfo::mLease
```
The lease time of a host/service in milliseconds.

### mRemainingKeyLease

```
uint32_t otSrpServerLeaseInfo::mRemainingKeyLease
```
The remaining key lease time of a host/service in milliseconds.

### mRemainingLease

```
uint32_t otSrpServerLeaseInfo::mRemainingLease
```
The remaining lease time of the host/service in milliseconds.

## 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).