Microsoft Dev Blogs

Introducing the Data API Preview in vCore-based Azure Cosmos DB for MongoDB

thumbnail

Table of Contents


What is the Data API

The Data API for vCore-based Azure Cosmos DB for MongoDB allows you to interact with your MongoDB data through simple HTTP requests, eliminating the need for traditional drivers or complex queries. It provides an easy way to perform basic data operations directly from your applications.


Example

To read active products from a products collection: This retrieves all documents from the products collection where the status is active, using a straightforward HTTP request.


Why the Data API Matters

The Data API simplifies interactions with Azure Cosmos DB for MongoDB by providing a direct HTTP-based method to access and manipulate data. It is essential for developers who prefer RESTful APIs over traditional database drivers. The Data API can be authenticated with the same MongoDB users used to access the database through the MongoDB drivers, ensuring consistency in roles and permissions.


Supporting you no matter which version you choose

Azure Cosmos DB for MongoDB supports a wide range of MongoDB versions, ranging from MongoDB 3.2 to the latest versions like 7.0. Whether you choose the vCore architecture or RU architecture, Azure Cosmos DB ensures seamless upgrades across versions.


How to Get Started

To access the preview of the Data API, please fill out the form to request access.


About Azure Cosmos DB

Azure Cosmos DB is a fully managed and serverless distributed database supporting open-source PostgreSQL, MongoDB, and Apache Cassandra. It offers SLA-backed speed and availability, automatic scalability, and is ideal for modern app development. Try Azure Cosmos DB for free here. Follow Azure Cosmos DB updates on X, YouTube, and LinkedIn.