Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getPluggableDatabase
Explore with Pulumi AI
This data source provides details about a specific Pluggable Database resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified pluggable database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPluggableDatabase = oci.Database.getPluggableDatabase({
    pluggableDatabaseId: testPluggableDatabaseOciDatabasePluggableDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_pluggable_database = oci.Database.get_pluggable_database(pluggable_database_id=test_pluggable_database_oci_database_pluggable_database["id"])
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.GetPluggableDatabase(ctx, &database.GetPluggableDatabaseArgs{
			PluggableDatabaseId: testPluggableDatabaseOciDatabasePluggableDatabase.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 testPluggableDatabase = Oci.Database.GetPluggableDatabase.Invoke(new()
    {
        PluggableDatabaseId = testPluggableDatabaseOciDatabasePluggableDatabase.Id,
    });
});
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.GetPluggableDatabaseArgs;
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 testPluggableDatabase = DatabaseFunctions.getPluggableDatabase(GetPluggableDatabaseArgs.builder()
            .pluggableDatabaseId(testPluggableDatabaseOciDatabasePluggableDatabase.id())
            .build());
    }
}
variables:
  testPluggableDatabase:
    fn::invoke:
      function: oci:Database:getPluggableDatabase
      arguments:
        pluggableDatabaseId: ${testPluggableDatabaseOciDatabasePluggableDatabase.id}
Using getPluggableDatabase
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 getPluggableDatabase(args: GetPluggableDatabaseArgs, opts?: InvokeOptions): Promise<GetPluggableDatabaseResult>
function getPluggableDatabaseOutput(args: GetPluggableDatabaseOutputArgs, opts?: InvokeOptions): Output<GetPluggableDatabaseResult>def get_pluggable_database(pluggable_database_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetPluggableDatabaseResult
def get_pluggable_database_output(pluggable_database_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetPluggableDatabaseResult]func LookupPluggableDatabase(ctx *Context, args *LookupPluggableDatabaseArgs, opts ...InvokeOption) (*LookupPluggableDatabaseResult, error)
func LookupPluggableDatabaseOutput(ctx *Context, args *LookupPluggableDatabaseOutputArgs, opts ...InvokeOption) LookupPluggableDatabaseResultOutput> Note: This function is named LookupPluggableDatabase in the Go SDK.
public static class GetPluggableDatabase 
{
    public static Task<GetPluggableDatabaseResult> InvokeAsync(GetPluggableDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetPluggableDatabaseResult> Invoke(GetPluggableDatabaseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPluggableDatabaseResult> getPluggableDatabase(GetPluggableDatabaseArgs args, InvokeOptions options)
public static Output<GetPluggableDatabaseResult> getPluggableDatabase(GetPluggableDatabaseArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getPluggableDatabase:getPluggableDatabase
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PluggableDatabase stringId 
- The database OCID.
- PluggableDatabase stringId 
- The database OCID.
- pluggableDatabase StringId 
- The database OCID.
- pluggableDatabase stringId 
- The database OCID.
- pluggable_database_ strid 
- The database OCID.
- pluggableDatabase StringId 
- The database OCID.
getPluggableDatabase Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- ConnectionStrings List<GetPluggable Database Connection String> 
- Connection strings to connect to an Oracle Pluggable Database.
- ContainerDatabase stringAdmin Password 
- ContainerDatabase stringId 
- The OCID of the CDB.
- ConvertTo intRegular Trigger 
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Dictionary<string, string>
- 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 string
- The OCID of the pluggable database.
- IsRestricted bool
- The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.
- KmsKey stringVersion Id 
- LifecycleDetails string
- Detailed message for the lifecycle state.
- OpenMode string
- The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).
- PdbAdmin stringPassword 
- PdbCreation List<GetType Details Pluggable Database Pdb Creation Type Detail> 
- PdbName string
- The name for the pluggable database (PDB). The name is unique in the context of a container database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.
- PdbNode List<GetLevel Details Pluggable Database Pdb Node Level Detail> 
- Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- PluggableDatabase stringId 
- PluggableDatabase List<GetManagement Configs Pluggable Database Pluggable Database Management Config> 
- The configuration of the Pluggable Database Management service.
- RefreshTrigger int
- RefreshableClone List<GetConfigs Pluggable Database Refreshable Clone Config> 
- Pluggable Database Refreshable Clone Configuration.
- RotateKey intTrigger 
- ShouldCreate boolPdb Backup 
- ShouldPdb boolAdmin Account Be Locked 
- State string
- The current state of the pluggable database.
- TdeWallet stringPassword 
- TimeCreated string
- The date and time the pluggable database was created.
- CompartmentId string
- The OCID of the compartment.
- ConnectionStrings []GetPluggable Database Connection String 
- Connection strings to connect to an Oracle Pluggable Database.
- ContainerDatabase stringAdmin Password 
- ContainerDatabase stringId 
- The OCID of the CDB.
- ConvertTo intRegular Trigger 
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- map[string]string
- 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 string
- The OCID of the pluggable database.
- IsRestricted bool
- The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.
- KmsKey stringVersion Id 
- LifecycleDetails string
- Detailed message for the lifecycle state.
- OpenMode string
- The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).
- PdbAdmin stringPassword 
- PdbCreation []GetType Details Pluggable Database Pdb Creation Type Detail 
- PdbName string
- The name for the pluggable database (PDB). The name is unique in the context of a container database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.
- PdbNode []GetLevel Details Pluggable Database Pdb Node Level Detail 
- Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- PluggableDatabase stringId 
- PluggableDatabase []GetManagement Configs Pluggable Database Pluggable Database Management Config 
- The configuration of the Pluggable Database Management service.
- RefreshTrigger int
- RefreshableClone []GetConfigs Pluggable Database Refreshable Clone Config 
- Pluggable Database Refreshable Clone Configuration.
- RotateKey intTrigger 
- ShouldCreate boolPdb Backup 
- ShouldPdb boolAdmin Account Be Locked 
- State string
- The current state of the pluggable database.
- TdeWallet stringPassword 
- TimeCreated string
- The date and time the pluggable database was created.
- compartmentId String
- The OCID of the compartment.
- connectionStrings List<GetPluggable Connection String> 
- Connection strings to connect to an Oracle Pluggable Database.
- containerDatabase StringAdmin Password 
- containerDatabase StringId 
- The OCID of the CDB.
- convertTo IntegerRegular Trigger 
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String,String>
- 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 String
- The OCID of the pluggable database.
- isRestricted Boolean
- The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.
- kmsKey StringVersion Id 
- lifecycleDetails String
- Detailed message for the lifecycle state.
- openMode String
- The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).
- pdbAdmin StringPassword 
- pdbCreation List<GetType Details Pluggable Pdb Creation Type Detail> 
- pdbName String
- The name for the pluggable database (PDB). The name is unique in the context of a container database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.
- pdbNode List<GetLevel Details Pluggable Pdb Node Level Detail> 
- Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- pluggableDatabase StringId 
- pluggableDatabase List<GetManagement Configs Pluggable Pluggable Management Config> 
- The configuration of the Pluggable Database Management service.
- refreshTrigger Integer
- refreshableClone List<GetConfigs Pluggable Refreshable Clone Config> 
- Pluggable Database Refreshable Clone Configuration.
- rotateKey IntegerTrigger 
- shouldCreate BooleanPdb Backup 
- shouldPdb BooleanAdmin Account Be Locked 
- state String
- The current state of the pluggable database.
- tdeWallet StringPassword 
- timeCreated String
- The date and time the pluggable database was created.
- compartmentId string
- The OCID of the compartment.
- connectionStrings GetPluggable Database Connection String[] 
- Connection strings to connect to an Oracle Pluggable Database.
- containerDatabase stringAdmin Password 
- containerDatabase stringId 
- The OCID of the CDB.
- convertTo numberRegular Trigger 
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[key: string]: string}
- 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 string
- The OCID of the pluggable database.
- isRestricted boolean
- The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.
- kmsKey stringVersion Id 
- lifecycleDetails string
- Detailed message for the lifecycle state.
- openMode string
- The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).
- pdbAdmin stringPassword 
- pdbCreation GetType Details Pluggable Database Pdb Creation Type Detail[] 
- pdbName string
- The name for the pluggable database (PDB). The name is unique in the context of a container database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.
- pdbNode GetLevel Details Pluggable Database Pdb Node Level Detail[] 
- Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- pluggableDatabase stringId 
- pluggableDatabase GetManagement Configs Pluggable Database Pluggable Database Management Config[] 
- The configuration of the Pluggable Database Management service.
- refreshTrigger number
- refreshableClone GetConfigs Pluggable Database Refreshable Clone Config[] 
- Pluggable Database Refreshable Clone Configuration.
- rotateKey numberTrigger 
- shouldCreate booleanPdb Backup 
- shouldPdb booleanAdmin Account Be Locked 
- state string
- The current state of the pluggable database.
- tdeWallet stringPassword 
- timeCreated string
- The date and time the pluggable database was created.
- compartment_id str
- The OCID of the compartment.
- connection_strings Sequence[GetPluggable Database Connection String] 
- Connection strings to connect to an Oracle Pluggable Database.
- container_database_ stradmin_ password 
- container_database_ strid 
- The OCID of the CDB.
- convert_to_ intregular_ trigger 
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Mapping[str, str]
- 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 str
- The OCID of the pluggable database.
- is_restricted bool
- The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.
- kms_key_ strversion_ id 
- lifecycle_details str
- Detailed message for the lifecycle state.
- open_mode str
- The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).
- pdb_admin_ strpassword 
- pdb_creation_ Sequence[Gettype_ details Pluggable Database Pdb Creation Type Detail] 
- pdb_name str
- The name for the pluggable database (PDB). The name is unique in the context of a container database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.
- pdb_node_ Sequence[Getlevel_ details Pluggable Database Pdb Node Level Detail] 
- Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- pluggable_database_ strid 
- pluggable_database_ Sequence[Getmanagement_ configs Pluggable Database Pluggable Database Management Config] 
- The configuration of the Pluggable Database Management service.
- refresh_trigger int
- refreshable_clone_ Sequence[Getconfigs Pluggable Database Refreshable Clone Config] 
- Pluggable Database Refreshable Clone Configuration.
- rotate_key_ inttrigger 
- should_create_ boolpdb_ backup 
- should_pdb_ booladmin_ account_ be_ locked 
- state str
- The current state of the pluggable database.
- tde_wallet_ strpassword 
- time_created str
- The date and time the pluggable database was created.
- compartmentId String
- The OCID of the compartment.
- connectionStrings List<Property Map>
- Connection strings to connect to an Oracle Pluggable Database.
- containerDatabase StringAdmin Password 
- containerDatabase StringId 
- The OCID of the CDB.
- convertTo NumberRegular Trigger 
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String>
- 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 String
- The OCID of the pluggable database.
- isRestricted Boolean
- The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.
- kmsKey StringVersion Id 
- lifecycleDetails String
- Detailed message for the lifecycle state.
- openMode String
- The mode that pluggable database is in. Open mode can only be changed to READ_ONLY or MIGRATE directly from the backend (within the Oracle Database software).
- pdbAdmin StringPassword 
- pdbCreation List<Property Map>Type Details 
- pdbName String
- The name for the pluggable database (PDB). The name is unique in the context of a container database. The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name.
- pdbNode List<Property Map>Level Details 
- Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- pluggableDatabase StringId 
- pluggableDatabase List<Property Map>Management Configs 
- The configuration of the Pluggable Database Management service.
- refreshTrigger Number
- refreshableClone List<Property Map>Configs 
- Pluggable Database Refreshable Clone Configuration.
- rotateKey NumberTrigger 
- shouldCreate BooleanPdb Backup 
- shouldPdb BooleanAdmin Account Be Locked 
- state String
- The current state of the pluggable database.
- tdeWallet StringPassword 
- timeCreated String
- The date and time the pluggable database was created.
Supporting Types
GetPluggableDatabaseConnectionString    
- AllConnection Dictionary<string, string>Strings 
- All connection strings to use to connect to the pluggable database.
- PdbDefault string
- A host name-based PDB connection string.
- PdbIp stringDefault 
- An IP-based PDB connection string.
- AllConnection map[string]stringStrings 
- All connection strings to use to connect to the pluggable database.
- PdbDefault string
- A host name-based PDB connection string.
- PdbIp stringDefault 
- An IP-based PDB connection string.
- allConnection Map<String,String>Strings 
- All connection strings to use to connect to the pluggable database.
- pdbDefault String
- A host name-based PDB connection string.
- pdbIp StringDefault 
- An IP-based PDB connection string.
- allConnection {[key: string]: string}Strings 
- All connection strings to use to connect to the pluggable database.
- pdbDefault string
- A host name-based PDB connection string.
- pdbIp stringDefault 
- An IP-based PDB connection string.
- all_connection_ Mapping[str, str]strings 
- All connection strings to use to connect to the pluggable database.
- pdb_default str
- A host name-based PDB connection string.
- pdb_ip_ strdefault 
- An IP-based PDB connection string.
- allConnection Map<String>Strings 
- All connection strings to use to connect to the pluggable database.
- pdbDefault String
- A host name-based PDB connection string.
- pdbIp StringDefault 
- An IP-based PDB connection string.
GetPluggableDatabasePdbCreationTypeDetail      
- creationType String
- dblinkUser StringPassword 
- dblinkUsername String
- isThin BooleanClone 
- refreshableClone List<Property Map>Details 
- sourceContainer StringDatabase Admin Password 
- sourcePluggable StringDatabase Id 
GetPluggableDatabasePdbCreationTypeDetailRefreshableCloneDetail         
- IsRefreshable boolClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- IsRefreshable boolClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- isRefreshable BooleanClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- isRefreshable booleanClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- is_refreshable_ boolclone 
- Indicates whether the Pluggable Database is a refreshable clone.
- isRefreshable BooleanClone 
- Indicates whether the Pluggable Database is a refreshable clone.
GetPluggableDatabasePdbNodeLevelDetail      
GetPluggableDatabasePluggableDatabaseManagementConfig      
- ManagementStatus string
- The status of the Pluggable Database Management service.
- ManagementStatus string
- The status of the Pluggable Database Management service.
- managementStatus String
- The status of the Pluggable Database Management service.
- managementStatus string
- The status of the Pluggable Database Management service.
- management_status str
- The status of the Pluggable Database Management service.
- managementStatus String
- The status of the Pluggable Database Management service.
GetPluggableDatabaseRefreshableCloneConfig     
- IsRefreshable boolClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- IsRefreshable boolClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- isRefreshable BooleanClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- isRefreshable booleanClone 
- Indicates whether the Pluggable Database is a refreshable clone.
- is_refreshable_ boolclone 
- Indicates whether the Pluggable Database is a refreshable clone.
- isRefreshable BooleanClone 
- Indicates whether the Pluggable Database is a refreshable clone.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.