- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - Try it!
 
Full name: projects.locations.instances.ontologyRecords.mappingRules.test
Test a MappingRule.
HTTP request
Path parameters
| Parameters | |
|---|---|
name | 
                
                   
 Required. The resource name of the MappingRule to test. Format: projects/{project}/locations/{location}/instances/{instance}/ontologyRecords/{ontologyRecord}/mappingRules/{mappingRule}  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "rawDataFieldName": string, "rawDataFieldValue": string }  | 
                
| Fields | |
|---|---|
rawDataFieldName | 
                  
                     
 Required. The name of the field in the raw data.  | 
                
rawDataFieldValue | 
                  
                     
 Required. The value of the field in the raw data.  | 
                
Response body
Response message for mappingRules.test.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{ "result": [ string ] }  | 
                  
| Fields | |
|---|---|
result[] | 
                    
                       
 The result of the test.  | 
                  
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 name resource:
chronicle.mappingRules.get
For more information, see the IAM documentation.