---
name: "mongoc_uri_get_srv_service_name"
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_srv_service_name"
---

# mongoc\_uri\_get\_srv\_service\_name(3)

## SYNOPSIS

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

## PARAMETERS

- •

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

## DESCRIPTION

Returns the SRV service name of a MongoDB URI.

## RETURNS

A string corresponding to the value of the srvServiceName URI option if present. Otherwise, the default value "mongodb".

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
