Explore the comprehensive set of REST APIs for managing and interacting with Azure Database services. This documentation provides details on authentication, endpoints, request/response formats, and best practices for integrating Azure databases into your applications.
Manage your Azure SQL Database instances, including creation, deletion, scaling, and configuration.
List databases in a specific SQL Server.
Create or update a database.
Delete a database.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases?api-version=2022-05-01
Authorization: Bearer
Host: management.azure.com
Manage your Azure Cosmos DB accounts, databases, and containers. Supports various APIs like SQL (Core), MongoDB, Cassandra, Gremlin, and Table.
List all Cosmos DB accounts in a resource group.
Create a database within a Cosmos DB account.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/apis/default/databases?api-version=2021-05-15
Content-Type: application/json
Authorization: Bearer
Host: management.azure.com
{
"id": "myCosmosDbDatabase"
}
Provision, configure, and manage Azure Database for PostgreSQL servers and their configurations.
Create or update a PostgreSQL server.
Get details of a specific PostgreSQL database.
Manage Azure Database for MySQL servers, including creating, deleting, scaling, and configuring backups.
List MySQL servers in a resource group.
Create or update a firewall rule for a MySQL server.
These APIs allow you to interact with the data stored within your database instances. Usage of data plane APIs typically requires specific database credentials or connection strings.
Perform CRUD operations on documents within your Cosmos DB SQL API containers.
Create a new document.
201 Created
Retrieve a specific document.
200 OK
Replace an existing document.
200 OK
Delete a document.
204 No Content
POST https://mycosmosdbaccount.documents.azure.com/dbs/myDatabase/colls/myCollection/docs?&_sp=rid&...
x-ms-version: 2018-12-01
Authorization: type=master&ver=1.0&sig=
x-ms-date: Tue, 26 Mar 2024 10:00:00 GMT
Content-Type: application/json
Host: mycosmosdbaccount.documents.azure.com
{
"id": "myDocumentId"
}
While not a direct REST API in the same sense as management APIs, Azure SQL Database provides standard interfaces like ODBC and JDBC that allow applications to send SQL queries and retrieve results. SDKs abstract these protocols for common programming languages.
Most Azure Database APIs utilize Azure Active Directory (Azure AD) for authentication. Management plane operations require appropriate role-based access control (RBAC) permissions. Data plane operations may use Azure AD or database-specific authentication methods (e.g., master keys for Cosmos DB).
Microsoft.Sql, Microsoft.DocumentDB).For detailed API references, error codes, and SDK samples, please refer to the specific service documentation.