Cloud Logs TCO Optimizer policy rules cannot be reordered in Terraform.
I know that reordering is possible from the GUI (Menu > TCO Optimizer > Policy Criteria).
For users who use Terraform for automated setup, this is very inconvenient because it requires additional configuration in the GUI.
As a use case, Cloud Logs logs are set to HIGH by default. Some users may want to set MIDIUM as the default. In this case, you can set the target to ALL in the policy rule, but it is expected that some logs will be set to HIGH. In this case, the new rule is added with the lowest priority, so it needs to be reordered to take precedence over the rule specified as ALL.
The related Order parameter changes after configuration, so it is difficult for users to specify it arbitrarily. We have an idea to enable reordering. A method to specify the previous and next policy rule IDs and reorder accordingly.
I think the reason this cannot be implemented in Terraform at this stage is because there is no API that allows reordering. Please consider an API for sorting.
| Idea priority | Low |
| Needed By | Quarter |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
Hi, while reviewing this idea we realize that we have since added a feature to the product that should solve your need. Please review these instruction: ttps://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-tco-optimizer-ordering&interface=terraform