Supported actions
Prerequisites
- An Azure Cosmos DB for NoSQL account and its endpoint.
- An account key or resource token with access to the databases, containers, and operations used by the tools.
Set up the integration
1
Prepare the Cosmos DB connection
Have the account endpoint and account key or resource token ready. If you want actions to use profile defaults, also identify the database, container, and partition key.
2
Create the auth profile
In Integrations, select Azure Cosmos DB > Connect. On Project Auth Profiles, select New Profile > Integration Profile > Azure Cosmos DB > Continue. Configure the endpoint and key. Select Account Key or Resource Token for the token type; Account Key is the default. You can also set default database, container, and partition key values. For a resource token, you can optionally enter its expiry as an ISO timestamp for operator visibility. Select Create Profile.
3
Create the action tool
In Tools, select New Tool > Action > Azure Cosmos DB > Continue. Select the action and auth profile, configure its inputs, and select Create Tool. Then assign the tool to an agent.
Action reference
Database and container action inputs are optional when you set them in the auth profile. Read Item, Replace Item, Patch Item, and Delete Item also need a partition key from the action or profile. Create Item and Upsert Item use the partition-key field in the item.List Databases
List Databases
List Containers
List Containers
Query Items
Query Items
Read Item
Read Item
Create Item
Create Item
Upsert Item
Upsert Item
Replace Item
Replace Item
Patch Item
Patch Item
Delete Item
Delete Item