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

# MongoDB

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

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

Platform:

24.04

22.04

6/stable 265

```
juju deploy mongodb --channel 6/stable
```

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

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

## charms.mongodb.v0.mongodb\_vm\_legacy\_provider

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

    Fetch library

    ```
    charmcraft fetch-lib charms.mongodb.v0.mongodb_vm_legacy_provider
    ```

    [Download mongodb\_vm\_legacy\_provider.py](https://charmhub.io/mongodb/libraries/mongodb_vm_legacy_provider/download)
  + *Last updated* 03 May 2023
  + *Revision* Library version 0.4

In this class we manage legacy client database relations.

This class is modeled after the legacy machine charm relations, hence it disables auth and exposes
the expected relation data for legacy relations.

---

Index

* [class MongoDBLegacyProvider](https://charmhub.io/mongodb/libraries/mongodb_vm_legacy_provider#mongodblegacyprovider)
* + [def \_\_init\_\_(
    self,
    charm)](https://charmhub.io/mongodb/libraries/mongodb_vm_legacy_provider#mongodblegacyprovider-__init__)

#### class MongoDBLegacyProvider

Description

In this class we manage legacy client database relations. None

Methods

MongoDBLegacyProvider.
\_\_init\_\_(

*self*

,
charm
)

Description

Manager of MongoDB client relations. None
