cosmosdb_list_containers
List all containers in a Cosmos DB database by providing the account and database name. Returns a sorted JSON array of container names, supporting key-based or Azure credential authentication.
Instructions
List all containers in a Cosmos DB database.
Returns a sorted JSON array of container names. The account can be given as a short name or full endpoint URL.
key_env_var: name of the environment variable holding the Cosmos DB account key. If the variable is set, key-based auth is used; otherwise DefaultAzureCredential is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| database | Yes | ||
| key_env_var | No | AZURE_COSMOS_KEY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |