1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataSafe
  5. getTargetDatabasePeerTargetDatabases
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DataSafe.getTargetDatabasePeerTargetDatabases

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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,
    });
    
    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"])
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      testTargetDatabasePeerTargetDatabases:
        fn::invoke:
          Function: oci:DataSafe:getTargetDatabasePeerTargetDatabases
          Arguments:
            targetDatabaseId: ${testTargetDatabase.id}
    

    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>
    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]
    func GetTargetDatabasePeerTargetDatabases(ctx *Context, args *GetTargetDatabasePeerTargetDatabasesArgs, opts ...InvokeOption) (*GetTargetDatabasePeerTargetDatabasesResult, error)
    func GetTargetDatabasePeerTargetDatabasesOutput(ctx *Context, args *GetTargetDatabasePeerTargetDatabasesOutputArgs, opts ...InvokeOption) GetTargetDatabasePeerTargetDatabasesResultOutput

    > 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)
    }
    public static CompletableFuture<GetTargetDatabasePeerTargetDatabasesResult> getTargetDatabasePeerTargetDatabases(GetTargetDatabasePeerTargetDatabasesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DataSafe/getTargetDatabasePeerTargetDatabases:getTargetDatabasePeerTargetDatabases
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TargetDatabaseId string
    The OCID of the Data Safe target database.
    Filters List<GetTargetDatabasePeerTargetDatabasesFilter>
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    Filters []GetTargetDatabasePeerTargetDatabasesFilter
    targetDatabaseId String
    The OCID of the Data Safe target database.
    filters List<GetTargetDatabasePeerTargetDatabasesFilter>
    targetDatabaseId string
    The OCID of the Data Safe target database.
    filters GetTargetDatabasePeerTargetDatabasesFilter[]
    targetDatabaseId String
    The OCID of the Data Safe target database.
    filters 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 string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollection

    GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItem

    DatabaseDetails GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
    Details of the database for the registration in Data Safe.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    DataguardAssociationId 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 string
    The description of the peer target database in Data Safe.
    DisplayName string
    The display name of the peer target database in Data Safe.
    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.
    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.
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    TimeCreated string
    The date and time of the peer target database registration in Data Safe.
    TlsConfig GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
    The details required to establish a TLS enabled connection.
    DatabaseDetails GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
    Details of the database for the registration in Data Safe.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    DataguardAssociationId 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 string
    The description of the peer target database in Data Safe.
    DisplayName string
    The display name of the peer target database in Data Safe.
    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.
    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.
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    TimeCreated string
    The date and time of the peer target database registration in Data Safe.
    TlsConfig GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
    The details required to establish a TLS enabled connection.
    databaseDetails GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
    Details of the database for the registration in Data Safe.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    dataguardAssociationId 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 String
    The description of the peer target database in Data Safe.
    displayName String
    The display name of the peer target database in Data Safe.
    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.
    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.
    targetDatabaseId String
    The OCID of the Data Safe target database.
    timeCreated String
    The date and time of the peer target database registration in Data Safe.
    tlsConfig GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
    The details required to establish a TLS enabled connection.
    databaseDetails GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
    Details of the database for the registration in Data Safe.
    databaseUniqueName string
    Unique name of the database associated to the peer target database.
    dataguardAssociationId 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 string
    The description of the peer target database in Data Safe.
    displayName string
    The display name of the peer target database in Data Safe.
    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.
    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.
    targetDatabaseId string
    The OCID of the Data Safe target database.
    timeCreated string
    The date and time of the peer target database registration in Data Safe.
    tlsConfig GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
    The details required to establish a TLS enabled connection.
    database_details datasafe.GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails
    Details of the database for the registration in Data Safe.
    database_unique_name str
    Unique name of the database associated to the peer target database.
    dataguard_association_id 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 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.
    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.
    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_id str
    The OCID of the Data Safe target database.
    time_created str
    The date and time of the peer target database registration in Data Safe.
    tls_config datasafe.GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig
    The details required to establish a TLS enabled connection.
    databaseDetails Property Map
    Details of the database for the registration in Data Safe.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    dataguardAssociationId 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 String
    The description of the peer target database in Data Safe.
    displayName String
    The display name of the peer target database in Data Safe.
    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.
    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.
    targetDatabaseId String
    The OCID of the Data Safe target database.
    timeCreated String
    The date and time of the peer target database registration in Data Safe.
    tlsConfig Property Map
    The details required to establish a TLS enabled connection.

    GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemDatabaseDetails

    AutonomousDatabaseId string
    The OCID of the Autonomous Database registered as a target database in Data Safe.
    DatabaseType string
    The database type.
    DbSystemId string
    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.
    VmClusterId string
    The OCID of the VM cluster in which the database is running.
    AutonomousDatabaseId string
    The OCID of the Autonomous Database registered as a target database in Data Safe.
    DatabaseType string
    The database type.
    DbSystemId string
    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.
    VmClusterId string
    The OCID of the VM cluster in which the database is running.
    autonomousDatabaseId String
    The OCID of the Autonomous Database registered as a target database in Data Safe.
    databaseType String
    The database type.
    dbSystemId String
    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.
    vmClusterId String
    The OCID of the VM cluster in which the database is running.
    autonomousDatabaseId string
    The OCID of the Autonomous Database registered as a target database in Data Safe.
    databaseType string
    The database type.
    dbSystemId string
    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.
    vmClusterId string
    The OCID of the VM cluster in which the database is running.
    autonomous_database_id str
    The OCID of the Autonomous Database registered as a target database in Data Safe.
    database_type str
    The database type.
    db_system_id str
    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_id str
    The OCID of the VM cluster in which the database is running.
    autonomousDatabaseId String
    The OCID of the Autonomous Database registered as a target database in Data Safe.
    databaseType String
    The database type.
    dbSystemId String
    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.
    vmClusterId String
    The OCID of the VM cluster in which the database is running.

    GetTargetDatabasePeerTargetDatabasesPeerTargetDatabaseCollectionItemTlsConfig

    CertificateStoreType string
    The format of the certificate store.
    KeyStoreContent string
    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.
    TrustStoreContent string
    Base64 encoded string of trust store file content.
    CertificateStoreType string
    The format of the certificate store.
    KeyStoreContent string
    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.
    TrustStoreContent string
    Base64 encoded string of trust store file content.
    certificateStoreType String
    The format of the certificate store.
    keyStoreContent String
    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.
    trustStoreContent String
    Base64 encoded string of trust store file content.
    certificateStoreType string
    The format of the certificate store.
    keyStoreContent string
    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.
    trustStoreContent string
    Base64 encoded string of trust store file content.
    certificate_store_type str
    The format of the certificate store.
    key_store_content str
    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_content str
    Base64 encoded string of trust store file content.
    certificateStoreType String
    The format of the certificate store.
    keyStoreContent String
    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.
    trustStoreContent 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi