- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- AvailableTargetField
- 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://chronicle.africa-south1.rep.googleapis.com/v1alpha/{parent}/calculatedFieldDefinitions:fetchAvailableTargetFields Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent instance for the available target fields. Format: projects/{project}/locations/{location}/instances/{instance} |
Query parameters
| Parameters | |
|---|---|
pageSize |
Optional. Sets the size of a page of target fields. |
pageToken |
Optional. Allows the request to page through all available target fields. |
filter |
Optional. Filter string. |
orderBy |
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 ( |
| Fields | |
|---|---|
availableTargetFields[] |
List of available target fields. |
nextPageToken |
Tells the client how to request the next page of target fields. |
totalSize |
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-platformhttps://www.googleapis.com/auth/chroniclehttps://www.googleapis.com/auth/chronicle.readonly
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
chronicle.calculatedFieldDefinitions.get
For more information, see the IAM documentation.
AvailableTargetField
Represents an available target field that can be used for a Calculated Field Definition.
| JSON representation |
|---|
{ "fieldName": string, "expectedOutputType": enum ( |
| Fields | |
|---|---|
fieldName |
Output only. A user-friendly display name for the available target field (e.g., "Case Priority"). |
expectedOutputType |
Output only. The expected data type of the field from the possible Output Types. |
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. |