---
name: "mongoc_server_description_type"
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_server_description_type"
---

# mongoc\_server\_description\_type(3)

## SYNOPSIS

```
const char *
mongoc_server_description_type (const mongoc_server_description_t *description);
```

## PARAMETERS

- •

  **description**: A *mongoc\_server\_description\_t*.

## DESCRIPTION

This function returns a string, one of the server types defined in the Server Discovery And Monitoring Spec:

- •

  Standalone

- •

  Mongos

- •

  PossiblePrimary

- •

  LoadBalancer

- •

  RSPrimary

- •

  RSSecondary

- •

  RSArbiter

- •

  RSOther

- •

  RSGhost

- •

  Unknown

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
