1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getTargetDatabasePeerTargetDatabases
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.DataSafe.getTargetDatabasePeerTargetDatabases

Explore with Pulumi AI

This data source provides the list of Target Database Peer Target Databases in Oracle Cloud Infrastructure Data Safe service.

Lists all the peer target databases under the primary target database identified by the OCID passed as path parameter.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testTargetDatabasePeerTargetDatabases = oci.DataSafe.getTargetDatabasePeerTargetDatabases({
    targetDatabaseId: testTargetDatabase.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_target_database_peer_target_databases = oci.DataSafe.get_target_database_peer_target_databases(target_database_id=test_target_database["id"])
Copy
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.GetTargetDatabasePeerTargetDatabases(ctx, &datasafe.GetTargetDatabasePeerTargetDatabasesArgs{
			TargetDatabaseId: testTargetDatabase.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testTargetDatabasePeerTargetDatabases = Oci.DataSafe.GetTargetDatabasePeerTargetDatabases.Invoke(new()
    {
        TargetDatabaseId = testTargetDatabase.Id,
    });

});
Copy
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.GetTargetDatabasePeerTargetDatabasesArgs;
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 testTargetDatabasePeerTargetDatabases = DataSafeFunctions.getTargetDatabasePeerTargetDatabases(GetTargetDatabasePeerTargetDatabasesArgs.builder()
            .targetDatabaseId(testTargetDatabase.id())
            .build());

    }
}
Copy
variables:
  testTargetDatabasePeerTargetDatabases:
    fn::invoke:
      function: oci:DataSafe:getTargetDatabasePeerTargetDatabases
      arguments:
        targetDatabaseId: ${testTargetDatabase.id}
Copy

Using getTargetDatabasePeerTargetDatabases

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 getTargetDatabasePeerTargetDatabases(args: GetTargetDatabasePeerTargetDatabasesArgs, opts?: InvokeOptions): Promise<GetTargetDatabasePeerTargetDatabasesResult>
function getTargetDatabasePeerTargetDatabasesOutput(args: GetTargetDatabasePeerTargetDatabasesOutputArgs, opts?: InvokeOptions): Output<GetTargetDatabasePeerTargetDatabasesResult>
Copy
def get_target_database_peer_target_databases(filters: Optional[Sequence[_datasafe.GetTargetDatabasePeerTargetDatabasesFilter]] = None,
                                              target_database_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetTargetDatabasePeerTargetDatabasesResult
def get_target_database_peer_target_databases_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datasafe.GetTargetDatabasePeerTargetDatabasesFilterArgs]]]] = None,
                                              target_database_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetTargetDatabasePeerTargetDatabasesResult]
Copy
func GetTargetDatabasePeerTargetDatabases(ctx *Context, args *GetTargetDatabasePeerTargetDatabasesArgs, opts ...InvokeOption) (*GetTargetDatabasePeerTargetDatabasesResult, error)
func GetTargetDatabasePeerTargetDatabasesOutput(ctx *Context, args *GetTargetDatabasePeerTargetDatabasesOutputArgs, opts ...InvokeOption) GetTargetDatabasePeerTargetDatabasesResultOutput
Copy

> Note: This function is named GetTargetDatabasePeerTargetDatabases in the Go SDK.

public static class GetTargetDatabasePeerTargetDatabases 
{
    public static Task<GetTargetDatabasePeerTargetDatabasesResult> InvokeAsync(GetTargetDatabasePeerTargetDatabasesArgs args, InvokeOptions? opts = null)
    public static Output<GetTargetDatabasePeerTargetDatabasesResult> Invoke(GetTargetDatabasePeerTargetDatabasesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTargetDatabasePeerTargetDatabasesResult> getTargetDatabasePeerTargetDatabases(GetTargetDatabasePeerTargetDatabasesArgs args, InvokeOptions options)
public static Output<GetTargetDatabasePeerTargetDatabasesResult> getTargetDatabasePeerTargetDatabases(GetTargetDatabasePeerTargetDatabasesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DataSafe/getTargetDatabasePeerTargetDatabases:getTargetDatabasePeerTargetDatabases
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TargetDatabaseId This property is required. string
The OCID of the Data Safe target database.
Filters Changes to this property will trigger replacement. List<GetTargetDatabasePeerTargetDatabasesFilter>
TargetDatabaseId This property is required. string
The OCID of the Data Safe target database.
Filters Changes to this property will trigger replacement. []GetTargetDatabasePeerTargetDatabasesFilter
targetDatabaseId This property is required. String
The OCID of the Data Safe target database.
filters Changes to this property will trigger replacement. List<GetTargetDatabasePeerTargetDatabasesFilter>
targetDatabaseId This property is required. string
The OCID of the Data Safe target database.
filters Changes to this property will trigger replacement. GetTargetDatabasePeerTargetDatabasesFilter[]
target_database_id This property is required. str
The OCID of the Data Safe target database.
filters Changes to this property will trigger replacement. Sequence[datasafe.GetTargetDatabasePeerTargetDatabasesFilter]
targetDatabaseId This property is required. String
The OCID of the Data Safe target database.
filters Changes to this property will trigger replacement. List<Property Map>

getTargetDatabasePeerTargetDatabases Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
PeerTargetDatabaseCollections List<GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollection>
The list of peer_target_database_collection.
TargetDatabaseId string
Filters List<GetTargetDatabasePeerTargetDatabasesFilter>
Id string
The provider-assigned unique ID for this managed resource.
PeerTargetDatabaseCollections []GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollection
The list of peer_target_database_collection.
TargetDatabaseId string
Filters []GetTargetDatabasePeerTargetDatabasesFilter
id String
The provider-assigned unique ID for this managed resource.
peerTargetDatabaseCollections List<GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollection>
The list of peer_target_database_collection.
targetDatabaseId String
filters List<GetTargetDatabasePeerTargetDatabasesFilter>
id string
The provider-assigned unique ID for this managed resource.
peerTargetDatabaseCollections GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollection[]
The list of peer_target_database_collection.
targetDatabaseId string
filters GetTargetDatabasePeerTargetDatabasesFilter[]
id String
The provider-assigned unique ID for this managed resource.
peerTargetDatabaseCollections List<Property Map>
The list of peer_target_database_collection.
targetDatabaseId String
filters List<Property Map>

Supporting Types

GetTargetDatabasePeerTargetDatabasesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollection

CompartmentId This property is required. string
Items This property is required. List<GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItem>
CompartmentId This property is required. string
Items This property is required. []GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItem
compartmentId This property is required. String
items This property is required. List<GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItem>
compartmentId This property is required. string
items This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItem[]
compartmentId This property is required. String
items This property is required. List<Property Map>

GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItem

DatabaseDetails This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
Details of the database for the registration in Data Safe.
DatabaseUniqueName This property is required. string
Unique name of the database associated to the peer target database.
DataguardAssociationId This property is required. string
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 This property is required. string
The description of the peer target database in Data Safe.
DisplayName This property is required. string
The display name of the peer target database in Data Safe.
Key This property is required. int
The secondary key assigned for the peer target database in Data Safe.
LifecycleDetails This property is required. string
Details about the current state of the peer target database in Data Safe.
Role This property is required. string
Role of the database associated to the peer target database.
State This property is required. string
The current state of the peer target database in Data Safe.
TargetDatabaseId This property is required. string
The OCID of the Data Safe target database.
TimeCreated This property is required. string
The date and time of the peer target database registration in Data Safe.
TlsConfig This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
The details required to establish a TLS enabled connection.
DatabaseDetails This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
Details of the database for the registration in Data Safe.
DatabaseUniqueName This property is required. string
Unique name of the database associated to the peer target database.
DataguardAssociationId This property is required. string
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 This property is required. string
The description of the peer target database in Data Safe.
DisplayName This property is required. string
The display name of the peer target database in Data Safe.
Key This property is required. int
The secondary key assigned for the peer target database in Data Safe.
LifecycleDetails This property is required. string
Details about the current state of the peer target database in Data Safe.
Role This property is required. string
Role of the database associated to the peer target database.
State This property is required. string
The current state of the peer target database in Data Safe.
TargetDatabaseId This property is required. string
The OCID of the Data Safe target database.
TimeCreated This property is required. string
The date and time of the peer target database registration in Data Safe.
TlsConfig This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
The details required to establish a TLS enabled connection.
databaseDetails This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
Details of the database for the registration in Data Safe.
databaseUniqueName This property is required. String
Unique name of the database associated to the peer target database.
dataguardAssociationId This property is required. String
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 This property is required. String
The description of the peer target database in Data Safe.
displayName This property is required. String
The display name of the peer target database in Data Safe.
key This property is required. Integer
The secondary key assigned for the peer target database in Data Safe.
lifecycleDetails This property is required. String
Details about the current state of the peer target database in Data Safe.
role This property is required. String
Role of the database associated to the peer target database.
state This property is required. String
The current state of the peer target database in Data Safe.
targetDatabaseId This property is required. String
The OCID of the Data Safe target database.
timeCreated This property is required. String
The date and time of the peer target database registration in Data Safe.
tlsConfig This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
The details required to establish a TLS enabled connection.
databaseDetails This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
Details of the database for the registration in Data Safe.
databaseUniqueName This property is required. string
Unique name of the database associated to the peer target database.
dataguardAssociationId This property is required. string
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 This property is required. string
The description of the peer target database in Data Safe.
displayName This property is required. string
The display name of the peer target database in Data Safe.
key This property is required. number
The secondary key assigned for the peer target database in Data Safe.
lifecycleDetails This property is required. string
Details about the current state of the peer target database in Data Safe.
role This property is required. string
Role of the database associated to the peer target database.
state This property is required. string
The current state of the peer target database in Data Safe.
targetDatabaseId This property is required. string
The OCID of the Data Safe target database.
timeCreated This property is required. string
The date and time of the peer target database registration in Data Safe.
tlsConfig This property is required. GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
The details required to establish a TLS enabled connection.
database_details This property is required. datasafe.GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
Details of the database for the registration in Data Safe.
database_unique_name This property is required. str
Unique name of the database associated to the peer target database.
dataguard_association_id This property is required. str
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 This property is required. str
The description of the peer target database in Data Safe.
display_name This property is required. str
The display name of the peer target database in Data Safe.
key This property is required. int
The secondary key assigned for the peer target database in Data Safe.
lifecycle_details This property is required. str
Details about the current state of the peer target database in Data Safe.
role This property is required. str
Role of the database associated to the peer target database.
state This property is required. str
The current state of the peer target database in Data Safe.
target_database_id This property is required. str
The OCID of the Data Safe target database.
time_created This property is required. str
The date and time of the peer target database registration in Data Safe.
tls_config This property is required. datasafe.GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
The details required to establish a TLS enabled connection.
databaseDetails This property is required. Property Map
Details of the database for the registration in Data Safe.
databaseUniqueName This property is required. String
Unique name of the database associated to the peer target database.
dataguardAssociationId This property is required. String
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 This property is required. String
The description of the peer target database in Data Safe.
displayName This property is required. String
The display name of the peer target database in Data Safe.
key This property is required. Number
The secondary key assigned for the peer target database in Data Safe.
lifecycleDetails This property is required. String
Details about the current state of the peer target database in Data Safe.
role This property is required. String
Role of the database associated to the peer target database.
state This property is required. String
The current state of the peer target database in Data Safe.
targetDatabaseId This property is required. String
The OCID of the Data Safe target database.
timeCreated This property is required. String
The date and time of the peer target database registration in Data Safe.
tlsConfig This property is required. Property Map
The details required to establish a TLS enabled connection.

GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails

AutonomousDatabaseId This property is required. string
The OCID of the Autonomous Database registered as a target database in Data Safe.
DatabaseType This property is required. string
The database type.
DbSystemId This property is required. string
The OCID of the cloud database registered as a target database in Data Safe.
InfrastructureType This property is required. string
The infrastructure type the database is running on.
InstanceId This property is required. string
The OCID of the compute instance on which the database is running.
IpAddresses This property is required. List<string>
The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
ListenerPort This property is required. int
The port number of the database listener.
ServiceName This property is required. string
The service name of the database registered as target database.
VmClusterId This property is required. string
The OCID of the VM cluster in which the database is running.
AutonomousDatabaseId This property is required. string
The OCID of the Autonomous Database registered as a target database in Data Safe.
DatabaseType This property is required. string
The database type.
DbSystemId This property is required. string
The OCID of the cloud database registered as a target database in Data Safe.
InfrastructureType This property is required. string
The infrastructure type the database is running on.
InstanceId This property is required. string
The OCID of the compute instance on which the database is running.
IpAddresses This property is required. []string
The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
ListenerPort This property is required. int
The port number of the database listener.
ServiceName This property is required. string
The service name of the database registered as target database.
VmClusterId This property is required. string
The OCID of the VM cluster in which the database is running.
autonomousDatabaseId This property is required. String
The OCID of the Autonomous Database registered as a target database in Data Safe.
databaseType This property is required. String
The database type.
dbSystemId This property is required. String
The OCID of the cloud database registered as a target database in Data Safe.
infrastructureType This property is required. String
The infrastructure type the database is running on.
instanceId This property is required. String
The OCID of the compute instance on which the database is running.
ipAddresses This property is required. List<String>
The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
listenerPort This property is required. Integer
The port number of the database listener.
serviceName This property is required. String
The service name of the database registered as target database.
vmClusterId This property is required. String
The OCID of the VM cluster in which the database is running.
autonomousDatabaseId This property is required. string
The OCID of the Autonomous Database registered as a target database in Data Safe.
databaseType This property is required. string
The database type.
dbSystemId This property is required. string
The OCID of the cloud database registered as a target database in Data Safe.
infrastructureType This property is required. string
The infrastructure type the database is running on.
instanceId This property is required. string
The OCID of the compute instance on which the database is running.
ipAddresses This property is required. string[]
The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
listenerPort This property is required. number
The port number of the database listener.
serviceName This property is required. string
The service name of the database registered as target database.
vmClusterId This property is required. string
The OCID of the VM cluster in which the database is running.
autonomous_database_id This property is required. str
The OCID of the Autonomous Database registered as a target database in Data Safe.
database_type This property is required. str
The database type.
db_system_id This property is required. str
The OCID of the cloud database registered as a target database in Data Safe.
infrastructure_type This property is required. str
The infrastructure type the database is running on.
instance_id This property is required. str
The OCID of the compute instance on which the database is running.
ip_addresses This property is required. Sequence[str]
The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
listener_port This property is required. int
The port number of the database listener.
service_name This property is required. str
The service name of the database registered as target database.
vm_cluster_id This property is required. str
The OCID of the VM cluster in which the database is running.
autonomousDatabaseId This property is required. String
The OCID of the Autonomous Database registered as a target database in Data Safe.
databaseType This property is required. String
The database type.
dbSystemId This property is required. String
The OCID of the cloud database registered as a target database in Data Safe.
infrastructureType This property is required. String
The infrastructure type the database is running on.
instanceId This property is required. String
The OCID of the compute instance on which the database is running.
ipAddresses This property is required. List<String>
The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
listenerPort This property is required. Number
The port number of the database listener.
serviceName This property is required. String
The service name of the database registered as target database.
vmClusterId This property is required. String
The OCID of the VM cluster in which the database is running.

GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig

CertificateStoreType This property is required. string
The format of the certificate store.
KeyStoreContent This property is required. string
Base64 encoded string of key store file content.
Status This property is required. string
Status to represent whether the database connection is TLS enabled or not.
StorePassword This property is required. string
The password to read the trust store and key store files, if they are password protected.
TrustStoreContent This property is required. string
Base64 encoded string of trust store file content.
CertificateStoreType This property is required. string
The format of the certificate store.
KeyStoreContent This property is required. string
Base64 encoded string of key store file content.
Status This property is required. string
Status to represent whether the database connection is TLS enabled or not.
StorePassword This property is required. string
The password to read the trust store and key store files, if they are password protected.
TrustStoreContent This property is required. string
Base64 encoded string of trust store file content.
certificateStoreType This property is required. String
The format of the certificate store.
keyStoreContent This property is required. String
Base64 encoded string of key store file content.
status This property is required. String
Status to represent whether the database connection is TLS enabled or not.
storePassword This property is required. String
The password to read the trust store and key store files, if they are password protected.
trustStoreContent This property is required. String
Base64 encoded string of trust store file content.
certificateStoreType This property is required. string
The format of the certificate store.
keyStoreContent This property is required. string
Base64 encoded string of key store file content.
status This property is required. string
Status to represent whether the database connection is TLS enabled or not.
storePassword This property is required. string
The password to read the trust store and key store files, if they are password protected.
trustStoreContent This property is required. string
Base64 encoded string of trust store file content.
certificate_store_type This property is required. str
The format of the certificate store.
key_store_content This property is required. str
Base64 encoded string of key store file content.
status This property is required. str
Status to represent whether the database connection is TLS enabled or not.
store_password This property is required. str
The password to read the trust store and key store files, if they are password protected.
trust_store_content This property is required. str
Base64 encoded string of trust store file content.
certificateStoreType This property is required. String
The format of the certificate store.
keyStoreContent This property is required. String
Base64 encoded string of key store file content.
status This property is required. String
Status to represent whether the database connection is TLS enabled or not.
storePassword This property is required. String
The password to read the trust store and key store files, if they are password protected.
trustStoreContent This property is required. String
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 oci Terraform Provider.