AZURE

Cosmos DB actions

18 actions you can wire into a flow, alongside everything else in the Azure integration.

Every Cosmos DB action

  • Cosmos DB: Create ContainerCreate a container in a database: set the partition key path, and optionally an indexing policy, item TTL, unique keys, and provisioned throughput (manual RU/s or autoscale).
  • Cosmos DB: Create DatabaseCreate a database in the Cosmos DB account, optionally with shared provisioned throughput (manual RU/s or autoscale).
  • Cosmos DB: Create ItemCreate an item in a container. Strict by default: creating an id that already exists fails unless Upsert is enabled, which overwrites it instead.
  • Cosmos DB: Delete ContainerDelete a container from a database, including every item inside it. This cannot be undone.
  • Cosmos DB: Delete DatabaseDelete a database from the Cosmos DB account, including every container and item inside it. This cannot be undone.
  • Cosmos DB: Delete ItemDelete one item from a container by id. This cannot be undone.
  • Cosmos DB: Get ContainerRetrieve a container's definition: partition key, indexing policy, TTL, and unique keys.
  • Cosmos DB: Get DatabaseRetrieve a database's definition from the Cosmos DB account.
  • Cosmos DB: Get ItemRetrieve one item from a container by id: the cheapest possible read (a point read).
  • Cosmos DB: Get ThroughputRead a container's provisioned throughput: current manual RU/s or autoscale maximum. Containers on shared database throughput or serverless accounts have none.
  • Cosmos DB: List ContainersList the containers in a database.
  • Cosmos DB: List DatabasesList the databases in the Cosmos DB account.
  • Cosmos DB: List ItemsList the items in a container, across all partitions.
  • Cosmos DB: Patch ItemPartially update an item: change only the named paths (add/set/replace/remove/incr/move, up to 10 operations), leaving the rest of the item untouched.
  • Cosmos DB: Query ItemsRun a SQL query against a container, with named @parameters and pagination. Cross-partition by default; set Partition Key to scope to one partition.
  • Cosmos DB: Replace ContainerUpdate a container's indexing policy and/or default item TTL. The partition key cannot be changed after creation.
  • Cosmos DB: Replace ItemReplace an item's entire body: properties missing from the new body are REMOVED from the item. Use Patch Item for a partial update.
  • Cosmos DB: Update ThroughputChange a container's provisioned throughput: set a new manual RU/s value or a new autoscale maximum. Switching between manual and autoscale modes must be done in the Azure Portal.

Also in Azure

Put Cosmos DB in a flow

These actions sit on the same canvas as every other integration, so a Cosmos DB step can follow a form, a schedule or a message without any glue code.