Skip to Main Content
Status Delivered
Workspace * IBM Cloud Ideas
Created by Guest
Created on Nov 12, 2024

Reordering TCO Optimizer policy rules via API and Terraform

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