Azure Files Files API

File operations

Operations 4

PUT /{shareName}/{filePath} Create a file, set properties/metadata, or put a range #
GET /{shareName}/{filePath} Download a file or get its properties #
DELETE /{shareName}/{filePath} Delete a file #
HEAD /{shareName}/{filePath} Get file properties #

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/azure-file-storage-files-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

azure-file-storage-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure FileREST Account Files API
  version: '2023-01-03'
  description: 'Data-plane HTTPS REST API for Azure Files. Operations are scoped to the

    storage account (`https://{account-name}.file.core.windows.net`), with sub-paths

    for shares, directories, and files. Many operations select a sub-resource via the

    `?comp=` and `?restype=` query parameters (Azure Storage convention).


    Authentication: Shared Key (`SharedKey` Authorization header), Shared Access

    Signature (SAS tokens appended as query parameters), or Microsoft Entra ID

    OAuth 2.0 bearer tokens.

    '
  contact:
    name: Azure Files FileREST API
    url: https://learn.microsoft.com/en-us/rest/api/storageservices/file-service-rest-api
servers:
- url: https://{account-name}.file.core.windows.net
  description: Azure Files storage account endpoint
  variables:
    account-name:
      default: myaccount
      description: Storage account name
tags:
- name: Files
  description: File operations
paths:
  /{shareName}/{filePath}:
    parameters:
    - in: path
      name: shareName
      required: true
      schema:
        type: string
    - in: path
      name: filePath
      required: true
      schema:
        type: string
    - in: header
      name: x-ms-version
      required: true
      schema:
        type: string
        default: '2023-01-03'
    - in: header
      name: x-ms-date
      required: true
      schema:
        type: string
    put:
      summary: Create a file, set properties/metadata, or put a range
      description: '- With `x-ms-type: file` and `x-ms-content-length`, creates an empty file.

        - With `?comp=range` and `x-ms-range`/`x-ms-write` headers, writes data into a range.

        - With `?comp=properties` or `?comp=metadata`, updates the file properties/metadata.

        '
      operationId: putFile
      tags:
      - Files
      parameters:
      - in: query
        name: comp
        schema:
          type: string
          enum:
          - range
          - properties
          - metadata
          - lease
      - in: header
        name: x-ms-type
        schema:
          type: string
          enum:
          - file
      - in: header
        name: x-ms-content-length
        schema:
          type: integer
      - in: header
        name: x-ms-range
        schema:
          type: string
      - in: header
        name: x-ms-write
        schema:
          type: string
          enum:
          - update
          - clear
      requestBody:
        required: false
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '201':
          description: Created
        '200':
          description: Updated
      security:
      - sharedKey: []
      - entra: []
    get:
      summary: Download a file or get its properties
      operationId: getFile
      tags:
      - Files
      parameters:
      - in: query
        name: comp
        schema:
          type: string
          enum:
          - metadata
          - rangelist
      - in: header
        name: x-ms-range
        schema:
          type: string
      responses:
        '200':
          description: File contents or properties
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '206':
          description: Partial file contents
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
      security:
      - sharedKey: []
      - entra: []
    delete:
      summary: Delete a file
      operationId: deleteFile
      tags:
      - Files
      responses:
        '202':
          description: Deleted
      security:
      - sharedKey: []
      - entra: []
    head:
      summary: Get file properties
      operationId: headFile
      tags:
      - Files
      responses:
        '200':
          description: Properties returned in headers
      security:
      - sharedKey: []
      - entra: []
components:
  securitySchemes:
    sharedKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Shared Key authorization header in the form `SharedKey {account}:{signature}`,

        where signature is an HMAC-SHA256 of the canonicalized request.

        See https://learn.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key

        '
    entra:
      type: oauth2
      description: Microsoft Entra ID OAuth 2.0 bearer token
      flows:
        clientCredentials:
          tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token
          scopes:
            https://storage.azure.com/.default: Azure Storage data plane access