- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Full name: projects.locations.instances.ontologyRecords.mappingRules.save
Save a mapping rule.
HTTP request
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent resource name. Format: projects/{project}/locations/{location}/instances/{instance}/ontologyRecords/{ontologyRecord} | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "securityEventFieldName": string, "transformationFunction": enum ( | 
| Fields | |
|---|---|
| securityEventFieldName | 
 Required. The name of the security event field. | 
| transformationFunction | 
 Required. The transformation function to apply. | 
| rawDataPrimaryFieldMatchTerm | 
 Required. The primary field match term in the raw data. | 
| rawDataPrimaryFieldComparisonType | 
 Required. The comparison type for the primary field. | 
| enrichmentFields[] | 
 Optional. Enrichment fields (if any). | 
| isArtifact | 
 Required. Indicates if this rule is for artifact extraction. | 
| extractionFunction | 
 Required. The extraction function to apply. | 
| mappingRuleId | 
 Required. Unique numeric ID for the MappingRule. | 
| ontologyConfigurationLevel | 
 Required. Ontology Configuration Level. | 
| targetFieldType | 
 Required. Target Field Type. | 
| transformationFunctionParam | 
 Optional. Parameters for the transformation function (if any). | 
| rawDataSecondaryFieldMatchTerm | 
 Optional. The secondary field match term in the raw data (optional). | 
| rawDataSecondaryFieldComparisonType | 
 Optional. The comparison type for the secondary field. | 
| rawDataThirdFieldMatchTerm | 
 Optional. The third field match term in the raw data (optional). | 
| rawDataThirdFieldComparisonType | 
 Optional. The comparison type for the third field. | 
| extractionFunctionParam | 
 Optional. Extraction function parameters (if any). | 
Response body
If successful, the response body is an empty JSON object.
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
- chronicle.mappingRules.update
For more information, see the IAM documentation.