Data Source: oci_autoscaling_auto_scaling_configurations
This data source provides the list of Auto Scaling Configurations in Oracle Cloud Infrastructure Auto Scaling service.
Lists autoscaling configurations in the specifed compartment.
Example Usage
data "oci_autoscaling_auto_scaling_configurations" "test_auto_scaling_configurations" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.auto_scaling_configuration_display_name
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment.display_name
- (Optional) A filter to return only resources that match the given display name exactly.
Attributes Reference
The following attributes are exported:
auto_scaling_configurations
- The list of auto_scaling_configurations.
AutoScalingConfiguration Reference
The following attributes are exported:
auto_scaling_resources
- A resource that is managed by an autoscaling configuration. The only supported type is “instancePool.”Each instance pool can have one autoscaling configuration.
id
- The OCID of the resource that is managed by the autoscaling configuration.type
- The type of resource.
compartment_id
- The OCID of the compartment containing the autoscaling configuration.cool_down_in_seconds
- For threshold-based autoscaling policies, this value is the minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default. The cooldown period starts when the instance pool reaches the running state.For schedule-based autoscaling policies, this value is not used.
defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.freeform_tags
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:{"Department": "Finance"}
id
- The OCID of the autoscaling configuration.is_enabled
- Whether the autoscaling configuration is enabled.max_resource_count
- The maximum number of resources to scale out to.min_resource_count
- The minimum number of resources to scale in to.policies
- Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.capacity
- The capacity requirements of the autoscaling policy.initial
- For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the instance pool immediately after autoscaling is enabled. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.For a schedule-based autoscaling policy, this value is the target pool size to scale to when executing the schedule that’s defined in the autoscaling policy.
max
- For a threshold-based autoscaling policy, this value is the maximum number of instances the instance pool is allowed to increase to (scale out).For a schedule-based autoscaling policy, this value is not used.
min
- For a threshold-based autoscaling policy, this value is the minimum number of instances the instance pool is allowed to decrease to (scale in).For a schedule-based autoscaling policy, this value is not used.
display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.execution_schedule
- The schedule for executing the autoscaling policy.expression
- A cron expression that represents the time at which to execute the autoscaling policy.Cron expressions have this format:
<second> <minute> <hour> <day of month> <month> <day of week> <year>
You can use special characters that are supported with the Quartz cron implementation.
You must specify
0
as the value for seconds.Example:
0 15 10 ? * *
timezone
- The time zone for the execution schedule.type
- The type of execution schedule.
id
- The ID of the autoscaling policy that is assigned after creation.is_enabled
- Whether the autoscaling policy is enabled.policy_type
- The type of autoscaling policy.resource_action
- An action that can be executed against a resource.action
-action_type
- The type of resource action.
rules
-action
- The action to take when autoscaling is triggered.type
- The type of action to take.value
- To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.
display_name
- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.id
- ID of the condition that is assigned after creation.metric
- Metric and threshold details for triggering an autoscaling action.metric_type
-threshold
-operator
- The comparison operator to use. Options are greater than (GT
), greater than or equal to (GTE
), less than (LT
), and less than or equal to (LTE
).value
-
time_created
- The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z
time_created
- The date and time the autoscaling configuration was created, in the format defined by RFC3339. Example:2016-08-25T21:10:29.600Z