---
name: "mongoc_uri_get_replica_set"
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_uri_get_replica_set"
---

# mongoc\_uri\_get\_replica\_set(3)

## SYNOPSIS

```
const char *
mongoc_uri_get_replica_set (const mongoc_uri_t *uri);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

## DESCRIPTION

Fetches the **replicaSet** parameter of an URI.

## RETURNS

Returns a string which should not be modified or freed. Returns **NULL** if the **replicaSet** parameter was not provided to **uri**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
