# Method: projects.locations.validations.create

- [HTTP request](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.request_body)
- [Response body](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations/create#body.aspect_1)

Creates a new `Validation` dry run. This process involves analyzing the provided `Action` to identify all the Google Cloud resources that match the targeting criteria. You can view the results by listing the `ValidationResource` children of the `Validation` dry run. The `Validation` dry run starts in the `PREPARING` state and transitions to `COMPLETED` once the analysis is finished.

### HTTP request

`POST https://faulttesting.googleapis.com/v1alpha/{parent=projects/*/locations/*}/validations`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The project and location where this dry run will be created. Format: `projects/{projectId}/locations/{location}`. |

### Query parameters

| Parameters ||
|---|---|
| `validationId` | `string` Optional. The ID to use for the dry run, which will become the final component of the resource name. If not provided, a UUID will be generated. This value should be 4-63 characters, start with a letter or number, end with a letter or number, and contain only lowercase letters, numbers, and hyphens. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations#Validation`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/fault-injection-testing/reference/rest/v1alpha/projects.locations.validations#Validation`.

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

- `faulttesting.validations.create`

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