Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getPluggableDatabase

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testPluggableDatabase = Output.Create(Oci.Database.GetPluggableDatabase.InvokeAsync(new Oci.Database.GetPluggableDatabaseArgs
        {
            PluggableDatabaseId = oci_database_pluggable_database.Test_pluggable_database.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: oci_database_pluggable_database.Test_pluggable_database.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_pluggable_database = oci.Database.get_pluggable_database(pluggable_database_id=oci_database_pluggable_database["test_pluggable_database"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testPluggableDatabase = oci.Database.getPluggableDatabase({
    pluggableDatabaseId: oci_database_pluggable_database.test_pluggable_database.id,
});

Coming soon!

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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Database/getPluggableDatabase:getPluggableDatabase
  Arguments:
    # Arguments dictionary

The following arguments are supported:

PluggableDatabaseId string

The database OCID.

PluggableDatabaseId string

The database OCID.

pluggableDatabaseId String

The database OCID.

pluggableDatabaseId string

The database OCID.

pluggable_database_id str

The database OCID.

pluggableDatabaseId String

The database OCID.

getPluggableDatabase Result

The following output properties are available:

CompartmentId string

The OCID of the compartment.

ConnectionStrings List<GetPluggableDatabaseConnectionString>

Connection strings to connect to an Oracle Pluggable Database.

ContainerDatabaseId string

The OCID of the CDB.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

FreeformTags Dictionary<string, object>

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.

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).

PdbAdminPassword string
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.

PluggableDatabaseId string
ShouldPdbAdminAccountBeLocked bool
State string

The current state of the pluggable database.

TdeWalletPassword string
TimeCreated string

The date and time the pluggable database was created.

CompartmentId string

The OCID of the compartment.

ConnectionStrings []GetPluggableDatabaseConnectionString

Connection strings to connect to an Oracle Pluggable Database.

ContainerDatabaseId string

The OCID of the CDB.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

FreeformTags map[string]interface{}

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.

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).

PdbAdminPassword string
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.

PluggableDatabaseId string
ShouldPdbAdminAccountBeLocked bool
State string

The current state of the pluggable database.

TdeWalletPassword string
TimeCreated string

The date and time the pluggable database was created.

compartmentId String

The OCID of the compartment.

connectionStrings List<GetPluggableConnectionString>

Connection strings to connect to an Oracle Pluggable Database.

containerDatabaseId String

The OCID of the CDB.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

freeformTags Map<String,Object>

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.

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).

pdbAdminPassword String
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.

pluggableDatabaseId String
shouldPdbAdminAccountBeLocked Boolean
state String

The current state of the pluggable database.

tdeWalletPassword String
timeCreated String

The date and time the pluggable database was created.

compartmentId string

The OCID of the compartment.

connectionStrings GetPluggableDatabaseConnectionString[]

Connection strings to connect to an Oracle Pluggable Database.

containerDatabaseId string

The OCID of the CDB.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

freeformTags {[key: string]: any}

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.

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).

pdbAdminPassword string
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.

pluggableDatabaseId string
shouldPdbAdminAccountBeLocked boolean
state string

The current state of the pluggable database.

tdeWalletPassword string
timeCreated string

The date and time the pluggable database was created.

compartment_id str

The OCID of the compartment.

connection_strings GetPluggableDatabaseConnectionString]

Connection strings to connect to an Oracle Pluggable Database.

container_database_id str

The OCID of the CDB.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

freeform_tags Mapping[str, Any]

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.

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_password str
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.

pluggable_database_id str
should_pdb_admin_account_be_locked bool
state str

The current state of the pluggable database.

tde_wallet_password str
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.

containerDatabaseId String

The OCID of the CDB.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

freeformTags Map<Any>

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.

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).

pdbAdminPassword String
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.

pluggableDatabaseId String
shouldPdbAdminAccountBeLocked Boolean
state String

The current state of the pluggable database.

tdeWalletPassword String
timeCreated String

The date and time the pluggable database was created.

Supporting Types

GetPluggableDatabaseConnectionString

AllConnectionStrings Dictionary<string, object>

All connection strings to use to connect to the pluggable database.

PdbDefault string

A host name-based PDB connection string.

PdbIpDefault string

An IP-based PDB connection string.

AllConnectionStrings map[string]interface{}

All connection strings to use to connect to the pluggable database.

PdbDefault string

A host name-based PDB connection string.

PdbIpDefault string

An IP-based PDB connection string.

allConnectionStrings Map<String,Object>

All connection strings to use to connect to the pluggable database.

pdbDefault String

A host name-based PDB connection string.

pdbIpDefault String

An IP-based PDB connection string.

allConnectionStrings {[key: string]: any}

All connection strings to use to connect to the pluggable database.

pdbDefault string

A host name-based PDB connection string.

pdbIpDefault string

An IP-based PDB connection string.

all_connection_strings Mapping[str, Any]

All connection strings to use to connect to the pluggable database.

pdb_default str

A host name-based PDB connection string.

pdb_ip_default str

An IP-based PDB connection string.

allConnectionStrings Map<Any>

All connection strings to use to connect to the pluggable database.

pdbDefault String

A host name-based PDB connection string.

pdbIpDefault String

An IP-based PDB connection string.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.