# Method: projects.locations.storagePools.validateDirectoryService

- [HTTP request](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#body.aspect_1)
- [DirectoryServiceType](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#DirectoryServiceType)
- [Try it!](https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#try-it)

storagePools.validateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.

### HTTP request

`POST https://netapp.googleapis.com/v1alpha1/{name=projects/*/locations/*/storagePools/*}:validateDirectoryService`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Name of the storage pool |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "directoryServiceType": enum (`https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#DirectoryServiceType`) } ``` |

| Fields ||
|---|---|
| `directoryServiceType` | ``enum (`https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/v1alpha1/projects.locations.storagePools/validateDirectoryService#DirectoryServiceType`)`` Type of directory service policy attached to the storage pool. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/netapp/volumes/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:

- `netapp.storagePools.validateDirectoryService`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## DirectoryServiceType

Type of directory service

| Enums ||
|---|---|
| `DIRECTORY_SERVICE_TYPE_UNSPECIFIED` | Directory service type is not specified. |
| `ACTIVE_DIRECTORY` | Active directory policy attached to the storage pool. |