- [HTTP request](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.request_body)
- [Response body](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.FetchAvailableTargetFieldsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#body.aspect_1)
- [AvailableTargetField](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#AvailableTargetField)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#AvailableTargetField.SCHEMA_REPRESENTATION)
- [FieldType](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#FieldType)

**Full name**: projects.locations.instances.calculatedFieldDefinitions.fetchAvailableTargetFields

Searches for fields available to be used as a TargetFieldName for a new Calculated Field. This is a custom method because it returns a derived list of fields, not standard resource data.

### HTTP request

`GET https://{endpoint}/v1alpha/{parent}/calculatedFieldDefinitions:fetchAvailableTargetFields`

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 parent instance for the available target fields. Format: projects/{project}/locations/{location}/instances/{instance} |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. Sets the size of a page of target fields. |
| `pageToken` | `string` Optional. Allows the request to page through all available target fields. |
| `filter` | `string` Optional. Filter string. |
| `orderBy` | `string` Optional. Field to order by. |

### Request body

The request body must be empty.

### Response body

Response message for calculatedFieldDefinitions.fetchAvailableTargetFields.

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

| JSON representation |
|---|
| ``` { "availableTargetFields": [ { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#AvailableTargetField`) } ], "nextPageToken": string, "totalSize": integer } ``` |

| Fields ||
|---|---|
| `availableTargetFields[]` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#AvailableTargetField`)`` List of available target fields. |
| `nextPageToken` | `string` Tells the client how to request the next page of target fields. |
| `totalSize` | `integer` Tells the client how many target fields exist. Useful for calculating the total number of pages. |

### 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.calculatedFieldDefinitions.get`

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

## AvailableTargetField

Represents an available target field that can be used for a Calculated Field Definition.

| JSON representation |
|---|
| ``` { "fieldName": string, "expectedOutputType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions#OutputType`), "fieldType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#FieldType`) } ``` |

| Fields ||
|---|---|
| `fieldName` | `string` Output only. A user-friendly display name for the available target field (e.g., "Case Priority"). |
| `expectedOutputType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions#OutputType`)`` Output only. The expected data type of the field from the possible Output Types. |
| `fieldType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.calculatedFieldDefinitions/fetchAvailableTargetFields#FieldType`)`` Output only. The kind of field: "System" or "Custom". |

## FieldType

The kind of field: "System" or "Custom".

| Enums ||
|---|---|
| `FIELD_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `SYSTEM` | The field is a system field. |
| `CUSTOM` | The field is a custom field. |