retention_period
Creates, updates, deletes, gets or lists a retention_period resource.
Overview
| Name | retention_period |
| Type | Resource |
| Id | sumologic.threat_intel.retention_period |
Fields
The following fields are returned by SELECT queries:
- get
Threat intel indicators store retention period.
| Name | Datatype | Description |
|---|---|---|
retention_period | integer (int64) | Retention period in days. (wire: retentionPeriod) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | region | Get the threat intel indicators store retention period in terms of days. | |
update | update | region, retention_period | Sets the threat intel indicators store retention period in terms of days. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | Sumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT) |
SELECT examples
- get
Get the threat intel indicators store retention period in terms of days.
SELECT
retention_period
FROM sumologic.threat_intel.retention_period
WHERE region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
;
UPDATE examples
- update
Sets the threat intel indicators store retention period in terms of days.
UPDATE sumologic.threat_intel.retention_period
SET
retention_period = {{ retention_period }}
WHERE
region = '{{ region }}' --required unless SUMOLOGIC_ENVIRONMENT is set
AND retention_period = '{{ retention_period }}' --required
RETURNING
retention_period;