1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDatabasePdbConversionHistoryEntries
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Database.getDatabasePdbConversionHistoryEntries

Explore with Pulumi AI

This data source provides the list of Database Pdb Conversion History Entries in Oracle Cloud Infrastructure Database service.

Gets the pluggable database conversion history for a specified database in a bare metal or virtual machine DB system.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDatabasePdbConversionHistoryEntries = oci.Database.getDatabasePdbConversionHistoryEntries({
    databaseId: testDatabase.id,
    pdbConversionAction: databasePdbConversionHistoryEntryPdbConversionAction,
    state: databasePdbConversionHistoryEntryState,
});
Copy
import pulumi
import pulumi_oci as oci

test_database_pdb_conversion_history_entries = oci.Database.get_database_pdb_conversion_history_entries(database_id=test_database["id"],
    pdb_conversion_action=database_pdb_conversion_history_entry_pdb_conversion_action,
    state=database_pdb_conversion_history_entry_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetDatabasePdbConversionHistoryEntries(ctx, &database.GetDatabasePdbConversionHistoryEntriesArgs{
			DatabaseId:          testDatabase.Id,
			PdbConversionAction: pulumi.StringRef(databasePdbConversionHistoryEntryPdbConversionAction),
			State:               pulumi.StringRef(databasePdbConversionHistoryEntryState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDatabasePdbConversionHistoryEntries = Oci.Database.GetDatabasePdbConversionHistoryEntries.Invoke(new()
    {
        DatabaseId = testDatabase.Id,
        PdbConversionAction = databasePdbConversionHistoryEntryPdbConversionAction,
        State = databasePdbConversionHistoryEntryState,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetDatabasePdbConversionHistoryEntriesArgs;
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 testDatabasePdbConversionHistoryEntries = DatabaseFunctions.getDatabasePdbConversionHistoryEntries(GetDatabasePdbConversionHistoryEntriesArgs.builder()
            .databaseId(testDatabase.id())
            .pdbConversionAction(databasePdbConversionHistoryEntryPdbConversionAction)
            .state(databasePdbConversionHistoryEntryState)
            .build());

    }
}
Copy
variables:
  testDatabasePdbConversionHistoryEntries:
    fn::invoke:
      function: oci:Database:getDatabasePdbConversionHistoryEntries
      arguments:
        databaseId: ${testDatabase.id}
        pdbConversionAction: ${databasePdbConversionHistoryEntryPdbConversionAction}
        state: ${databasePdbConversionHistoryEntryState}
Copy

Using getDatabasePdbConversionHistoryEntries

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 getDatabasePdbConversionHistoryEntries(args: GetDatabasePdbConversionHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetDatabasePdbConversionHistoryEntriesResult>
function getDatabasePdbConversionHistoryEntriesOutput(args: GetDatabasePdbConversionHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetDatabasePdbConversionHistoryEntriesResult>
Copy
def get_database_pdb_conversion_history_entries(database_id: Optional[str] = None,
                                                filters: Optional[Sequence[_database.GetDatabasePdbConversionHistoryEntriesFilter]] = None,
                                                pdb_conversion_action: Optional[str] = None,
                                                state: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetDatabasePdbConversionHistoryEntriesResult
def get_database_pdb_conversion_history_entries_output(database_id: Optional[pulumi.Input[str]] = None,
                                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDatabasePdbConversionHistoryEntriesFilterArgs]]]] = None,
                                                pdb_conversion_action: Optional[pulumi.Input[str]] = None,
                                                state: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetDatabasePdbConversionHistoryEntriesResult]
Copy
func GetDatabasePdbConversionHistoryEntries(ctx *Context, args *GetDatabasePdbConversionHistoryEntriesArgs, opts ...InvokeOption) (*GetDatabasePdbConversionHistoryEntriesResult, error)
func GetDatabasePdbConversionHistoryEntriesOutput(ctx *Context, args *GetDatabasePdbConversionHistoryEntriesOutputArgs, opts ...InvokeOption) GetDatabasePdbConversionHistoryEntriesResultOutput
Copy

> Note: This function is named GetDatabasePdbConversionHistoryEntries in the Go SDK.

public static class GetDatabasePdbConversionHistoryEntries 
{
    public static Task<GetDatabasePdbConversionHistoryEntriesResult> InvokeAsync(GetDatabasePdbConversionHistoryEntriesArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabasePdbConversionHistoryEntriesResult> Invoke(GetDatabasePdbConversionHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabasePdbConversionHistoryEntriesResult> getDatabasePdbConversionHistoryEntries(GetDatabasePdbConversionHistoryEntriesArgs args, InvokeOptions options)
public static Output<GetDatabasePdbConversionHistoryEntriesResult> getDatabasePdbConversionHistoryEntries(GetDatabasePdbConversionHistoryEntriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getDatabasePdbConversionHistoryEntries:getDatabasePdbConversionHistoryEntries
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DatabaseId This property is required. string
The database OCID.
Filters Changes to this property will trigger replacement. List<GetDatabasePdbConversionHistoryEntriesFilter>
PdbConversionAction string
A filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
State string
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
DatabaseId This property is required. string
The database OCID.
Filters Changes to this property will trigger replacement. []GetDatabasePdbConversionHistoryEntriesFilter
PdbConversionAction string
A filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
State string
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
databaseId This property is required. String
The database OCID.
filters Changes to this property will trigger replacement. List<GetPdbConversionHistoryEntriesFilter>
pdbConversionAction String
A filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
state String
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
databaseId This property is required. string
The database OCID.
filters Changes to this property will trigger replacement. GetDatabasePdbConversionHistoryEntriesFilter[]
pdbConversionAction string
A filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
state string
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
database_id This property is required. str
The database OCID.
filters Changes to this property will trigger replacement. Sequence[database.GetDatabasePdbConversionHistoryEntriesFilter]
pdb_conversion_action str
A filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
state str
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
databaseId This property is required. String
The database OCID.
filters Changes to this property will trigger replacement. List<Property Map>
pdbConversionAction String
A filter to return only the pluggable database conversion history entries that match the specified conversion action. For example, you can use this filter to return only entries for the precheck operation.
state String
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.

getDatabasePdbConversionHistoryEntries Result

The following output properties are available:

DatabaseId string
Id string
The provider-assigned unique ID for this managed resource.
PdbConversionHistoryEntries List<GetDatabasePdbConversionHistoryEntriesPdbConversionHistoryEntry>
The list of pdb_conversion_history_entries.
Filters List<GetDatabasePdbConversionHistoryEntriesFilter>
PdbConversionAction string
State string
Status of an operation performed during the conversion of a non-container database to a pluggable database.
DatabaseId string
Id string
The provider-assigned unique ID for this managed resource.
PdbConversionHistoryEntries []GetDatabasePdbConversionHistoryEntriesPdbConversionHistoryEntry
The list of pdb_conversion_history_entries.
Filters []GetDatabasePdbConversionHistoryEntriesFilter
PdbConversionAction string
State string
Status of an operation performed during the conversion of a non-container database to a pluggable database.
databaseId String
id String
The provider-assigned unique ID for this managed resource.
pdbConversionHistoryEntries List<GetPdbConversionHistoryEntriesPdbConversionHistoryEntry>
The list of pdb_conversion_history_entries.
filters List<GetPdbConversionHistoryEntriesFilter>
pdbConversionAction String
state String
Status of an operation performed during the conversion of a non-container database to a pluggable database.
databaseId string
id string
The provider-assigned unique ID for this managed resource.
pdbConversionHistoryEntries GetDatabasePdbConversionHistoryEntriesPdbConversionHistoryEntry[]
The list of pdb_conversion_history_entries.
filters GetDatabasePdbConversionHistoryEntriesFilter[]
pdbConversionAction string
state string
Status of an operation performed during the conversion of a non-container database to a pluggable database.
database_id str
id str
The provider-assigned unique ID for this managed resource.
pdb_conversion_history_entries Sequence[database.GetDatabasePdbConversionHistoryEntriesPdbConversionHistoryEntry]
The list of pdb_conversion_history_entries.
filters Sequence[database.GetDatabasePdbConversionHistoryEntriesFilter]
pdb_conversion_action str
state str
Status of an operation performed during the conversion of a non-container database to a pluggable database.
databaseId String
id String
The provider-assigned unique ID for this managed resource.
pdbConversionHistoryEntries List<Property Map>
The list of pdb_conversion_history_entries.
filters List<Property Map>
pdbConversionAction String
state String
Status of an operation performed during the conversion of a non-container database to a pluggable database.

Supporting Types

GetDatabasePdbConversionHistoryEntriesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetDatabasePdbConversionHistoryEntriesPdbConversionHistoryEntry

Action This property is required. string
The operations used to convert a non-container database to a pluggable database.

  • Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database.
  • Use CONVERT to convert a non-container database into a pluggable database.
  • Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
  • Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
AdditionalCdbParams This property is required. string
Additional container database parameter.
CdbName This property is required. string
The database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
Id This property is required. string
The OCID of the database conversion history.
LifecycleDetails This property is required. string
Additional information about the current lifecycle state for the conversion operation.
SourceDatabaseId This property is required. string
The OCID of the database.
State This property is required. string
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
Target This property is required. string
The target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database.

  • Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home.
TargetDatabaseId This property is required. string
The OCID of the database.
TimeEnded This property is required. string
The date and time when the database conversion operation ended.
TimeStarted This property is required. string
The date and time when the database conversion operation started.
Action This property is required. string
The operations used to convert a non-container database to a pluggable database.

  • Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database.
  • Use CONVERT to convert a non-container database into a pluggable database.
  • Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
  • Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
AdditionalCdbParams This property is required. string
Additional container database parameter.
CdbName This property is required. string
The database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
Id This property is required. string
The OCID of the database conversion history.
LifecycleDetails This property is required. string
Additional information about the current lifecycle state for the conversion operation.
SourceDatabaseId This property is required. string
The OCID of the database.
State This property is required. string
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
Target This property is required. string
The target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database.

  • Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home.
TargetDatabaseId This property is required. string
The OCID of the database.
TimeEnded This property is required. string
The date and time when the database conversion operation ended.
TimeStarted This property is required. string
The date and time when the database conversion operation started.
action This property is required. String
The operations used to convert a non-container database to a pluggable database.

  • Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database.
  • Use CONVERT to convert a non-container database into a pluggable database.
  • Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
  • Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
additionalCdbParams This property is required. String
Additional container database parameter.
cdbName This property is required. String
The database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
id This property is required. String
The OCID of the database conversion history.
lifecycleDetails This property is required. String
Additional information about the current lifecycle state for the conversion operation.
sourceDatabaseId This property is required. String
The OCID of the database.
state This property is required. String
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
target This property is required. String
The target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database.

  • Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home.
targetDatabaseId This property is required. String
The OCID of the database.
timeEnded This property is required. String
The date and time when the database conversion operation ended.
timeStarted This property is required. String
The date and time when the database conversion operation started.
action This property is required. string
The operations used to convert a non-container database to a pluggable database.

  • Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database.
  • Use CONVERT to convert a non-container database into a pluggable database.
  • Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
  • Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
additionalCdbParams This property is required. string
Additional container database parameter.
cdbName This property is required. string
The database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
id This property is required. string
The OCID of the database conversion history.
lifecycleDetails This property is required. string
Additional information about the current lifecycle state for the conversion operation.
sourceDatabaseId This property is required. string
The OCID of the database.
state This property is required. string
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
target This property is required. string
The target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database.

  • Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home.
targetDatabaseId This property is required. string
The OCID of the database.
timeEnded This property is required. string
The date and time when the database conversion operation ended.
timeStarted This property is required. string
The date and time when the database conversion operation started.
action This property is required. str
The operations used to convert a non-container database to a pluggable database.

  • Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database.
  • Use CONVERT to convert a non-container database into a pluggable database.
  • Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
  • Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
additional_cdb_params This property is required. str
Additional container database parameter.
cdb_name This property is required. str
The database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
id This property is required. str
The OCID of the database conversion history.
lifecycle_details This property is required. str
Additional information about the current lifecycle state for the conversion operation.
source_database_id This property is required. str
The OCID of the database.
state This property is required. str
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
target This property is required. str
The target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database.

  • Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home.
target_database_id This property is required. str
The OCID of the database.
time_ended This property is required. str
The date and time when the database conversion operation ended.
time_started This property is required. str
The date and time when the database conversion operation started.
action This property is required. String
The operations used to convert a non-container database to a pluggable database.

  • Use PRECHECK to run a pre-check operation on non-container database prior to converting it into a pluggable database.
  • Use CONVERT to convert a non-container database into a pluggable database.
  • Use SYNC if the non-container database was manually converted into a pluggable database using the dbcli command-line utility. Databases may need to be converted manually if the CONVERT action fails when converting a non-container database using the API.
  • Use SYNC_ROLLBACK if the conversion of a non-container database into a pluggable database was manually rolled back using the dbcli command line utility. Conversions may need to be manually rolled back if the CONVERT action fails when converting a non-container database using the API.
additionalCdbParams This property is required. String
Additional container database parameter.
cdbName This property is required. String
The database name. The name must begin with an alphabetic character and can contain a maximum of 8 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.
id This property is required. String
The OCID of the database conversion history.
lifecycleDetails This property is required. String
Additional information about the current lifecycle state for the conversion operation.
sourceDatabaseId This property is required. String
The OCID of the database.
state This property is required. String
A filter to return only the pluggable database conversion history entries that match the specified lifecycle state. For example, you can use this filter to return only entries in the "failed" lifecycle state.
target This property is required. String
The target container database of the pluggable database created by the database conversion operation. Currently, the database conversion operation only supports creating the pluggable database in a new container database.

  • Use NEW_DATABASE to specify that the pluggable database be created within a new container database in the same database home.
targetDatabaseId This property is required. String
The OCID of the database.
timeEnded This property is required. String
The date and time when the database conversion operation ended.
timeStarted This property is required. String
The date and time when the database conversion operation started.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.