Skip to main content

Azure Cosmos DB Connector

Azure Cosmos DB Manage databases, collections, and documents within Azure Cosmos DB.

Connections

Master Key

Azure Cosmos DB Master Key

To authenticate this component using your Cosmos DB Core (SQL) API master key:

  1. Navigate to Azure Portal.
  2. Find your Cosmos DB account.
  3. In the left menu, under Settings, select Keys.
  4. Copy the Primary Key or Secondary Key.

You will also need the Cosmos DB account name (subdomain). For example, if your endpoint is: https://your-cosmos-account.documents.azure.com:443/

Then your account name is: your-cosmos-account

Use these values to configure the component connection.

InputCommentsDefault
EndpointYour Azure Cosmos DB account endpoint URL.
Master KeyYour Azure Cosmos DB account master key. You can find this in the Azure Cosmos DB account settings.

Actions

Create Collection

Create a new collection in a database

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.
Partition Key PathThe path used as the partition key when creating the collection, e.g., /category.
Throughput (RU/s)The provisioned throughput for the collection in Request Units per second. Note: Serverless collections do not support setting throughput.

Create Database

Create a new database in Cosmos DB

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.

Create Document

Create a new document in a collection

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.
DocumentThe document as JSON string.
Partition Key ValueThe value of the partition key for the document (required for partitioned collections).

Delete Collection

Delete a collection from a database

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.

Delete Database

Delete a database from Cosmos DB

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.

Delete Document

Delete a document from a collection

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.
Document IDThe ID of the document.
Partition Key ValueThe value of the partition key for the document (required for partitioned collections).
ETagThe ETag value for optimistic concurrency control.

Get Collection

Get a specific collection by ID

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.

Get Database

Get a specific database by ID

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.

Get Document

Get a specific document by ID

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.
Document IDThe ID of the document.
Partition Key ValueThe value of the partition key for the document (required for partitioned collections).

List Collections

List all collections in a database

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.

List Databases

List all databases in the Cosmos DB account

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.

List Documents

List all documents in a collection

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.
Max Item CountMaximum number of items to return.
Continuation TokenToken for pagination to get the next set of results.
Fetch AllIf enabled, retrieves all documents by automatically fetching every page of results. This overrides 'Max Item Count' and ignores any 'Continuation Token'.false

Update Document

Update an existing document in a collection

InputCommentsDefault
ConnectionAzure Cosmos DB connection configured with endpoint URL and access key.
Database IDThe ID of the database.
Collection IDThe ID of the collection.
Document IDThe ID of the document.
DocumentThe document as JSON string.
Partition Key ValueThe value of the partition key for the document (required for partitioned collections).
ETagThe ETag value for optimistic concurrency control.