Microsoft Azure Databases API

Operations for managing Cosmos DB databases

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 29

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /dbs List databases in a Cosmos DB account · Microsoft Azure List Databases #
Ask an LLM
“Which databases exist in my Cosmos DB database account?”
“Can I page through the databases in my account with a continuation token?”
Tell an agent
List every database in my Cosmos DB account.
List up to {maxItems} databases in the database account.
POST /dbs Create a database in a Cosmos DB account · Microsoft Azure Create a Database #
Ask an LLM
“How do I create a new database in my Cosmos DB account through the REST API?”
“What do I have to supply to add a database to a database account?”
Tell an agent
Create a Cosmos DB database with id {id}.
Add a new database named {id} to my database account.
GET /dbs/{databaseId} Get a Cosmos DB database by ID · Microsoft Azure Get a Database #
Ask an LLM
“How can I look up one Cosmos DB database by its ID?”
“Does a database with a given ID exist in my database account?”
Tell an agent
Get the Cosmos DB database {databaseId}.
Show me the resource details for account database {databaseId}.
DELETE /dbs/{databaseId} Delete a Cosmos DB database and its contents · Microsoft Azure Delete a Database #
Ask an LLM
“What happens to containers and items when I delete a Cosmos DB database?”
“Can I remove a whole database from my database account in one call?”
Tell an agent destructive · confirm first
Delete the Cosmos DB database {databaseId} and everything in it.
Remove account database {databaseId}, including its containers and items.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/usages Get usage metrics for an Azure SQL database · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How much of its quotas is my Azure SQL database using?”
“Where can I see the usage figures for a single SQL database?”
Tell an agent
Show usages for SQL database {databaseName} on server {serverName}.
Get the database usage report for {databaseName} on SQL server {serverName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability Check if a Kusto database name is available · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Is a database name already taken in my Kusto cluster?”
“Can I validate a database name before creating it in Azure Data Explorer?”
Tell an agent
Check whether database name {name} of type {type} is free on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Validate that {name} is an unused database name in Kusto cluster {clusterName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases List databases in a Kusto cluster · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which databases are in my Azure Data Explorer cluster?”
“How do I list all databases of a Kusto cluster?”
Tell an agent
List all databases on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Show the databases in Data Explorer cluster {clusterName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName} Get a Kusto cluster database · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How can I read the settings of one database in my Kusto cluster?”
“What properties does a Data Explorer database return?”
Tell an agent
Get Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Show Data Explorer database {databaseName} from cluster {clusterName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName} Create or update a Kusto database · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a database inside an Azure Data Explorer cluster?”
“Can I set properties like retention when provisioning a Kusto database?”
Tell an agent
Create or update Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Provision Data Explorer database {databaseName} in cluster {clusterName} with properties {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName} Update a Kusto database's properties · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I change properties on an existing Kusto database without recreating it?”
“Can I patch the location or properties of a Data Explorer database?”
Tell an agent
Patch Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}) with properties {properties}.
Update existing Data Explorer database {databaseName} in cluster {clusterName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName} Delete a Kusto database · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I drop a database from my Azure Data Explorer cluster?”
“What is the call to remove a Kusto database by name?”
Tell an agent destructive · confirm first
Delete Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Drop Data Explorer database {databaseName} from cluster {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals List principals with access to a Kusto database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Who has permissions on my Kusto database?”
“Which users and apps are principals of a Data Explorer database?”
Tell an agent
List the principals of Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Show who has access to Data Explorer database {databaseName} in cluster {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals Grant principals access to a Kusto database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I give a user permissions on a Kusto database?”
“Can I add several principals to a Data Explorer database at once?”
Tell an agent
Add principals {principals} to Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Grant database permissions on {databaseName} in cluster {clusterName} to {principals}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals Revoke principals' access to a Kusto database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I take away someone's permissions on a Kusto database?”
“Can I remove principals from a Data Explorer database?”
Tell an agent destructive · confirm first
Remove principals {principals} from Kusto database {databaseName} on cluster {clusterName} (group {resourceGroupName}, subscription {subscriptionId}).
Revoke access for {principals} on Data Explorer database {databaseName} in cluster {clusterName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName} Create or update a MariaDB database · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a new database on an Azure Database for MariaDB server?”
“Can I change the charset of an existing MariaDB database?”
Tell an agent
Create or update MariaDB database {databaseName} on MariaDB server {serverName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Create database {databaseName} on MariaDB server {serverName} with properties {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName} Delete a MariaDB database · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I drop a database from my MariaDB server through the management API?”
“What removes a single database from an Azure MariaDB server?”
Tell an agent destructive · confirm first
Delete MariaDB database {databaseName} on MariaDB server {serverName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Drop database {databaseName} from MariaDB server {serverName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases/{databaseName} Get a database on a MariaDB server · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How can I see details of one database on my Azure Database for MariaDB server?”
“What charset and collation does a MariaDB database use?”
Tell an agent
Get MariaDB database {databaseName} on MariaDB server {serverName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Show information about database {databaseName} on MariaDB server {serverName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/databases List databases on a MariaDB server · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which databases are on my Azure Database for MariaDB server?”
“How do I list every database a MariaDB server hosts?”
Tell an agent
List all databases on MariaDB server {serverName} in resource group {resourceGroupName}, subscription {subscriptionId}.
Show the databases hosted by MariaDB server {serverName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases List databases in a Redis Enterprise cluster · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which databases are in my Azure Cache for Redis Enterprise cluster?”
“How do I enumerate the databases of a RedisEnterprise cluster?”
Tell an agent
List all databases in Redis Enterprise cluster {clusterName}.
Show every database of RedisEnterprise cluster {clusterName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Create a Redis Enterprise database · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add a database to a Redis Enterprise cluster?”
“Can I set clustering or eviction properties when creating a RedisEnterprise database?”
Tell an agent
Create Redis Enterprise database {databaseName} in cluster {clusterName}.
Create RedisEnterprise database {databaseName} on {clusterName} with properties {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Update a Redis Enterprise database · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I change settings on an existing Redis Enterprise database?”
“Can I patch properties of a RedisEnterprise database in place?”
Tell an agent
Update Redis Enterprise database {databaseName} in cluster {clusterName} with properties {properties}.
Patch existing RedisEnterprise database {databaseName} on {clusterName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Get a Redis Enterprise database · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How can I read the configuration of a Redis Enterprise database?”
“What does a RedisEnterprise database report about itself?”
Tell an agent
Get Redis Enterprise database {databaseName} in cluster {clusterName}.
Show details of RedisEnterprise database {databaseName} on {clusterName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Delete a Redis Enterprise database · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete one database from my Redis Enterprise cluster?”
“What removes a single RedisEnterprise database?”
Tell an agent destructive · confirm first
Delete Redis Enterprise database {databaseName} from cluster {clusterName}.
Remove RedisEnterprise database {databaseName} on {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys Get the access keys for a Redis Enterprise database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Where do I get the access keys to connect to my Redis Enterprise database?”
“Can I retrieve the primary and secondary keys of a RedisEnterprise database?”
Tell an agent
Get the access keys for Redis Enterprise database {databaseName} in cluster {clusterName}.
Retrieve connection keys of RedisEnterprise database {databaseName} on {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey Regenerate a Redis Enterprise database access key · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I rotate an access key on my Redis Enterprise database?”
“Can I regenerate just the primary or just the secondary key?”
Tell an agent
Regenerate the {keyType} access key of Redis Enterprise database {databaseName} in cluster {clusterName}.
Rotate the {keyType} key for RedisEnterprise database {databaseName} on {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import Import data files into a Redis Enterprise database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I load RDB files from blob storage into a Redis Enterprise database?”
“Can I import several database files at once using SAS URIs?”
Tell an agent
Import files {sasUris} into Redis Enterprise database {databaseName} in cluster {clusterName}.
Load the blobs at {sasUris} into RedisEnterprise database {databaseName} on {clusterName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export Export a Redis Enterprise database to storage · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I export my Redis Enterprise database to a storage container?”
“Can I dump a RedisEnterprise database to a SAS URI for backup?”
Tell an agent
Export Redis Enterprise database {databaseName} in cluster {clusterName} to {sasUri}.
Write a database file of RedisEnterprise database {databaseName} on {clusterName} to container {sasUri}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush Flush all keys from a Redis Enterprise database · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I wipe every key from my Redis Enterprise database?”
“Does flushing a RedisEnterprise database also clear its linked databases?”
Tell an agent destructive · confirm first
Flush all keys in Redis Enterprise database {databaseName} in cluster {clusterName}.
Flush RedisEnterprise database {databaseName} on {clusterName} and its linked databases {ids}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-databases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-databases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Cosmos DB REST Databases API
  description: Azure Cosmos DB is a globally distributed, multi-model database service that provides turnkey global distribution, elastic scaling of throughput and storage, single-digit millisecond latency at the 99th percentile, and guaranteed high availability, all backed by industry-leading SLAs. The REST API enables programmatic access to Cosmos DB resources for creating, querying, and managing databases, containers, items, stored procedures, triggers, and user-defined functions.
  version: '2018-12-31'
  contact:
    name: Microsoft Azure Support
    url: https://azure.microsoft.com/en-us/support/
    email: azuresupport@microsoft.com
  license:
    name: Microsoft API License
    url: https://learn.microsoft.com/en-us/legal/
  x-logo:
    url: https://azure.microsoft.com/svghandler/azure-logo.png
servers:
- url: https://{accountName}.documents.azure.com
  description: Azure Cosmos DB account endpoint
  variables:
    accountName:
      default: mycosmosaccount
      description: The name of the Azure Cosmos DB account.
security:
- masterKey: []
- resourceToken: []
tags:


# --- truncated at 32 KB (64 KB total) ---
# Full source: https://artifacts.apis.io/microsoft-azure/openapi/microsoft-azure-databases-api-openapi.yml