---
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.

## Path parameters

- `subscriptionId` string, required
- `location` string, required

## Query parameters

- `api-version` string, required

## Request body

- ResourceNameAvailabilityRequest — Resource name availability request content.
  - `name` string, required — Resource name to verify.
  - `type` 'Microsoft.NetApp/netAppAccounts' | 'Microsoft.NetApp/netAppAccounts/capacityPools' | 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes' | 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots', required — Resource type used for verification.
  - `resourceGroup` string, required — Resource group name.

## Response `200`

OK

- ResourceNameAvailability — Information regarding availability of a resource name.
  - `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` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/microsoft-netapp.md) · [All operations](https://skmtc.net/azure/apis/microsoft-netapp/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/microsoft-netapp/versions/6c42cb757637/schema)
