Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataSafe.getTargetDatabasePeerTargetDatabase
Explore with Pulumi AI
This data source provides details about a specific Target Database Peer Target Database resource in Oracle Cloud Infrastructure Data Safe service.
Returns the details of the specified Data Safe peer target database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabasePeerTargetDatabase = oci.DataSafe.getTargetDatabasePeerTargetDatabase({
    peerTargetDatabaseId: testTargetDatabase.id,
    targetDatabaseId: testTargetDatabase.id,
});
import pulumi
import pulumi_oci as oci
test_target_database_peer_target_database = oci.DataSafe.get_target_database_peer_target_database(peer_target_database_id=test_target_database["id"],
    target_database_id=test_target_database["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/datasafe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasafe.GetTargetDatabasePeerTargetDatabase(ctx, &datasafe.GetTargetDatabasePeerTargetDatabaseArgs{
			PeerTargetDatabaseId: testTargetDatabase.Id,
			TargetDatabaseId:     testTargetDatabase.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 testTargetDatabasePeerTargetDatabase = Oci.DataSafe.GetTargetDatabasePeerTargetDatabase.Invoke(new()
    {
        PeerTargetDatabaseId = testTargetDatabase.Id,
        TargetDatabaseId = testTargetDatabase.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.DataSafeFunctions;
import com.pulumi.oci.DataSafe.inputs.GetTargetDatabasePeerTargetDatabaseArgs;
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 testTargetDatabasePeerTargetDatabase = DataSafeFunctions.getTargetDatabasePeerTargetDatabase(GetTargetDatabasePeerTargetDatabaseArgs.builder()
            .peerTargetDatabaseId(testTargetDatabase.id())
            .targetDatabaseId(testTargetDatabase.id())
            .build());
    }
}
variables:
  testTargetDatabasePeerTargetDatabase:
    fn::invoke:
      function: oci:DataSafe:getTargetDatabasePeerTargetDatabase
      arguments:
        peerTargetDatabaseId: ${testTargetDatabase.id}
        targetDatabaseId: ${testTargetDatabase.id}
Using getTargetDatabasePeerTargetDatabase
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 getTargetDatabasePeerTargetDatabase(args: GetTargetDatabasePeerTargetDatabaseArgs, opts?: InvokeOptions): Promise<GetTargetDatabasePeerTargetDatabaseResult>
function getTargetDatabasePeerTargetDatabaseOutput(args: GetTargetDatabasePeerTargetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetTargetDatabasePeerTargetDatabaseResult>def get_target_database_peer_target_database(peer_target_database_id: Optional[str] = None,
                                             target_database_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetTargetDatabasePeerTargetDatabaseResult
def get_target_database_peer_target_database_output(peer_target_database_id: Optional[pulumi.Input[str]] = None,
                                             target_database_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetTargetDatabasePeerTargetDatabaseResult]func LookupTargetDatabasePeerTargetDatabase(ctx *Context, args *LookupTargetDatabasePeerTargetDatabaseArgs, opts ...InvokeOption) (*LookupTargetDatabasePeerTargetDatabaseResult, error)
func LookupTargetDatabasePeerTargetDatabaseOutput(ctx *Context, args *LookupTargetDatabasePeerTargetDatabaseOutputArgs, opts ...InvokeOption) LookupTargetDatabasePeerTargetDatabaseResultOutput> Note: This function is named LookupTargetDatabasePeerTargetDatabase in the Go SDK.
public static class GetTargetDatabasePeerTargetDatabase 
{
    public static Task<GetTargetDatabasePeerTargetDatabaseResult> InvokeAsync(GetTargetDatabasePeerTargetDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetTargetDatabasePeerTargetDatabaseResult> Invoke(GetTargetDatabasePeerTargetDatabaseInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTargetDatabasePeerTargetDatabaseResult> getTargetDatabasePeerTargetDatabase(GetTargetDatabasePeerTargetDatabaseArgs args, InvokeOptions options)
public static Output<GetTargetDatabasePeerTargetDatabaseResult> getTargetDatabasePeerTargetDatabase(GetTargetDatabasePeerTargetDatabaseArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataSafe/getTargetDatabasePeerTargetDatabase:getTargetDatabasePeerTargetDatabase
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PeerTarget stringDatabase Id 
- The unique id of the peer target database.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- PeerTarget stringDatabase Id 
- The unique id of the peer target database.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- peerTarget StringDatabase Id 
- The unique id of the peer target database.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- peerTarget stringDatabase Id 
- The unique id of the peer target database.
- targetDatabase stringId 
- The OCID of the Data Safe target database.
- peer_target_ strdatabase_ id 
- The unique id of the peer target database.
- target_database_ strid 
- The OCID of the Data Safe target database.
- peerTarget StringDatabase Id 
- The unique id of the peer target database.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
getTargetDatabasePeerTargetDatabase Result
The following output properties are available:
- DatabaseDetails List<GetTarget Database Peer Target Database Database Detail> 
- Details of the database for the registration in Data Safe.
- DatabaseUnique stringName 
- Unique name of the database associated to the peer target database.
- DataguardAssociation stringId 
- The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- Description string
- The description of the peer target database in Data Safe.
- DisplayName string
- The display name of the peer target database in Data Safe.
- Id string
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- PeerTarget stringDatabase Id 
- Role string
- Role of the database associated to the peer target database.
- State string
- The current state of the peer target database in Data Safe.
- TargetDatabase stringId 
- TimeCreated string
- The date and time of the peer target database registration in Data Safe.
- TlsConfigs List<GetTarget Database Peer Target Database Tls Config> 
- The details required to establish a TLS enabled connection.
- DatabaseDetails []GetTarget Database Peer Target Database Database Detail 
- Details of the database for the registration in Data Safe.
- DatabaseUnique stringName 
- Unique name of the database associated to the peer target database.
- DataguardAssociation stringId 
- The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- Description string
- The description of the peer target database in Data Safe.
- DisplayName string
- The display name of the peer target database in Data Safe.
- Id string
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- PeerTarget stringDatabase Id 
- Role string
- Role of the database associated to the peer target database.
- State string
- The current state of the peer target database in Data Safe.
- TargetDatabase stringId 
- TimeCreated string
- The date and time of the peer target database registration in Data Safe.
- TlsConfigs []GetTarget Database Peer Target Database Tls Config 
- The details required to establish a TLS enabled connection.
- databaseDetails List<GetTarget Database Peer Target Database Database Detail> 
- Details of the database for the registration in Data Safe.
- databaseUnique StringName 
- Unique name of the database associated to the peer target database.
- dataguardAssociation StringId 
- The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description String
- The description of the peer target database in Data Safe.
- displayName String
- The display name of the peer target database in Data Safe.
- id String
- key Integer
- The secondary key assigned for the peer target database in Data Safe.
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- peerTarget StringDatabase Id 
- role String
- Role of the database associated to the peer target database.
- state String
- The current state of the peer target database in Data Safe.
- targetDatabase StringId 
- timeCreated String
- The date and time of the peer target database registration in Data Safe.
- tlsConfigs List<GetTarget Database Peer Target Database Tls Config> 
- The details required to establish a TLS enabled connection.
- databaseDetails GetTarget Database Peer Target Database Database Detail[] 
- Details of the database for the registration in Data Safe.
- databaseUnique stringName 
- Unique name of the database associated to the peer target database.
- dataguardAssociation stringId 
- The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description string
- The description of the peer target database in Data Safe.
- displayName string
- The display name of the peer target database in Data Safe.
- id string
- key number
- The secondary key assigned for the peer target database in Data Safe.
- lifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- peerTarget stringDatabase Id 
- role string
- Role of the database associated to the peer target database.
- state string
- The current state of the peer target database in Data Safe.
- targetDatabase stringId 
- timeCreated string
- The date and time of the peer target database registration in Data Safe.
- tlsConfigs GetTarget Database Peer Target Database Tls Config[] 
- The details required to establish a TLS enabled connection.
- database_details Sequence[GetTarget Database Peer Target Database Database Detail] 
- Details of the database for the registration in Data Safe.
- database_unique_ strname 
- Unique name of the database associated to the peer target database.
- dataguard_association_ strid 
- The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description str
- The description of the peer target database in Data Safe.
- display_name str
- The display name of the peer target database in Data Safe.
- id str
- key int
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle_details str
- Details about the current state of the peer target database in Data Safe.
- peer_target_ strdatabase_ id 
- role str
- Role of the database associated to the peer target database.
- state str
- The current state of the peer target database in Data Safe.
- target_database_ strid 
- time_created str
- The date and time of the peer target database registration in Data Safe.
- tls_configs Sequence[GetTarget Database Peer Target Database Tls Config] 
- The details required to establish a TLS enabled connection.
- databaseDetails List<Property Map>
- Details of the database for the registration in Data Safe.
- databaseUnique StringName 
- Unique name of the database associated to the peer target database.
- dataguardAssociation StringId 
- The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description String
- The description of the peer target database in Data Safe.
- displayName String
- The display name of the peer target database in Data Safe.
- id String
- key Number
- The secondary key assigned for the peer target database in Data Safe.
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- peerTarget StringDatabase Id 
- role String
- Role of the database associated to the peer target database.
- state String
- The current state of the peer target database in Data Safe.
- targetDatabase StringId 
- timeCreated String
- The date and time of the peer target database registration in Data Safe.
- tlsConfigs List<Property Map>
- The details required to establish a TLS enabled connection.
Supporting Types
GetTargetDatabasePeerTargetDatabaseDatabaseDetail       
- AutonomousDatabase stringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- DatabaseType string
- The database type.
- DbSystem stringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- InfrastructureType string
- The infrastructure type the database is running on.
- InstanceId string
- The OCID of the compute instance on which the database is running.
- IpAddresses List<string>
- The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- ListenerPort int
- The port number of the database listener.
- ServiceName string
- The service name of the database registered as target database.
- VmCluster stringId 
- The OCID of the VM cluster in which the database is running.
- AutonomousDatabase stringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- DatabaseType string
- The database type.
- DbSystem stringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- InfrastructureType string
- The infrastructure type the database is running on.
- InstanceId string
- The OCID of the compute instance on which the database is running.
- IpAddresses []string
- The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- ListenerPort int
- The port number of the database listener.
- ServiceName string
- The service name of the database registered as target database.
- VmCluster stringId 
- The OCID of the VM cluster in which the database is running.
- autonomousDatabase StringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- databaseType String
- The database type.
- dbSystem StringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- infrastructureType String
- The infrastructure type the database is running on.
- instanceId String
- The OCID of the compute instance on which the database is running.
- ipAddresses List<String>
- The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort Integer
- The port number of the database listener.
- serviceName String
- The service name of the database registered as target database.
- vmCluster StringId 
- The OCID of the VM cluster in which the database is running.
- autonomousDatabase stringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- databaseType string
- The database type.
- dbSystem stringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- infrastructureType string
- The infrastructure type the database is running on.
- instanceId string
- The OCID of the compute instance on which the database is running.
- ipAddresses string[]
- The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort number
- The port number of the database listener.
- serviceName string
- The service name of the database registered as target database.
- vmCluster stringId 
- The OCID of the VM cluster in which the database is running.
- autonomous_database_ strid 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- database_type str
- The database type.
- db_system_ strid 
- The OCID of the cloud database registered as a target database in Data Safe.
- infrastructure_type str
- The infrastructure type the database is running on.
- instance_id str
- The OCID of the compute instance on which the database is running.
- ip_addresses Sequence[str]
- The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener_port int
- The port number of the database listener.
- service_name str
- The service name of the database registered as target database.
- vm_cluster_ strid 
- The OCID of the VM cluster in which the database is running.
- autonomousDatabase StringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- databaseType String
- The database type.
- dbSystem StringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- infrastructureType String
- The infrastructure type the database is running on.
- instanceId String
- The OCID of the compute instance on which the database is running.
- ipAddresses List<String>
- The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort Number
- The port number of the database listener.
- serviceName String
- The service name of the database registered as target database.
- vmCluster StringId 
- The OCID of the VM cluster in which the database is running.
GetTargetDatabasePeerTargetDatabaseTlsConfig       
- CertificateStore stringType 
- The format of the certificate store.
- KeyStore stringContent 
- Base64 encoded string of key store file content.
- Status string
- Status to represent whether the database connection is TLS enabled or not.
- StorePassword string
- The password to read the trust store and key store files, if they are password protected.
- TrustStore stringContent 
- Base64 encoded string of trust store file content.
- CertificateStore stringType 
- The format of the certificate store.
- KeyStore stringContent 
- Base64 encoded string of key store file content.
- Status string
- Status to represent whether the database connection is TLS enabled or not.
- StorePassword string
- The password to read the trust store and key store files, if they are password protected.
- TrustStore stringContent 
- Base64 encoded string of trust store file content.
- certificateStore StringType 
- The format of the certificate store.
- keyStore StringContent 
- Base64 encoded string of key store file content.
- status String
- Status to represent whether the database connection is TLS enabled or not.
- storePassword String
- The password to read the trust store and key store files, if they are password protected.
- trustStore StringContent 
- Base64 encoded string of trust store file content.
- certificateStore stringType 
- The format of the certificate store.
- keyStore stringContent 
- Base64 encoded string of key store file content.
- status string
- Status to represent whether the database connection is TLS enabled or not.
- storePassword string
- The password to read the trust store and key store files, if they are password protected.
- trustStore stringContent 
- Base64 encoded string of trust store file content.
- certificate_store_ strtype 
- The format of the certificate store.
- key_store_ strcontent 
- Base64 encoded string of key store file content.
- status str
- Status to represent whether the database connection is TLS enabled or not.
- store_password str
- The password to read the trust store and key store files, if they are password protected.
- trust_store_ strcontent 
- Base64 encoded string of trust store file content.
- certificateStore StringType 
- The format of the certificate store.
- keyStore StringContent 
- Base64 encoded string of key store file content.
- status String
- Status to represent whether the database connection is TLS enabled or not.
- storePassword String
- The password to read the trust store and key store files, if they are password protected.
- trustStore StringContent 
- Base64 encoded string of trust store file content.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.