POST /v1/dataDeletionRules
Create a new data deletion rule to delete logs.
Servers
- https://api.au.sumologic.com/api/
- https://api.ca.sumologic.com/api/
- https://api.de.sumologic.com/api/
- https://api.eu.sumologic.com/api/
- https://api.fed.sumologic.com/api/
- https://api.jp.sumologic.com/api/
- https://api.kr.sumologic.com/api/
- https://api.in.sumologic.com/api/
- https://api.sumologic.com/api/
- https://api.us2.sumologic.com/api/
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
timezone |
String | No |
Timezone for the resolving timerange from startMillis,endMillis Default value: "UTC" |
ruleName |
String | Yes |
Name of the deletion rule. |
query |
String | Yes |
query to filter out the logs that need to be deleted. |
startMillis |
Integer | Yes |
Start time of the search as a number of milliseconds. |
endMillis |
Integer | Yes |
End time of the search as a number of milliseconds. |
ruleReason |
String | Yes |
Reason mentioning what data is being deleted and why. |
byReceiptTime |
Boolean | No |
Flag to order the search results in the order collector received it. This has the value Default value: false |
parsingMode |
String | No |
Define the parsing mode to scan the JSON format log messages. Possible values are:
Default value: "Manual" |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.