Azure Files Directories API

Directory operations within a share

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-directories-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 email required.

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

OpenAPI Specification

azure-file-storage-directories-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Azure Files FileREST Account Directories 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: Directories
  description: Directory operations within a share
paths:
  /{shareName}/{directoryPath}:
    parameters:
    - in: path
      name: shareName
      required: true
      schema:
        type: string
    - in: path
      name: directoryPath
      required: true
      schema:
        type: string
    - in: query
      name: restype
      required: true
      schema:
        type: string
        enum:
        - directory
    - 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 directory
      operationId: createDirectory
      tags:
      - Directories
      responses:
        '201':
          description: Directory created
      security:
      - sharedKey: []
      - entra: []
    get:
      summary: List files and directories or get directory properties
      operationId: listFilesAndDirectories
      tags:
      - Directories
      parameters:
      - in: query
        name: comp
        schema:
          type: string
          enum:
          - list
          - properties
          - metadata
      - in: query
        name: prefix
        schema:
          type: string
      - in: query
        name: marker
        schema:
          type: string
      - in: query
        name: maxresults
        schema:
          type: integer
      responses:
        '200':
          description: Listing or properties
          content:
            application/xml:
              schema:
                type: string
      security:
      - sharedKey: []
      - entra: []
    delete:
      summary: Delete a directory
      operationId: deleteDirectory
      tags:
      - Directories
      responses:
        '202':
          description: Deleted
      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