---
title: "Check file path availability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability"
---

# Check file path availability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkFilePathAvailability`

Check if a file path is available.

## Parameters

- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/LocationParameter` — unresolved $ref

## Request body

- FilePathAvailabilityRequest — File path availability request content - availability is based on the name and the subnetId.
  - `name` string, required — File path to verify.
  - `subnetId` string, required — The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/volumes
  - `availabilityZone` string, nullable — The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed.

## Response `200`

The request has succeeded.

- CheckAvailabilityResponse — Information regarding availability of a resource.
  - `isAvailable` boolean — <code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both.
  - `reason` 'Invalid' | 'AlreadyExists' — <code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.
  - `message` string — If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2017-08-15) `58798a3b3384` — 1 info
  - api tag `NetApp Resource` removed
- **2026-07-13** (2017-08-15) `324253b867c6` — 2 warning
  - deleted the `path` request parameter `location`
  - deleted the `path` request parameter `subscriptionId`
- **2026-07-13** (2017-08-15) `ee6a473a7d0e` — 1 warning
  - deleted the `query` request parameter `api-version`
- **2026-07-13** (2017-08-15) `2b0b495d0928` — 1 warning
  - deleted the `query` request parameter `api-version`
- **2026-07-13** (2017-08-15) `c5b4a2f7fa14` — 1 breaking
  - added the new required `query` request parameter `api-version`

[Full history](https://skmtc.dev/azure/apis/netapp-microsoft-netapp-netapp/changes/subscriptions/:subscriptionId/providers/Microsoft.NetApp/locations/:location/checkFilePathAvailability/post.md)

---

[API](https://skmtc.dev/azure/apis/netapp-microsoft-netapp-netapp.md) · [All operations](https://skmtc.dev/azure/apis/netapp-microsoft-netapp-netapp/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/netapp-microsoft-netapp-netapp/revisions/24fd9a8ea6bd/schema)
