Updating an IoT Domain's Data Retention
Increase the number of days an Internet of Things (IoT) domain retains data.
- On the Domains list page, select the domain that you want to work with. If you need help finding the IoT domains list page or an IoT domain, see Listing IoT Domains.
- Select Increase next to the data type you want to edit, the options include raw data, historized data, rejected data, or raw command data. You can only increase the number of days. The default value is 16 days for raw data, rejected data, and raw command data, the default value for historized data is 30 days.
- Optional: To view the work request for an update, go to the domain, and then select the work request tab. Select the operation to view the work request details. For more information, see Getting a Work Request's Details.
Use the
oci iot domain change-data-retention-period
command and required parameters to update the data retention period for a domain. You can only increase the number of days. The default value is 16 days for raw data, rejected data, and raw command data, the default value for historized data is 30 days.Replace the<number-of-days>
with the number of days you want to retain data for, and replace the<data-type>
with the data type you want to update:- RAW_DATA
- HISTORIZED_DATA
- REJECTED_DATA
- RAW_COMMAND_DATA
oci iot domain change-data-retention-period --iot-domain-id <iot-domain-OCID> --type <data-type> --data-retention-period-in-days <number-of-days>
Example to change the number of days to 40 for raw data:
For a complete list of parameters and values for CLI commands, see CLI Command Reference.oci iot domain change-data-retention-period --iot-domain-id <iot-domain-OCID> --type RAW_DATA --data-retention-period-in-days 40
Run the ChangeIotDomainDataRetentionPeriod operation to update the data retention period for a domain.
You can only increase the number of days. The default value is 16 days for raw data, rejected data, and raw command data, the default value for historized data is 30 days.