Azure Blob Storage API

By Abhishek Kumar
4 min read
Access scalable, durable cloud storage with the Azure Blob Storage API. Manage containers, blobs, and permissions. Supports REST APIs, webhooks, and rate limits.

Table of Contents

Microsoft Azure Storage provides massively scalable, durable, and highly available storage for data on the cloud and serves as the data storage solution for modern applications. Connect to Blob Storage to perform various operations such as create, update, get, and delete on blobs in your Azure Storage account.

API Overview

Azure Blob Storage is a cloud storage service that offers massively scalable, durable, and highly available storage for any type of unstructured data. It provides a simple and cost-effective way to store and retrieve data from anywhere in the world. Blob storage is highly durable, with data replication across multiple facilities to ensure data protection. It also offers flexible data access options, including REST APIs, SDKs, and command-line tools. Blob Storage is ideal for storing unstructured data such as images, videos, audio files, documents, and logs. It is also widely used for data backup, disaster recovery, and archiving.

Azure Blob Storage API Overview: The Azure Blob Storage API provides a comprehensive set of REST APIs for managing and accessing data in Blob Storage. The APIs cover all aspects of Blob Storage, including creating and managing containers, uploading and downloading blobs, setting permissions, and managing access policies. The APIs are well-documented and provide detailed examples and code samples. In addition to REST APIs, Blob Storage also supports webhooks, which allow you to receive notifications when specific events occur, such as when a blob is created or deleted. Blob Storage also imposes rate limits to prevent excessive usage and ensure the availability of the service for all users.

API Request Limits

Free

5000 requests per second

Standard

10000 requests per second

Premium

20000 requests per second

SDKs

APIs

Azure Blob Storage

Method: GET

Description: Gets the properties of the specified blob..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer/myblob

Parameters: timeout, request_id, blob-type, snapshot, versionid, if-modified-since, if-unmodified-since, if-match, if-none-match, if-range, range

Azure Blob Storage

Method: PUT

Description: Creates a new block blob or updates an existing block blob..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer/myblob

Parameters: timeout, cache-control, content-type, content-encoding, content-language, content-md5, content-disposition, blob-type, blob-sequence-number, if-modified-since, if-unmodified-since, if-match, if-none-match, lease-id, request_id_header

Azure Blob Storage

Method: POST

Description: Commits a new block to the specified blob..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer/myblob

Parameters: timeout, blockid, lease-id, request_id, content-type, content-length

Azure Blob Storage

Method: PUT

Description: Creates a new page blob or updates an existing page blob..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer/myblob

Parameters: timeout, cache-control, content-type, content-encoding, content-language, content-md5, content-disposition, blob-type, blob-sequence-number, if-modified-since, if-unmodified-since, if-match, if-none-match, lease-id, request_id_header

Azure Blob Storage

Method: GET

Description: Gets the list of blobs under the specified container..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer?restype=container

Parameters: timeout, prefix, delimiter, marker, maxresults, include, restype

Azure Blob Storage

Method: PUT

Description: Creates a new container..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer?restype=container

Parameters: timeout, metadata, lease-id, request_id, public_access

Azure Blob Storage

Method: GET

Description: Gets the properties of the specified container..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer?restype=container

Parameters: timeout, lease-id

Azure Blob Storage

Method: DELETE

Description: Deletes the specified container..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer?restype=container

Parameters: timeout, lease-id, request_id

Azure Blob Storage

Method: PUT

Description: Creates a new append blob or updates an existing append blob..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer/myblob

Parameters: timeout, cache-control, content-type, content-encoding, content-language, content-md5, content-disposition, blob-type, blob-sequence-number, if-modified-since, if-unmodified-since, if-match, if-none-match, lease-id, request_id_header

Azure Blob Storage

Method: GET

Description: Generates a shared access signature (SAS) for the blob..

Endpoint: https://myaccount.blob.core.windows.net/mycontainer/myblob?sv=2012-02-12

Parameters: sv, sr, st, se, sip, spr, sp, sig

FAQ

How do I authenticate to Azure Blob Storage?

You can authenticate to Azure Blob Storage using an Azure Active Directory (AAD) token or a Shared Key.

What are the rate limits for Azure Blob Storage?

The rate limits for Azure Blob Storage vary depending on the operation and the type of storage account. For more information, see Rate limits for Azure Storage.

What is a sandbox account?

A sandbox account is a type of storage account that allows you to test Azure Blob Storage features in a controlled environment.

What is a developer account?

A developer account is a type of storage account that provides free access to Azure Blob Storage for development purposes.

How can I create a blob in Azure Blob Storage?

You can create a blob in Azure Blob Storage using the Create Blob API.

Last Update: September 13, 2024