Welcome to the comprehensive documentation for the Azure Storage Table API. This API allows you to store and query large amounts of structured, non-relational data.
Azure Table storage is a NoSQL key-attribute store that allows you to store large amounts of structured data. The Table service is ideal for applications that need a flexible schema and can scale massively. Data in Table storage is stored as collections of entities, where each entity is a set of properties. An entity is like a row, and a property is like a column.
The Azure Storage Table API provides a rich set of operations for managing your table data:
Operation | Description | HTTP Method | Endpoint |
---|---|---|---|
Create Table | Creates a new table in the storage account. | PUT |
/tables |
Query Tables | Queries for tables within the storage account. | GET |
/tables |
Delete Table | Deletes a specified table. | DELETE |
/tables('{table_name}') |
Operation | Description | HTTP Method | Endpoint |
---|---|---|---|
Insert Entity | Inserts a new entity into a table. | POST |
/{table_name} |
Query Entities | Queries for entities within a table. Supports filtering and projection. | GET |
/{table_name} |
Update Entity | Updates an existing entity. | PUT |
/{table_name}(PartitionKey='{pk}',RowKey='{rk}') |
Merge Entity | Updates an existing entity by merging properties. | MERGE |
/{table_name}(PartitionKey='{pk}',RowKey='{rk}') |
Delete Entity | Deletes a specified entity. | DELETE |
/{table_name}(PartitionKey='{pk}',RowKey='{rk}') |
Insert or Replace Entity | Inserts an entity if it doesn't exist, otherwise replaces it. | PUT with Prefer: return-content-no-entity |
/{table_name}(PartitionKey='{pk}',RowKey='{rk}') |
Insert or Merge Entity | Inserts an entity if it doesn't exist, otherwise merges properties. | MERGE with Prefer: return-content-no-entity |
/{table_name}(PartitionKey='{pk}',RowKey='{rk}') |
Querying entities is a fundamental part of using Table storage. You can specify filter expressions to retrieve specific entities. The query syntax is OData-like.
PartitionKey eq 'Tasks' and Status eq 'Open' and Priority ge 5
$filter
: Specifies the filter expression.$select
: Specifies which properties to return (projection).$top
: Limits the number of entities returned.$orderby
: Specifies the order of entities.Azure Table storage supports a variety of data types for properties, including:
Access to Azure Table storage is secured via Shared Key authentication or Azure Active Directory (Azure AD) integration. Ensure you follow best practices for managing access keys and permissions.