POST /config/event_sources/generated_regexes
Retrieves a regex pattern
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
fields |
header |
Optional |
String |
text/plain |
Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas. |
Parameter | Data Type | MIME Type | Description | Sample |
---|---|---|---|---|
payload |
Object |
application/json |
An event sample containing the data which you want the generated regular expression to capture, a leading anchor and trailing anchor. |
{ "payload_data": [ { "capture_groups": [ { "begin_index": 42, "end_index": 42 } ], "event_sample": "String" } ], "regex": "String" } |
HTTP Response Code | Unique Code | Description |
---|---|---|
200 |
The requested regex pattern was generated and returned successfully. |
|
422 |
10025 |
The system was unable to create a regular expression because of invalid indices. |
422 |
10026 |
The system was unable to create a regular expression because of an invalid beginning index. |
422 |
10027 |
null |
500 |
1020 |
The system was unable to confidently create a regular expression. |
Response Description
The generated regex pattern.
Response Sample
{
"payload_data": [
{
"capture_groups": [
{
"begin_index": 42,
"end_index": 42
}
],
"event_sample": "String"
}
],
"regex": "String"
}