Data Source: oci_database_scheduling_policies
This data source provides the list of Scheduling Policies in Oracle Cloud Infrastructure Database service.
Lists the Scheduling Policy resources in the specified compartment.
Example Usage
data "oci_database_scheduling_policies" "test_scheduling_policies" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.scheduling_policy_display_name
state = var.scheduling_policy_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The compartment OCID.display_name
- (Optional) A filter to return only resources that match the entire display name given. The match is not case sensitive.state
- (Optional) A filter to return only resources that match the given lifecycle state exactly.
Attributes Reference
The following attributes are exported:
scheduling_policies
- The list of scheduling_policies.
SchedulingPolicy Reference
The following attributes are exported:
cadence
- The cadence period.cadence_start_month
- Start of the month to be followed during the cadence period.name
- Name of the month of the year.
compartment_id
- The OCID of the compartment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.display_name
- The user-friendly name for the Scheduling Policy. The name does not need to be unique.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 Scheduling Policy.lifecycle_details
- Additional information about the current lifecycle state.state
- The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.time_created
- The date and time the Scheduling Policy was created.time_next_window_starts
- The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.time_updated
- The last date and time that the Scheduling Policy was updated.