- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.BigQueryAccess.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#body.aspect_1)
- [BigQueryAccessRole](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#BigQueryAccessRole)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#BigQueryAccessRole.SCHEMA_REPRESENTATION)

**Full name**: projects.locations.instances.bigQueryAccess.provide

Provide BigQuery access for the given email.

### HTTP request

`POST https://{endpoint}/v1alpha/{parent}/bigQueryAccess:provide`

Where `{endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/chronicle/docs/reference/rest#rest_endpoints).

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The instance for which BigQuery access is being provisioned. Format: projects/{project}/locations/{location}/instances/{instance} |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "email": string } ``` |

| Fields ||
|---|---|
| `email` | `string` Required. Email to access BigQuery |

### Response body

BigQueryAccess resource.

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

| JSON representation |
|---|
| ``` { "name": string, "email": string, "roles": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#BigQueryAccessRole`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of BigQueryAccess. |
| `email` | `string` Output only. Email for which BigQuery access is updated. |
| `roles[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.bigQueryAccess/provide#BigQueryAccessRole`)`` Roles the email ID has. |

### Authorization scopes

Requires one of the following OAuth scopes:

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

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:

- `chronicle.bigQueryAccess.provide`

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

## BigQueryAccessRole

Information of a role.

| JSON representation |
|---|
| ``` { "name": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. name of the role. |