Data Source: oci_database_management_managed_database_optimizer_statistics_collection_operations

This data source provides the list of Managed Database Optimizer Statistics Collection Operations in Oracle Cloud Infrastructure Database Management service.

Lists the optimizer statistics (Auto and Manual) task operation summary for the specified Managed Database. The summary includes the details of each operation and the number of tasks grouped by status: Completed, In Progress, Failed, and so on. Optionally, you can specify a date-time range (of seven days) to obtain the list of operations that fall within the specified time range. If the date-time range is not specified, then the operations in the last seven days are listed. This API also enables the pagination of results and the opc-next-page response header indicates whether there is a next page. If you use the same header value in a consecutive request, the next page records are returned. To obtain the required results, you can apply the different types of filters supported by this API.

Example Usage

data "oci_database_management_managed_database_optimizer_statistics_collection_operations" "test_managed_database_optimizer_statistics_collection_operations" {
    #Required
    managed_database_id = oci_database_management_managed_database.test_managed_database.id

    #Optional
    end_time_less_than_or_equal_to = var.managed_database_optimizer_statistics_collection_operation_end_time_less_than_or_equal_to
    filter_by = var.managed_database_optimizer_statistics_collection_operation_filter_by
    start_time_greater_than_or_equal_to = var.managed_database_optimizer_statistics_collection_operation_start_time_greater_than_or_equal_to
    task_type = var.managed_database_optimizer_statistics_collection_operation_task_type
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

ManagedDatabaseOptimizerStatisticsCollectionOperation Reference

The following attributes are exported: