Cosmos DB icon

Cosmos DB

Cosmos DB Node - Upsert documents to Azure Cosmos DB

Database → Get Many

AI-generated

Summary

Retrieve a list of databases from your Azure Cosmos DB account, optionally limiting the number of returned databases and simplifying the output shape.

Inputs

  • Authentication Type (required) — Choose the authentication method for connecting to Cosmos DB: either using the master key or Microsoft Entra ID (Azure AD OAuth2).
  • Return All (required) — Set to true to return all databases or false to limit the number returned.
  • Limit — When 'Return All' is false, sets the maximum number of databases to return; minimum value is 1.
  • Simplify Output (required) — Choose whether to return a simplified response containing only common fields (like database id) or the full database resource object.
  • Use Dev Override (Custom Endpoint + Token) — Optionally bypass OAuth and use a manually supplied Cosmos DB account endpoint URL and bearer token (for development environments).
  • Custom Endpoint — The Cosmos DB account endpoint URL to use if 'Use Dev Override' is enabled.
  • Custom Access Token — A bearer token scoped to Cosmos DB for authentication if 'Use Dev Override' is enabled.

Output shape

a list of database objects

The output is an array of databases keyed by their JSON representation. If 'Simplify Output' is true, each item contains only the database 'id' field. If 'Return All' is false, the list is limited to the specified number. Errors in retrieving databases result in node execution errors or error outputs if 'continueOnFail' is enabled.

Examples

Example 1: Fetch all databases with simplified output using master key authentication

Authentication Type set to 'Master Key', Return All set to true, Simplify Output enabled

Example 2: Fetch up to 10 databases with full details using Microsoft Entra ID authentication

Authentication Type set to 'Microsoft Entra ID (Azure AD)', Return All set to false, Limit set to 10, Simplify Output disabled

Example 3: Fetch databases using custom endpoint and token (dev override)

Use Dev Override enabled with Custom Endpoint and Custom Access Token set

Links

Discussion