oci.Database.getDbHome
Explore with Pulumi AI
This data source provides details about a specific Db Home resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified Database Home.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDbHome = Oci.Database.GetDbHome.Invoke(new()
{
DbHomeId = @var.Db_home_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.GetDbHome(ctx, &database.GetDbHomeArgs{
DbHomeId: _var.Db_home_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetDbHomeArgs;
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 testDbHome = DatabaseFunctions.getDbHome(GetDbHomeArgs.builder()
.dbHomeId(var_.db_home_id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_db_home = oci.Database.get_db_home(db_home_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbHome = oci.Database.getDbHome({
dbHomeId: _var.db_home_id,
});
variables:
testDbHome:
fn::invoke:
Function: oci:Database:getDbHome
Arguments:
dbHomeId: ${var.db_home_id}
Using getDbHome
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 getDbHome(args: GetDbHomeArgs, opts?: InvokeOptions): Promise<GetDbHomeResult>
function getDbHomeOutput(args: GetDbHomeOutputArgs, opts?: InvokeOptions): Output<GetDbHomeResult>
def get_db_home(db_home_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbHomeResult
def get_db_home_output(db_home_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbHomeResult]
func GetDbHome(ctx *Context, args *GetDbHomeArgs, opts ...InvokeOption) (*GetDbHomeResult, error)
func GetDbHomeOutput(ctx *Context, args *GetDbHomeOutputArgs, opts ...InvokeOption) GetDbHomeResultOutput
> Note: This function is named GetDbHome
in the Go SDK.
public static class GetDbHome
{
public static Task<GetDbHomeResult> InvokeAsync(GetDbHomeArgs args, InvokeOptions? opts = null)
public static Output<GetDbHomeResult> Invoke(GetDbHomeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbHomeResult> getDbHome(GetDbHomeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbHome:getDbHome
arguments:
# arguments dictionary
The following arguments are supported:
- db_
home_ strid The Database Home OCID.
getDbHome Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment.
- Database
Software stringImage Id The database software image OCID
- Databases
List<Get
Db Home Database> - Db
Home stringId - Db
Home stringLocation The location of the Oracle Database Home.
- Db
System stringId The OCID of the DB system.
- Db
Version string The Oracle Database version.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string The user-provided name for the Database Home. The name does not need to be unique.
- Enable
Database boolDelete - 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 Database Home.
- Is
Desupported boolVersion - Kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Kms
Key stringVersion Id - Last
Patch stringHistory Entry Id The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- Lifecycle
Details string Additional information about the current lifecycle state.
- Source string
- State string
The current state of the Database Home.
- Time
Created string The date and time the Database Home was created.
- Vm
Cluster stringId The OCID of the VM cluster.
- Compartment
Id string The OCID of the compartment.
- Database
Software stringImage Id The database software image OCID
- Databases
[]Get
Db Home Database - Db
Home stringId - Db
Home stringLocation The location of the Oracle Database Home.
- Db
System stringId The OCID of the DB system.
- Db
Version string The Oracle Database version.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string The user-provided name for the Database Home. The name does not need to be unique.
- Enable
Database boolDelete - 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 Database Home.
- Is
Desupported boolVersion - Kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Kms
Key stringVersion Id - Last
Patch stringHistory Entry Id The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- Lifecycle
Details string Additional information about the current lifecycle state.
- Source string
- State string
The current state of the Database Home.
- Time
Created string The date and time the Database Home was created.
- Vm
Cluster stringId The OCID of the VM cluster.
- compartment
Id String The OCID of the compartment.
- database
Software StringImage Id The database software image OCID
- databases
List<Get
Db Home> - db
Home StringId - db
Home StringLocation The location of the Oracle Database Home.
- db
System StringId The OCID of the DB system.
- db
Version String The Oracle Database version.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String The user-provided name for the Database Home. The name does not need to be unique.
- enable
Database BooleanDelete - 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 Database Home.
- is
Desupported BooleanVersion - kms
Key StringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key StringVersion Id - last
Patch StringHistory Entry Id The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycle
Details String Additional information about the current lifecycle state.
- source String
- state String
The current state of the Database Home.
- time
Created String The date and time the Database Home was created.
- vm
Cluster StringId The OCID of the VM cluster.
- compartment
Id string The OCID of the compartment.
- database
Software stringImage Id The database software image OCID
- databases
Get
Db Home Database[] - db
Home stringId - db
Home stringLocation The location of the Oracle Database Home.
- db
System stringId The OCID of the DB system.
- db
Version string The Oracle Database version.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string The user-provided name for the Database Home. The name does not need to be unique.
- enable
Database booleanDelete - {[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 Database Home.
- is
Desupported booleanVersion - kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key stringVersion Id - last
Patch stringHistory Entry Id The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycle
Details string Additional information about the current lifecycle state.
- source string
- state string
The current state of the Database Home.
- time
Created string The date and time the Database Home was created.
- vm
Cluster stringId The OCID of the VM cluster.
- compartment_
id str The OCID of the compartment.
- database_
software_ strimage_ id The database software image OCID
- databases
Get
Db Home Database] - db_
home_ strid - db_
home_ strlocation The location of the Oracle Database Home.
- db_
system_ strid The OCID of the DB system.
- db_
version str The Oracle Database version.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_
name str The user-provided name for the Database Home. The name does not need to be unique.
- enable_
database_ booldelete - 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 Database Home.
- is_
desupported_ boolversion - kms_
key_ strid The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms_
key_ strversion_ id - last_
patch_ strhistory_ entry_ id The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycle_
details str Additional information about the current lifecycle state.
- source str
- state str
The current state of the Database Home.
- time_
created str The date and time the Database Home was created.
- vm_
cluster_ strid The OCID of the VM cluster.
- compartment
Id String The OCID of the compartment.
- database
Software StringImage Id The database software image OCID
- databases List<Property Map>
- db
Home StringId - db
Home StringLocation The location of the Oracle Database Home.
- db
System StringId The OCID of the DB system.
- db
Version String The Oracle Database version.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String The user-provided name for the Database Home. The name does not need to be unique.
- enable
Database BooleanDelete - 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 Database Home.
- is
Desupported BooleanVersion - kms
Key StringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key StringVersion Id - last
Patch StringHistory Entry Id The OCID of the last patch history. This value is updated as soon as a patch operation is started.
- lifecycle
Details String Additional information about the current lifecycle state.
- source String
- state String
The current state of the Database Home.
- time
Created String The date and time the Database Home was created.
- vm
Cluster StringId The OCID of the VM cluster.
Supporting Types
GetDbHomeDatabase
- Admin
Password string - Backup
Id string - Backup
Tde stringPassword - Character
Set string - Connection
Strings List<GetDb Home Database Connection String> - Database
Id string - Database
Software stringImage Id The database software image OCID
- Db
Backup List<GetConfigs Db Home Database Db Backup Config> - Db
Name string - Db
Unique stringName - Db
Workload string - 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 Database Home.
- Kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Kms
Key stringVersion Id - Lifecycle
Details string Additional information about the current lifecycle state.
- Ncharacter
Set string - One
Off List<string>Patches List of one-off patches for Database Homes.
- Pdb
Name string - Sid
Prefix string - State string
The current state of the Database Home.
- Tde
Wallet stringPassword - Time
Created string The date and time the Database Home was created.
- Time
Stamp stringFor Point In Time Recovery - Vault
Id string
- Admin
Password string - Backup
Id string - Backup
Tde stringPassword - Character
Set string - Connection
Strings []GetDb Home Database Connection String - Database
Id string - Database
Software stringImage Id The database software image OCID
- Db
Backup []GetConfigs Db Home Database Db Backup Config - Db
Name string - Db
Unique stringName - Db
Workload string - 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 Database Home.
- Kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- Kms
Key stringVersion Id - Lifecycle
Details string Additional information about the current lifecycle state.
- Ncharacter
Set string - One
Off []stringPatches List of one-off patches for Database Homes.
- Pdb
Name string - Sid
Prefix string - State string
The current state of the Database Home.
- Tde
Wallet stringPassword - Time
Created string The date and time the Database Home was created.
- Time
Stamp stringFor Point In Time Recovery - Vault
Id string
- admin
Password String - backup
Id String - backup
Tde StringPassword - character
Set String - connection
Strings List<GetDb Home Connection String> - database
Id String - database
Software StringImage Id The database software image OCID
- db
Backup List<GetConfigs Db Home Db Backup Config> - db
Name String - db
Unique StringName - db
Workload String - 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 Database Home.
- kms
Key StringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key StringVersion Id - lifecycle
Details String Additional information about the current lifecycle state.
- ncharacter
Set String - one
Off List<String>Patches List of one-off patches for Database Homes.
- pdb
Name String - sid
Prefix String - state String
The current state of the Database Home.
- tde
Wallet StringPassword - time
Created String The date and time the Database Home was created.
- time
Stamp StringFor Point In Time Recovery - vault
Id String
- admin
Password string - backup
Id string - backup
Tde stringPassword - character
Set string - connection
Strings GetDb Home Database Connection String[] - database
Id string - database
Software stringImage Id The database software image OCID
- db
Backup GetConfigs Db Home Database Db Backup Config[] - db
Name string - db
Unique stringName - db
Workload string - {[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 Database Home.
- kms
Key stringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key stringVersion Id - lifecycle
Details string Additional information about the current lifecycle state.
- ncharacter
Set string - one
Off string[]Patches List of one-off patches for Database Homes.
- pdb
Name string - sid
Prefix string - state string
The current state of the Database Home.
- tde
Wallet stringPassword - time
Created string The date and time the Database Home was created.
- time
Stamp stringFor Point In Time Recovery - vault
Id string
- admin_
password str - backup_
id str - backup_
tde_ strpassword - character_
set str - connection_
strings GetDb Home Database Connection String] - database_
id str - database_
software_ strimage_ id The database software image OCID
- db_
backup_ Getconfigs Db Home Database Db Backup Config] - db_
name str - db_
unique_ strname - db_
workload str - 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 Database Home.
- kms_
key_ strid The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms_
key_ strversion_ id - lifecycle_
details str Additional information about the current lifecycle state.
- ncharacter_
set str - one_
off_ Sequence[str]patches List of one-off patches for Database Homes.
- pdb_
name str - sid_
prefix str - state str
The current state of the Database Home.
- tde_
wallet_ strpassword - time_
created str The date and time the Database Home was created.
- time_
stamp_ strfor_ point_ in_ time_ recovery - vault_
id str
- admin
Password String - backup
Id String - backup
Tde StringPassword - character
Set String - connection
Strings List<Property Map> - database
Id String - database
Software StringImage Id The database software image OCID
- db
Backup List<Property Map>Configs - db
Name String - db
Unique StringName - db
Workload String - 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 Database Home.
- kms
Key StringId The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
- kms
Key StringVersion Id - lifecycle
Details String Additional information about the current lifecycle state.
- ncharacter
Set String - one
Off List<String>Patches List of one-off patches for Database Homes.
- pdb
Name String - sid
Prefix String - state String
The current state of the Database Home.
- tde
Wallet StringPassword - time
Created String The date and time the Database Home was created.
- time
Stamp StringFor Point In Time Recovery - vault
Id String
GetDbHomeDatabaseConnectionString
- All
Connection Dictionary<string, object>Strings - Cdb
Default string - Cdb
Ip stringDefault
- All
Connection map[string]interface{}Strings - Cdb
Default string - Cdb
Ip stringDefault
- all
Connection Map<String,Object>Strings - cdb
Default String - cdb
Ip StringDefault
- all
Connection {[key: string]: any}Strings - cdb
Default string - cdb
Ip stringDefault
- all_
connection_ Mapping[str, Any]strings - cdb_
default str - cdb_
ip_ strdefault
- all
Connection Map<Any>Strings - cdb
Default String - cdb
Ip StringDefault
GetDbHomeDatabaseDbBackupConfig
- auto
Backup BooleanEnabled - auto
Backup StringWindow - auto
Full StringBackup Day - auto
Full StringBackup Window - backup
Deletion StringPolicy - backup
Destination List<GetDetails Db Home Db Backup Config Backup Destination Detail> - recovery
Window IntegerIn Days - run
Immediate BooleanFull Backup
- auto
Backup BooleanEnabled - auto
Backup StringWindow - auto
Full StringBackup Day - auto
Full StringBackup Window - backup
Deletion StringPolicy - backup
Destination List<Property Map>Details - recovery
Window NumberIn Days - run
Immediate BooleanFull Backup
GetDbHomeDatabaseDbBackupConfigBackupDestinationDetail
- Dbrs
Policy stringId - Id string
The OCID of the Database Home.
- Type string
- Dbrs
Policy stringId - Id string
The OCID of the Database Home.
- Type string
- dbrs
Policy StringId - id String
The OCID of the Database Home.
- type String
- dbrs
Policy stringId - id string
The OCID of the Database Home.
- type string
- dbrs_
policy_ strid - id str
The OCID of the Database Home.
- type str
- dbrs
Policy StringId - id String
The OCID of the Database Home.
- type String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.