# Method: projects.locations.storagePools.ontap.executeOntapPost

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

`ontap.executeOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster.

### HTTP request

`POST https://netapp.googleapis.com/v1/{ontapPath=projects/*/locations/*/storagePools/*/ontap/**}`

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

### Path parameters

| Parameters ||
|---|---|
| `ontapPath` | `string` Required. The resource path of the ONTAP resource. Format: `projects/{projectNumber}/locations/{locationId}/storagePools/{storagePoolId}/ontap/{ontap_resource_path}`. For example: `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "body": { object } } ``` |

| Fields ||
|---|---|
| `body` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` Required. The raw `JSON` body of the request. The body should be in the format of the ONTAP resource. For example: { "body": { "field1": "value1", "field2": "value2", } } |

### Response body

Response message for `ontap.executeOntapPost` API.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "body": { object } } ``` |

| Fields ||
|---|---|
| `body` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` The raw `JSON` body of the response. |

### 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 `ontapPath` resource:

- `netapp.ontap.post`

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