Microsoft SQL Server Databases API

The Databases API from Microsoft SQL Server — 11 operation(s) for databases.

GitHub OpenAPI

Operations 14

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 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases List databases on a server · Databases list by server #
Ask an LLM
“What databases exist on my SQL server?”
“Can I page through every database on one server?”
Tell an agent
List databases on server {serverName}.
Show all databases across server {serverName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} Get a database · Databases get #
Ask an LLM
“How do I read the properties of one database?”
“Can I include child resources when fetching a database?”
Tell an agent
Get database {databaseName} on server {serverName}.
Show database {databaseName} on server {serverName} with {expand} expanded.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} Create or replace a database · Databases create or update #
Ask an LLM
“How do I create a new database on a server?”
“Can I change a database's SKU when creating it?”
Tell an agent
Create database {databaseName} on server {serverName}.
Create database {databaseName} on server {serverName} with SKU {sku}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} Update an existing database · Databases update #
Ask an LLM
“Can I change an existing database's SKU or tags?”
“How do I patch an existing database's properties?”
Tell an agent
Update the SKU of existing database {databaseName} on server {serverName} to {sku}.
Patch existing database {databaseName} on server {serverName} with tags {tags}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName} Delete a database · Databases delete #
Ask an LLM
“How do I delete a database from a server?”
“Is deleting a database permanent?”
Tell an agent destructive · confirm first
Delete database {databaseName} from server {serverName}.
Drop the {databaseName} database on server {serverName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export Export a database to blob storage · Databases export #
Ask an LLM
“How do I export a database to a storage account?”
“Can I export a database using a managed identity?”
Tell an agent
Export database {databaseName} from server {serverName} to storage {storageUri} with key {storageKey}.
Export database {databaseName} on server {serverName} using administrator login {administratorLogin}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover Fail over a database · Databases failover #
Ask an LLM
“How do I fail over a database to its replica?”
“Can I fail over a specific replica type?”
Tell an agent
Fail over database {databaseName} on server {serverName}.
Fail over database {databaseName} on server {serverName} to replica type {replicaType}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import Import a bacpac into a database · Databases import #
Ask an LLM
“How do I import a bacpac file into a new database?”
“Can I import a bacpac using a managed identity?”
Tell an agent
Import bacpac {storageUri} into database {databaseName} on server {serverName} with key {storageKey}.
Import bacpac {storageUri} into database {databaseName} on server {serverName} using administrator login {administratorLogin}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move Rename a database · Databases rename #
Ask an LLM
“How do I rename an existing database?”
“Can I move a database to a different resource ID?”
Tell an agent
Rename database {databaseName} on server {serverName} to {newId}.
Move existing database {databaseName} on server {serverName} to resource ID {newId}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause Pause a database · Databases pause #
Ask an LLM
“How do I pause a database to save money?”
“Can I pause a paused database?”
Tell an agent
Pause database {databaseName} on server {serverName}.
Put database {databaseName} on server {serverName} into paused state.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume Resume a paused database · Databases resume #
Ask an LLM
“How do I resume a paused database?”
“Can I resume a database that is already running?”
Tell an agent
Resume database {databaseName} on server {serverName}.
Unpause database {databaseName} on server {serverName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse Upgrade a data warehouse database · Databases upgrade data warehouse #
Ask an LLM
“How do I upgrade a data warehouse database?”
“Can I upgrade a data warehouse to a newer version?”
Tell an agent
Upgrade data warehouse database {databaseName} on server {serverName}.
Upgrade the data warehouse {databaseName} on server {serverName} to the latest version.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases List databases in an elastic pool · Databases list by elastic pool #
Ask an LLM
“Which databases are in a given elastic pool?”
“Can I list only the databases of one elastic pool?”
Tell an agent
List databases in elastic pool {elasticPoolName} on server {serverName}.
Show the databases assigned to pool {elasticPoolName} on server {serverName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases List databases a server cannot access · Databases list inaccessible by server #
Ask an LLM
“Which databases on my server are inaccessible?”
“Can I see databases that a server can't reach?”
Tell an agent
List inaccessible databases on server {serverName}.
Show databases server {serverName} cannot access.

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-sql-server:microsoft-sql-server-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-sql-server-databases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SqlManagementClient Databases API
  version: '2025-01-01'
  description: The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:


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