---
title: Charmhub | Deploy mongos using Charmhub - The Open Operator Collection
description: Deploy the latest version of mongos on any cloud.
url: https://charmhub.io/mongos/libraries/mongos_client_interface
---

# mongos

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

Platform:

24.04

22.04

8/stable 82

```
juju deploy mongos --channel 8/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

[Toggle side navigation](https://charmhub.io/mongos/libraries/mongos_client_interface#drawer)

## charms.mongos.v0.mongos\_client\_interface

* [*Docstrings*Docstrings](https://charmhub.io/mongos/libraries/mongos_client_interface)
  [*Code*Source code](https://charmhub.io/mongos/libraries/mongos_client_interface/source-code)
* + Download

    Fetch library

    ```
    charmcraft fetch-lib charms.mongos.v0.mongos_client_interface
    ```

    [Download mongos\_client\_interface.py](https://charmhub.io/mongos/libraries/mongos_client_interface/download)
  + *Last updated* 03 Oct 2024
  + *Revision* Library version 0.2

In this class, we manage relations between config-servers and shards.

This class handles the sharing of secrets between sharded components, adding shards, and removing
shards.

---

Index

* [class MongosProvider](https://charmhub.io/mongos/libraries/mongos_client_interface#mongosprovider)
* + [def \_\_init\_\_(
    self,
    charm,
    relation\_name)](https://charmhub.io/mongos/libraries/mongos_client_interface#mongosprovider-__init__)
* + [def remove\_connection\_info(
    self)](https://charmhub.io/mongos/libraries/mongos_client_interface#mongosprovider-remove_connection_info)
* + [def update\_connection\_info(
    self,
    config)](https://charmhub.io/mongos/libraries/mongos_client_interface#mongosprovider-update_connection_info)

#### class MongosProvider

Description

Manage relations between the mongos router and the application on the mongos side. None

Methods

MongosProvider.
\_\_init\_\_(

*self*

,
charm: CharmBase

,
relation\_name: str
)

Description

Constructor for MongosProvider object. None

MongosProvider.
remove\_connection\_info(

*self*
)

Description

Sends the URI to the related parent application None

MongosProvider.
update\_connection\_info(

*self*

,
config: MongoConfiguration
)

Description

Sends the URI to the related parent application None
