Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DatabaseManagement.getManagedDatabaseOptimizerStatisticsCollectionOperation
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Managed Database Optimizer Statistics Collection Operation resource in Oracle Cloud Infrastructure Database Management service.
Gets a detailed report of the Optimizer Statistics Collection operation for the specified Managed Database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedDatabaseOptimizerStatisticsCollectionOperation = oci.DatabaseManagement.getManagedDatabaseOptimizerStatisticsCollectionOperation({
    managedDatabaseId: testManagedDatabase.id,
    optimizerStatisticsCollectionOperationId: testOptimizerStatisticsCollectionOperation.id,
});
import pulumi
import pulumi_oci as oci
test_managed_database_optimizer_statistics_collection_operation = oci.DatabaseManagement.get_managed_database_optimizer_statistics_collection_operation(managed_database_id=test_managed_database["id"],
    optimizer_statistics_collection_operation_id=test_optimizer_statistics_collection_operation["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DatabaseManagement.GetManagedDatabaseOptimizerStatisticsCollectionOperation(ctx, &databasemanagement.GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs{
			ManagedDatabaseId:                        testManagedDatabase.Id,
			OptimizerStatisticsCollectionOperationId: testOptimizerStatisticsCollectionOperation.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testManagedDatabaseOptimizerStatisticsCollectionOperation = Oci.DatabaseManagement.GetManagedDatabaseOptimizerStatisticsCollectionOperation.Invoke(new()
    {
        ManagedDatabaseId = testManagedDatabase.Id,
        OptimizerStatisticsCollectionOperationId = testOptimizerStatisticsCollectionOperation.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testManagedDatabaseOptimizerStatisticsCollectionOperation = DatabaseManagementFunctions.getManagedDatabaseOptimizerStatisticsCollectionOperation(GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs.builder()
            .managedDatabaseId(testManagedDatabase.id())
            .optimizerStatisticsCollectionOperationId(testOptimizerStatisticsCollectionOperation.id())
            .build());
    }
}
variables:
  testManagedDatabaseOptimizerStatisticsCollectionOperation:
    fn::invoke:
      Function: oci:DatabaseManagement:getManagedDatabaseOptimizerStatisticsCollectionOperation
      Arguments:
        managedDatabaseId: ${testManagedDatabase.id}
        optimizerStatisticsCollectionOperationId: ${testOptimizerStatisticsCollectionOperation.id}
Using getManagedDatabaseOptimizerStatisticsCollectionOperation
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagedDatabaseOptimizerStatisticsCollectionOperation(args: GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs, opts?: InvokeOptions): Promise<GetManagedDatabaseOptimizerStatisticsCollectionOperationResult>
function getManagedDatabaseOptimizerStatisticsCollectionOperationOutput(args: GetManagedDatabaseOptimizerStatisticsCollectionOperationOutputArgs, opts?: InvokeOptions): Output<GetManagedDatabaseOptimizerStatisticsCollectionOperationResult>def get_managed_database_optimizer_statistics_collection_operation(managed_database_id: Optional[str] = None,
                                                                   optimizer_statistics_collection_operation_id: Optional[float] = None,
                                                                   opts: Optional[InvokeOptions] = None) -> GetManagedDatabaseOptimizerStatisticsCollectionOperationResult
def get_managed_database_optimizer_statistics_collection_operation_output(managed_database_id: Optional[pulumi.Input[str]] = None,
                                                                   optimizer_statistics_collection_operation_id: Optional[pulumi.Input[float]] = None,
                                                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagedDatabaseOptimizerStatisticsCollectionOperationResult]func GetManagedDatabaseOptimizerStatisticsCollectionOperation(ctx *Context, args *GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs, opts ...InvokeOption) (*GetManagedDatabaseOptimizerStatisticsCollectionOperationResult, error)
func GetManagedDatabaseOptimizerStatisticsCollectionOperationOutput(ctx *Context, args *GetManagedDatabaseOptimizerStatisticsCollectionOperationOutputArgs, opts ...InvokeOption) GetManagedDatabaseOptimizerStatisticsCollectionOperationResultOutput> Note: This function is named GetManagedDatabaseOptimizerStatisticsCollectionOperation in the Go SDK.
public static class GetManagedDatabaseOptimizerStatisticsCollectionOperation 
{
    public static Task<GetManagedDatabaseOptimizerStatisticsCollectionOperationResult> InvokeAsync(GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedDatabaseOptimizerStatisticsCollectionOperationResult> Invoke(GetManagedDatabaseOptimizerStatisticsCollectionOperationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedDatabaseOptimizerStatisticsCollectionOperationResult> getManagedDatabaseOptimizerStatisticsCollectionOperation(GetManagedDatabaseOptimizerStatisticsCollectionOperationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:DatabaseManagement/getManagedDatabaseOptimizerStatisticsCollectionOperation:getManagedDatabaseOptimizerStatisticsCollectionOperation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Managed
Database stringId  - The OCID of the Managed Database.
 - Optimizer
Statistics doubleCollection Operation Id  - The ID of the Optimizer Statistics Collection operation.
 
- Managed
Database stringId  - The OCID of the Managed Database.
 - Optimizer
Statistics float64Collection Operation Id  - The ID of the Optimizer Statistics Collection operation.
 
- managed
Database StringId  - The OCID of the Managed Database.
 - optimizer
Statistics DoubleCollection Operation Id  - The ID of the Optimizer Statistics Collection operation.
 
- managed
Database stringId  - The OCID of the Managed Database.
 - optimizer
Statistics numberCollection Operation Id  - The ID of the Optimizer Statistics Collection operation.
 
- managed_
database_ strid  - The OCID of the Managed Database.
 - optimizer_
statistics_ floatcollection_ operation_ id  - The ID of the Optimizer Statistics Collection operation.
 
- managed
Database StringId  - The OCID of the Managed Database.
 - optimizer
Statistics NumberCollection Operation Id  - The ID of the Optimizer Statistics Collection operation.
 
getManagedDatabaseOptimizerStatisticsCollectionOperation Result
The following output properties are available:
- Completed
Count int - The number of objects for which statistics collection is completed.
 - Databases
List<Get
Managed Database Optimizer Statistics Collection Operation Database>  - The summary of the Managed Database resource.
 - Duration
In doubleSeconds  - The time it takes to complete the operation (in seconds).
 - End
Time string - The end time of the operation.
 - Failed
Count int - The number of objects for which statistics collection failed.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - In
Progress intCount  - The number of objects for which statistics collection is in progress.
 - Job
Name string - The name of the job.
 - Managed
Database stringId  - Operation
Name string - The name of the operation.
 - Optimizer
Statistics doubleCollection Operation Id  - Start
Time string - The start time of the operation.
 - Status string
 - The status of the Optimizer Statistics Collection task.
 - Target string
 - The name of the target object for which statistics are gathered.
 - Tasks
List<Get
Managed Database Optimizer Statistics Collection Operation Task>  - An array of Optimizer Statistics Collection task details.
 - Timed
Out intCount  - The number of objects for which statistics collection timed out.
 - Total
Objects intCount  - The total number of objects for which statistics is collected. This number is the sum of all the objects with various statuses: completed, inProgress, failed, and timedOut.
 
- Completed
Count int - The number of objects for which statistics collection is completed.
 - Databases
[]Get
Managed Database Optimizer Statistics Collection Operation Database  - The summary of the Managed Database resource.
 - Duration
In float64Seconds  - The time it takes to complete the operation (in seconds).
 - End
Time string - The end time of the operation.
 - Failed
Count int - The number of objects for which statistics collection failed.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - In
Progress intCount  - The number of objects for which statistics collection is in progress.
 - Job
Name string - The name of the job.
 - Managed
Database stringId  - Operation
Name string - The name of the operation.
 - Optimizer
Statistics float64Collection Operation Id  - Start
Time string - The start time of the operation.
 - Status string
 - The status of the Optimizer Statistics Collection task.
 - Target string
 - The name of the target object for which statistics are gathered.
 - Tasks
[]Get
Managed Database Optimizer Statistics Collection Operation Task  - An array of Optimizer Statistics Collection task details.
 - Timed
Out intCount  - The number of objects for which statistics collection timed out.
 - Total
Objects intCount  - The total number of objects for which statistics is collected. This number is the sum of all the objects with various statuses: completed, inProgress, failed, and timedOut.
 
- completed
Count Integer - The number of objects for which statistics collection is completed.
 - databases
List<Get
Managed Database Optimizer Statistics Collection Operation Database>  - The summary of the Managed Database resource.
 - duration
In DoubleSeconds  - The time it takes to complete the operation (in seconds).
 - end
Time String - The end time of the operation.
 - failed
Count Integer - The number of objects for which statistics collection failed.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - in
Progress IntegerCount  - The number of objects for which statistics collection is in progress.
 - job
Name String - The name of the job.
 - managed
Database StringId  - operation
Name String - The name of the operation.
 - optimizer
Statistics DoubleCollection Operation Id  - start
Time String - The start time of the operation.
 - status String
 - The status of the Optimizer Statistics Collection task.
 - target String
 - The name of the target object for which statistics are gathered.
 - tasks
List<Get
Managed Database Optimizer Statistics Collection Operation Task>  - An array of Optimizer Statistics Collection task details.
 - timed
Out IntegerCount  - The number of objects for which statistics collection timed out.
 - total
Objects IntegerCount  - The total number of objects for which statistics is collected. This number is the sum of all the objects with various statuses: completed, inProgress, failed, and timedOut.
 
- completed
Count number - The number of objects for which statistics collection is completed.
 - databases
Get
Managed Database Optimizer Statistics Collection Operation Database[]  - The summary of the Managed Database resource.
 - duration
In numberSeconds  - The time it takes to complete the operation (in seconds).
 - end
Time string - The end time of the operation.
 - failed
Count number - The number of objects for which statistics collection failed.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - in
Progress numberCount  - The number of objects for which statistics collection is in progress.
 - job
Name string - The name of the job.
 - managed
Database stringId  - operation
Name string - The name of the operation.
 - optimizer
Statistics numberCollection Operation Id  - start
Time string - The start time of the operation.
 - status string
 - The status of the Optimizer Statistics Collection task.
 - target string
 - The name of the target object for which statistics are gathered.
 - tasks
Get
Managed Database Optimizer Statistics Collection Operation Task[]  - An array of Optimizer Statistics Collection task details.
 - timed
Out numberCount  - The number of objects for which statistics collection timed out.
 - total
Objects numberCount  - The total number of objects for which statistics is collected. This number is the sum of all the objects with various statuses: completed, inProgress, failed, and timedOut.
 
- completed_
count int - The number of objects for which statistics collection is completed.
 - databases
Sequence[databasemanagement.
Get Managed Database Optimizer Statistics Collection Operation Database]  - The summary of the Managed Database resource.
 - duration_
in_ floatseconds  - The time it takes to complete the operation (in seconds).
 - end_
time str - The end time of the operation.
 - failed_
count int - The number of objects for which statistics collection failed.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - in_
progress_ intcount  - The number of objects for which statistics collection is in progress.
 - job_
name str - The name of the job.
 - managed_
database_ strid  - operation_
name str - The name of the operation.
 - optimizer_
statistics_ floatcollection_ operation_ id  - start_
time str - The start time of the operation.
 - status str
 - The status of the Optimizer Statistics Collection task.
 - target str
 - The name of the target object for which statistics are gathered.
 - tasks
Sequence[databasemanagement.
Get Managed Database Optimizer Statistics Collection Operation Task]  - An array of Optimizer Statistics Collection task details.
 - timed_
out_ intcount  - The number of objects for which statistics collection timed out.
 - total_
objects_ intcount  - The total number of objects for which statistics is collected. This number is the sum of all the objects with various statuses: completed, inProgress, failed, and timedOut.
 
- completed
Count Number - The number of objects for which statistics collection is completed.
 - databases List<Property Map>
 - The summary of the Managed Database resource.
 - duration
In NumberSeconds  - The time it takes to complete the operation (in seconds).
 - end
Time String - The end time of the operation.
 - failed
Count Number - The number of objects for which statistics collection failed.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - in
Progress NumberCount  - The number of objects for which statistics collection is in progress.
 - job
Name String - The name of the job.
 - managed
Database StringId  - operation
Name String - The name of the operation.
 - optimizer
Statistics NumberCollection Operation Id  - start
Time String - The start time of the operation.
 - status String
 - The status of the Optimizer Statistics Collection task.
 - target String
 - The name of the target object for which statistics are gathered.
 - tasks List<Property Map>
 - An array of Optimizer Statistics Collection task details.
 - timed
Out NumberCount  - The number of objects for which statistics collection timed out.
 - total
Objects NumberCount  - The total number of objects for which statistics is collected. This number is the sum of all the objects with various statuses: completed, inProgress, failed, and timedOut.
 
Supporting Types
GetManagedDatabaseOptimizerStatisticsCollectionOperationDatabase       
- Compartment
Id string - The OCID of the compartment in which the Managed Database resides.
 - Db
Deployment stringType  - The infrastructure used to deploy the Oracle Database.
 - Db
Sub stringType  - The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
 - Db
Type string - The type of Oracle Database installation.
 - Db
Version string - The version of the Oracle Database.
 - Id string
 - The ID of the operation.
 - Name string
 - The name of the Managed Database.
 
- Compartment
Id string - The OCID of the compartment in which the Managed Database resides.
 - Db
Deployment stringType  - The infrastructure used to deploy the Oracle Database.
 - Db
Sub stringType  - The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
 - Db
Type string - The type of Oracle Database installation.
 - Db
Version string - The version of the Oracle Database.
 - Id string
 - The ID of the operation.
 - Name string
 - The name of the Managed Database.
 
- compartment
Id String - The OCID of the compartment in which the Managed Database resides.
 - db
Deployment StringType  - The infrastructure used to deploy the Oracle Database.
 - db
Sub StringType  - The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
 - db
Type String - The type of Oracle Database installation.
 - db
Version String - The version of the Oracle Database.
 - id String
 - The ID of the operation.
 - name String
 - The name of the Managed Database.
 
- compartment
Id string - The OCID of the compartment in which the Managed Database resides.
 - db
Deployment stringType  - The infrastructure used to deploy the Oracle Database.
 - db
Sub stringType  - The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
 - db
Type string - The type of Oracle Database installation.
 - db
Version string - The version of the Oracle Database.
 - id string
 - The ID of the operation.
 - name string
 - The name of the Managed Database.
 
- compartment_
id str - The OCID of the compartment in which the Managed Database resides.
 - db_
deployment_ strtype  - The infrastructure used to deploy the Oracle Database.
 - db_
sub_ strtype  - The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
 - db_
type str - The type of Oracle Database installation.
 - db_
version str - The version of the Oracle Database.
 - id str
 - The ID of the operation.
 - name str
 - The name of the Managed Database.
 
- compartment
Id String - The OCID of the compartment in which the Managed Database resides.
 - db
Deployment StringType  - The infrastructure used to deploy the Oracle Database.
 - db
Sub StringType  - The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
 - db
Type String - The type of Oracle Database installation.
 - db
Version String - The version of the Oracle Database.
 - id String
 - The ID of the operation.
 - name String
 - The name of the Managed Database.
 
GetManagedDatabaseOptimizerStatisticsCollectionOperationTask       
- Status string
 - The status of the Optimizer Statistics Collection task.
 - Target string
 - The name of the target object for which statistics are gathered.
 - Target
Type string - The type of target object.
 - Time
End string - The end time of the Optimizer Statistics Collection task.
 - Time
Start string - The start time of the Optimizer Statistics Collection task.
 
- Status string
 - The status of the Optimizer Statistics Collection task.
 - Target string
 - The name of the target object for which statistics are gathered.
 - Target
Type string - The type of target object.
 - Time
End string - The end time of the Optimizer Statistics Collection task.
 - Time
Start string - The start time of the Optimizer Statistics Collection task.
 
- status String
 - The status of the Optimizer Statistics Collection task.
 - target String
 - The name of the target object for which statistics are gathered.
 - target
Type String - The type of target object.
 - time
End String - The end time of the Optimizer Statistics Collection task.
 - time
Start String - The start time of the Optimizer Statistics Collection task.
 
- status string
 - The status of the Optimizer Statistics Collection task.
 - target string
 - The name of the target object for which statistics are gathered.
 - target
Type string - The type of target object.
 - time
End string - The end time of the Optimizer Statistics Collection task.
 - time
Start string - The start time of the Optimizer Statistics Collection task.
 
- status str
 - The status of the Optimizer Statistics Collection task.
 - target str
 - The name of the target object for which statistics are gathered.
 - target_
type str - The type of target object.
 - time_
end str - The end time of the Optimizer Statistics Collection task.
 - time_
start str - The start time of the Optimizer Statistics Collection task.
 
- status String
 - The status of the Optimizer Statistics Collection task.
 - target String
 - The name of the target object for which statistics are gathered.
 - target
Type String - The type of target object.
 - time
End String - The end time of the Optimizer Statistics Collection task.
 - time
Start String - The start time of the Optimizer Statistics Collection task.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider. 
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi