Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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 GetPluggableDatabase(ctx *Context, args *GetPluggableDatabaseArgs, opts ...InvokeOption) (*GetPluggableDatabaseResult, error)
func GetPluggableDatabaseOutput(ctx *Context, args *GetPluggableDatabaseOutputArgs, opts ...InvokeOption) GetPluggableDatabaseResultOutput
> Note: This function is named GetPluggableDatabase
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 dictionary
The following arguments are supported:
- Pluggable
Database Id This property is required. string - The database OCID.
- Pluggable
Database Id This property is required. string - The database OCID.
- pluggable
Database Id This property is required. String - The database OCID.
- pluggable
Database Id This property is required. string - The database OCID.
- pluggable_
database_ id This property is required. str - The database OCID.
- pluggable
Database Id This property is required. String - The database OCID.
getPluggableDatabase Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Connection
Strings List<GetPluggable Database Connection String> - Connection strings to connect to an Oracle Pluggable Database.
- Container
Database stringAdmin Password - Container
Database stringId - The OCID of the CDB.
- Convert
To 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.
- 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 stringVersion Id - Lifecycle
Details string - Detailed message for the lifecycle state.
- Open
Mode 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).
- Pdb
Admin stringPassword - Pdb
Creation List<GetType Details Pluggable Database Pdb Creation Type Detail> - Pdb
Name 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.
- Pdb
Node 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"}]
- Pluggable
Database stringId - Pluggable
Database List<GetManagement Configs Pluggable Database Pluggable Database Management Config> - The configuration of the Pluggable Database Management service.
- Refresh
Trigger int - Refreshable
Clone List<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 string
- The current state of the pluggable database.
- Tde
Wallet stringPassword - Time
Created string - The date and time the pluggable database was created.
- Compartment
Id string - The OCID of the compartment.
- Connection
Strings []GetPluggable Database Connection String - Connection strings to connect to an Oracle Pluggable Database.
- Container
Database stringAdmin Password - Container
Database stringId - The OCID of the CDB.
- Convert
To 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.
- 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 stringVersion Id - Lifecycle
Details string - Detailed message for the lifecycle state.
- Open
Mode 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).
- Pdb
Admin stringPassword - Pdb
Creation []GetType Details Pluggable Database Pdb Creation Type Detail - Pdb
Name 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.
- Pdb
Node []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 stringId - Pluggable
Database []GetManagement Configs Pluggable Database Pluggable Database Management Config - The configuration of the Pluggable Database Management service.
- Refresh
Trigger int - Refreshable
Clone []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 string
- The current state of the pluggable database.
- Tde
Wallet stringPassword - Time
Created string - The date and time the pluggable database was created.
- compartment
Id String - The OCID of the compartment.
- connection
Strings List<GetPluggable Connection String> - Connection strings to connect to an Oracle Pluggable Database.
- container
Database StringAdmin Password - container
Database StringId - The OCID of the CDB.
- convert
To 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.
- is
Restricted 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.
- kms
Key StringVersion Id - lifecycle
Details String - Detailed message for the lifecycle state.
- open
Mode 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).
- pdb
Admin StringPassword - pdb
Creation List<GetType Details Pluggable Pdb Creation Type Detail> - pdb
Name 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.
- pdb
Node List<GetLevel Details Pluggable Pdb Node Level Detail> - Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- pluggable
Database StringId - pluggable
Database List<GetManagement Configs Pluggable Pluggable Management Config> - The configuration of the Pluggable Database Management service.
- refresh
Trigger Integer - refreshable
Clone List<GetConfigs Pluggable Refreshable Clone Config> - Pluggable Database Refreshable Clone Configuration.
- rotate
Key IntegerTrigger - should
Create BooleanPdb Backup - should
Pdb BooleanAdmin Account Be Locked - state String
- The current state of the pluggable database.
- tde
Wallet StringPassword - time
Created String - The date and time the pluggable database was created.
- compartment
Id string - The OCID of the compartment.
- connection
Strings GetPluggable Database Connection String[] - Connection strings to connect to an Oracle Pluggable Database.
- container
Database stringAdmin Password - container
Database stringId - The OCID of the CDB.
- convert
To 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.
- is
Restricted 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.
- kms
Key stringVersion Id - lifecycle
Details string - Detailed message for the lifecycle state.
- open
Mode 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).
- pdb
Admin stringPassword - pdb
Creation GetType Details Pluggable Database Pdb Creation Type Detail[] - pdb
Name 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.
- pdb
Node 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 stringId - pluggable
Database GetManagement Configs Pluggable Database Pluggable Database Management Config[] - The configuration of the Pluggable Database Management service.
- refresh
Trigger number - refreshable
Clone GetConfigs Pluggable Database Refreshable Clone Config[] - Pluggable Database Refreshable Clone Configuration.
- rotate
Key numberTrigger - should
Create booleanPdb Backup - should
Pdb booleanAdmin Account Be Locked - state string
- The current state of the pluggable database.
- tde
Wallet stringPassword - time
Created string - The date and time the pluggable database was created.
- compartment_
id str - The OCID of the compartment.
- connection_
strings Sequence[database.Get Pluggable 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[database.type_ details Get 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[database.level_ details Get 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[database.management_ configs Get Pluggable Database Pluggable Database Management Config] - The configuration of the Pluggable Database Management service.
- refresh_
trigger int - refreshable_
clone_ Sequence[database.configs Get 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.
- compartment
Id String - The OCID of the compartment.
- connection
Strings List<Property Map> - Connection strings to connect to an Oracle Pluggable Database.
- container
Database StringAdmin Password - container
Database StringId - The OCID of the CDB.
- convert
To 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.
- is
Restricted 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.
- kms
Key StringVersion Id - lifecycle
Details String - Detailed message for the lifecycle state.
- open
Mode 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).
- pdb
Admin StringPassword - pdb
Creation List<Property Map>Type Details - pdb
Name 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.
- pdb
Node List<Property Map>Level Details - Pluggable Database Node Level Details. Example: [{"nodeName" : "node1", "openMode" : "READ_WRITE"}, {"nodeName" : "node2", "openMode" : "READ_ONLY"}]
- pluggable
Database StringId - pluggable
Database List<Property Map>Management Configs - The configuration of the Pluggable Database Management service.
- refresh
Trigger Number - refreshable
Clone List<Property Map>Configs - Pluggable Database Refreshable Clone Configuration.
- rotate
Key NumberTrigger - should
Create BooleanPdb Backup - should
Pdb BooleanAdmin Account Be Locked - state String
- The current state of the pluggable database.
- tde
Wallet StringPassword - time
Created String - The date and time the pluggable database was created.
Supporting Types
GetPluggableDatabaseConnectionString
- All
Connection Strings This property is required. Dictionary<string, string> - All connection strings to use to connect to the pluggable database.
- Pdb
Default This property is required. string - A host name-based PDB connection string.
- Pdb
Ip Default This property is required. string - An IP-based PDB connection string.
- All
Connection Strings This property is required. map[string]string - All connection strings to use to connect to the pluggable database.
- Pdb
Default This property is required. string - A host name-based PDB connection string.
- Pdb
Ip Default This property is required. string - An IP-based PDB connection string.
- all
Connection Strings This property is required. Map<String,String> - All connection strings to use to connect to the pluggable database.
- pdb
Default This property is required. String - A host name-based PDB connection string.
- pdb
Ip Default This property is required. String - An IP-based PDB connection string.
- all
Connection Strings This property is required. {[key: string]: string} - All connection strings to use to connect to the pluggable database.
- pdb
Default This property is required. string - A host name-based PDB connection string.
- pdb
Ip Default This property is required. string - An IP-based PDB connection string.
- all_
connection_ strings This property is required. Mapping[str, str] - All connection strings to use to connect to the pluggable database.
- pdb_
default This property is required. str - A host name-based PDB connection string.
- pdb_
ip_ default This property is required. str - An IP-based PDB connection string.
- all
Connection Strings This property is required. Map<String> - All connection strings to use to connect to the pluggable database.
- pdb
Default This property is required. String - A host name-based PDB connection string.
- pdb
Ip Default This property is required. String - An IP-based PDB connection string.
GetPluggableDatabasePdbCreationTypeDetail
- Creation
Type This property is required. string - Dblink
User Password This property is required. string - Dblink
Username This property is required. string - Is
Thin Clone This property is required. bool - Refreshable
Clone Details This property is required. List<GetPluggable Database Pdb Creation Type Detail Refreshable Clone Detail> - Source
Container Database Admin Password This property is required. string - Source
Pluggable Database Id This property is required. string
- Creation
Type This property is required. string - Dblink
User Password This property is required. string - Dblink
Username This property is required. string - Is
Thin Clone This property is required. bool - Refreshable
Clone Details This property is required. []GetPluggable Database Pdb Creation Type Detail Refreshable Clone Detail - Source
Container Database Admin Password This property is required. string - Source
Pluggable Database Id This property is required. string
- creation
Type This property is required. String - dblink
User Password This property is required. String - dblink
Username This property is required. String - is
Thin Clone This property is required. Boolean - refreshable
Clone Details This property is required. List<GetPluggable Pdb Creation Type Detail Refreshable Clone Detail> - source
Container Database Admin Password This property is required. String - source
Pluggable Database Id This property is required. String
- creation
Type This property is required. string - dblink
User Password This property is required. string - dblink
Username This property is required. string - is
Thin Clone This property is required. boolean - refreshable
Clone Details This property is required. GetPluggable Database Pdb Creation Type Detail Refreshable Clone Detail[] - source
Container Database Admin Password This property is required. string - source
Pluggable Database Id This property is required. string
- creation_
type This property is required. str - dblink_
user_ password This property is required. str - dblink_
username This property is required. str - is_
thin_ clone This property is required. bool - refreshable_
clone_ details This property is required. Sequence[database.Get Pluggable Database Pdb Creation Type Detail Refreshable Clone Detail] - source_
container_ database_ admin_ password This property is required. str - source_
pluggable_ database_ id This property is required. str
- creation
Type This property is required. String - dblink
User Password This property is required. String - dblink
Username This property is required. String - is
Thin Clone This property is required. Boolean - refreshable
Clone Details This property is required. List<Property Map> - source
Container Database Admin Password This property is required. String - source
Pluggable Database Id This property is required. String
GetPluggableDatabasePdbCreationTypeDetailRefreshableCloneDetail
- Is
Refreshable Clone This property is required. bool - Indicates whether the Pluggable Database is a refreshable clone.
- Is
Refreshable Clone This property is required. bool - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable Clone This property is required. Boolean - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable Clone This property is required. boolean - Indicates whether the Pluggable Database is a refreshable clone.
- is_
refreshable_ clone This property is required. bool - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable Clone This property is required. Boolean - Indicates whether the Pluggable Database is a refreshable clone.
GetPluggableDatabasePdbNodeLevelDetail
GetPluggableDatabasePluggableDatabaseManagementConfig
- Management
Status This property is required. string - The status of the Pluggable Database Management service.
- Management
Status This property is required. string - The status of the Pluggable Database Management service.
- management
Status This property is required. String - The status of the Pluggable Database Management service.
- management
Status This property is required. string - The status of the Pluggable Database Management service.
- management_
status This property is required. str - The status of the Pluggable Database Management service.
- management
Status This property is required. String - The status of the Pluggable Database Management service.
GetPluggableDatabaseRefreshableCloneConfig
- Is
Refreshable Clone This property is required. bool - Indicates whether the Pluggable Database is a refreshable clone.
- Is
Refreshable Clone This property is required. bool - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable Clone This property is required. Boolean - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable Clone This property is required. boolean - Indicates whether the Pluggable Database is a refreshable clone.
- is_
refreshable_ clone This property is required. bool - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable Clone This property is required. Boolean - 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
oci
Terraform Provider.