---
name: "mongoc_client_get_server_description"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_get_server_description"
---

# mongoc\_client\_get\_server\_description(3)

## SYNOPSIS

```
mongoc_server_description_t *
mongoc_client_get_server_description (
   mongoc_client_t *client, uint32_t server_id);
```

Get information about the server specified by **server\_id**.

## PARAMETERS

- •

  **client**: A *mongoc\_client\_t*.

- •

  **server\_id**: An opaque id specifying the server.

## RETURNS

A *mongoc\_server\_description\_t* that must be freed with *mongoc\_server\_description\_destroy()*. If the server is no longer in the topology, returns NULL.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
