Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Database.getPluggableDatabase
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific 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/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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getPluggableDatabase:getPluggableDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Pluggable
Database stringId - The database OCID.
- Pluggable
Database stringId - The database OCID.
- pluggable
Database StringId - The database OCID.
- pluggable
Database stringId - The database OCID.
- pluggable_
database_ strid - The database OCID.
- pluggable
Database StringId - 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, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- 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 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]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- 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 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,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- 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.
- 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]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[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.
- 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.
- 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, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource 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_ 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<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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.
- 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.
- 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 Dictionary<string, object>Strings - All connection strings to use to connect to the pluggable database.
- Pdb
Default string - A host name-based PDB connection string.
- Pdb
Ip stringDefault - An IP-based PDB connection string.
- All
Connection map[string]interface{}Strings - All connection strings to use to connect to the pluggable database.
- Pdb
Default string - A host name-based PDB connection string.
- Pdb
Ip stringDefault - An IP-based PDB connection string.
- all
Connection Map<String,Object>Strings - All connection strings to use to connect to the pluggable database.
- pdb
Default String - A host name-based PDB connection string.
- pdb
Ip StringDefault - An IP-based PDB connection string.
- all
Connection {[key: string]: any}Strings - All connection strings to use to connect to the pluggable database.
- pdb
Default string - A host name-based PDB connection string.
- pdb
Ip stringDefault - An IP-based PDB connection string.
- all_
connection_ Mapping[str, Any]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.
- all
Connection Map<Any>Strings - All connection strings to use to connect to the pluggable database.
- pdb
Default String - A host name-based PDB connection string.
- pdb
Ip StringDefault - An IP-based PDB connection string.
GetPluggableDatabasePdbCreationTypeDetail
GetPluggableDatabasePdbCreationTypeDetailRefreshableCloneDetail
- Is
Refreshable boolClone - Indicates whether the Pluggable Database is a refreshable clone.
- Is
Refreshable boolClone - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable BooleanClone - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable booleanClone - Indicates whether the Pluggable Database is a refreshable clone.
- is_
refreshable_ boolclone - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable BooleanClone - Indicates whether the Pluggable Database is a refreshable clone.
GetPluggableDatabasePdbNodeLevelDetail
GetPluggableDatabasePluggableDatabaseManagementConfig
- Management
Status string - The status of the Pluggable Database Management service.
- Management
Status string - The status of the Pluggable Database Management service.
- management
Status String - The status of the Pluggable Database Management service.
- management
Status string - The status of the Pluggable Database Management service.
- management_
status str - The status of the Pluggable Database Management service.
- management
Status String - The status of the Pluggable Database Management service.
GetPluggableDatabaseRefreshableCloneConfig
- Is
Refreshable boolClone - Indicates whether the Pluggable Database is a refreshable clone.
- Is
Refreshable boolClone - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable BooleanClone - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable booleanClone - Indicates whether the Pluggable Database is a refreshable clone.
- is_
refreshable_ boolclone - Indicates whether the Pluggable Database is a refreshable clone.
- is
Refreshable 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi