oci.DataSafe.TargetDatabase
Explore with Pulumi AI
This resource provides the Target Database resource in Oracle Cloud Infrastructure Data Safe service.
Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabase = new oci.datasafe.TargetDatabase("test_target_database", {
    compartmentId: compartmentId,
    databaseDetails: {
        databaseType: targetDatabaseDatabaseDetailsDatabaseType,
        infrastructureType: targetDatabaseDatabaseDetailsInfrastructureType,
        autonomousDatabaseId: testAutonomousDatabase.id,
        dbSystemId: testDbSystem.id,
        instanceId: testInstance.id,
        ipAddresses: targetDatabaseDatabaseDetailsIpAddresses,
        listenerPort: targetDatabaseDatabaseDetailsListenerPort,
        serviceName: testService.name,
        vmClusterId: testVmCluster.id,
    },
    connectionOption: {
        connectionType: targetDatabaseConnectionOptionConnectionType,
        datasafePrivateEndpointId: testPrivateEndpoint.id,
        onPremConnectorId: testOnPremConnector.id,
    },
    credentials: {
        password: targetDatabaseCredentialsPassword,
        userName: testUser.name,
    },
    definedTags: {
        "Operations.CostCenter": "42",
    },
    description: targetDatabaseDescription,
    displayName: targetDatabaseDisplayName,
    freeformTags: {
        Department: "Finance",
    },
    peerTargetDatabaseDetails: [{
        databaseDetails: {
            databaseType: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType,
            infrastructureType: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType,
            autonomousDatabaseId: testAutonomousDatabase.id,
            dbSystemId: testDbSystem.id,
            instanceId: testInstance.id,
            ipAddresses: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses,
            listenerPort: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort,
            serviceName: testService.name,
            vmClusterId: testVmCluster.id,
        },
        dataguardAssociationId: testAssociation.id,
        description: targetDatabasePeerTargetDatabaseDetailsDescription,
        displayName: targetDatabasePeerTargetDatabaseDetailsDisplayName,
        tlsConfig: {
            status: targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus,
            certificateStoreType: targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType,
            keyStoreContent: targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent,
            storePassword: targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword,
            trustStoreContent: targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent,
        },
    }],
    tlsConfig: {
        status: targetDatabaseTlsConfigStatus,
        certificateStoreType: targetDatabaseTlsConfigCertificateStoreType,
        keyStoreContent: targetDatabaseTlsConfigKeyStoreContent,
        storePassword: targetDatabaseTlsConfigStorePassword,
        trustStoreContent: targetDatabaseTlsConfigTrustStoreContent,
    },
});
import pulumi
import pulumi_oci as oci
test_target_database = oci.data_safe.TargetDatabase("test_target_database",
    compartment_id=compartment_id,
    database_details={
        "database_type": target_database_database_details_database_type,
        "infrastructure_type": target_database_database_details_infrastructure_type,
        "autonomous_database_id": test_autonomous_database["id"],
        "db_system_id": test_db_system["id"],
        "instance_id": test_instance["id"],
        "ip_addresses": target_database_database_details_ip_addresses,
        "listener_port": target_database_database_details_listener_port,
        "service_name": test_service["name"],
        "vm_cluster_id": test_vm_cluster["id"],
    },
    connection_option={
        "connection_type": target_database_connection_option_connection_type,
        "datasafe_private_endpoint_id": test_private_endpoint["id"],
        "on_prem_connector_id": test_on_prem_connector["id"],
    },
    credentials={
        "password": target_database_credentials_password,
        "user_name": test_user["name"],
    },
    defined_tags={
        "Operations.CostCenter": "42",
    },
    description=target_database_description,
    display_name=target_database_display_name,
    freeform_tags={
        "Department": "Finance",
    },
    peer_target_database_details=[{
        "database_details": {
            "database_type": target_database_peer_target_database_details_database_details_database_type,
            "infrastructure_type": target_database_peer_target_database_details_database_details_infrastructure_type,
            "autonomous_database_id": test_autonomous_database["id"],
            "db_system_id": test_db_system["id"],
            "instance_id": test_instance["id"],
            "ip_addresses": target_database_peer_target_database_details_database_details_ip_addresses,
            "listener_port": target_database_peer_target_database_details_database_details_listener_port,
            "service_name": test_service["name"],
            "vm_cluster_id": test_vm_cluster["id"],
        },
        "dataguard_association_id": test_association["id"],
        "description": target_database_peer_target_database_details_description,
        "display_name": target_database_peer_target_database_details_display_name,
        "tls_config": {
            "status": target_database_peer_target_database_details_tls_config_status,
            "certificate_store_type": target_database_peer_target_database_details_tls_config_certificate_store_type,
            "key_store_content": target_database_peer_target_database_details_tls_config_key_store_content,
            "store_password": target_database_peer_target_database_details_tls_config_store_password,
            "trust_store_content": target_database_peer_target_database_details_tls_config_trust_store_content,
        },
    }],
    tls_config={
        "status": target_database_tls_config_status,
        "certificate_store_type": target_database_tls_config_certificate_store_type,
        "key_store_content": target_database_tls_config_key_store_content,
        "store_password": target_database_tls_config_store_password,
        "trust_store_content": target_database_tls_config_trust_store_content,
    })
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.NewTargetDatabase(ctx, "test_target_database", &datasafe.TargetDatabaseArgs{
			CompartmentId: pulumi.Any(compartmentId),
			DatabaseDetails: &datasafe.TargetDatabaseDatabaseDetailsArgs{
				DatabaseType:         pulumi.Any(targetDatabaseDatabaseDetailsDatabaseType),
				InfrastructureType:   pulumi.Any(targetDatabaseDatabaseDetailsInfrastructureType),
				AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
				DbSystemId:           pulumi.Any(testDbSystem.Id),
				InstanceId:           pulumi.Any(testInstance.Id),
				IpAddresses:          pulumi.Any(targetDatabaseDatabaseDetailsIpAddresses),
				ListenerPort:         pulumi.Any(targetDatabaseDatabaseDetailsListenerPort),
				ServiceName:          pulumi.Any(testService.Name),
				VmClusterId:          pulumi.Any(testVmCluster.Id),
			},
			ConnectionOption: &datasafe.TargetDatabaseConnectionOptionArgs{
				ConnectionType:            pulumi.Any(targetDatabaseConnectionOptionConnectionType),
				DatasafePrivateEndpointId: pulumi.Any(testPrivateEndpoint.Id),
				OnPremConnectorId:         pulumi.Any(testOnPremConnector.Id),
			},
			Credentials: &datasafe.TargetDatabaseCredentialsArgs{
				Password: pulumi.Any(targetDatabaseCredentialsPassword),
				UserName: pulumi.Any(testUser.Name),
			},
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			Description: pulumi.Any(targetDatabaseDescription),
			DisplayName: pulumi.Any(targetDatabaseDisplayName),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			PeerTargetDatabaseDetails: datasafe.TargetDatabasePeerTargetDatabaseDetailArray{
				&datasafe.TargetDatabasePeerTargetDatabaseDetailArgs{
					DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs{
						DatabaseType:         pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType),
						InfrastructureType:   pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType),
						AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
						DbSystemId:           pulumi.Any(testDbSystem.Id),
						InstanceId:           pulumi.Any(testInstance.Id),
						IpAddresses:          pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses),
						ListenerPort:         pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort),
						ServiceName:          pulumi.Any(testService.Name),
						VmClusterId:          pulumi.Any(testVmCluster.Id),
					},
					DataguardAssociationId: pulumi.Any(testAssociation.Id),
					Description:            pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDescription),
					DisplayName:            pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDisplayName),
					TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs{
						Status:               pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus),
						CertificateStoreType: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType),
						KeyStoreContent:      pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent),
						StorePassword:        pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword),
						TrustStoreContent:    pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent),
					},
				},
			},
			TlsConfig: &datasafe.TargetDatabaseTlsConfigArgs{
				Status:               pulumi.Any(targetDatabaseTlsConfigStatus),
				CertificateStoreType: pulumi.Any(targetDatabaseTlsConfigCertificateStoreType),
				KeyStoreContent:      pulumi.Any(targetDatabaseTlsConfigKeyStoreContent),
				StorePassword:        pulumi.Any(targetDatabaseTlsConfigStorePassword),
				TrustStoreContent:    pulumi.Any(targetDatabaseTlsConfigTrustStoreContent),
			},
		})
		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 testTargetDatabase = new Oci.DataSafe.TargetDatabase("test_target_database", new()
    {
        CompartmentId = compartmentId,
        DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabaseDatabaseDetailsArgs
        {
            DatabaseType = targetDatabaseDatabaseDetailsDatabaseType,
            InfrastructureType = targetDatabaseDatabaseDetailsInfrastructureType,
            AutonomousDatabaseId = testAutonomousDatabase.Id,
            DbSystemId = testDbSystem.Id,
            InstanceId = testInstance.Id,
            IpAddresses = targetDatabaseDatabaseDetailsIpAddresses,
            ListenerPort = targetDatabaseDatabaseDetailsListenerPort,
            ServiceName = testService.Name,
            VmClusterId = testVmCluster.Id,
        },
        ConnectionOption = new Oci.DataSafe.Inputs.TargetDatabaseConnectionOptionArgs
        {
            ConnectionType = targetDatabaseConnectionOptionConnectionType,
            DatasafePrivateEndpointId = testPrivateEndpoint.Id,
            OnPremConnectorId = testOnPremConnector.Id,
        },
        Credentials = new Oci.DataSafe.Inputs.TargetDatabaseCredentialsArgs
        {
            Password = targetDatabaseCredentialsPassword,
            UserName = testUser.Name,
        },
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        Description = targetDatabaseDescription,
        DisplayName = targetDatabaseDisplayName,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        PeerTargetDatabaseDetails = new[]
        {
            new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailArgs
            {
                DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs
                {
                    DatabaseType = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType,
                    InfrastructureType = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType,
                    AutonomousDatabaseId = testAutonomousDatabase.Id,
                    DbSystemId = testDbSystem.Id,
                    InstanceId = testInstance.Id,
                    IpAddresses = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses,
                    ListenerPort = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort,
                    ServiceName = testService.Name,
                    VmClusterId = testVmCluster.Id,
                },
                DataguardAssociationId = testAssociation.Id,
                Description = targetDatabasePeerTargetDatabaseDetailsDescription,
                DisplayName = targetDatabasePeerTargetDatabaseDetailsDisplayName,
                TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs
                {
                    Status = targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus,
                    CertificateStoreType = targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType,
                    KeyStoreContent = targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent,
                    StorePassword = targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword,
                    TrustStoreContent = targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent,
                },
            },
        },
        TlsConfig = new Oci.DataSafe.Inputs.TargetDatabaseTlsConfigArgs
        {
            Status = targetDatabaseTlsConfigStatus,
            CertificateStoreType = targetDatabaseTlsConfigCertificateStoreType,
            KeyStoreContent = targetDatabaseTlsConfigKeyStoreContent,
            StorePassword = targetDatabaseTlsConfigStorePassword,
            TrustStoreContent = targetDatabaseTlsConfigTrustStoreContent,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.TargetDatabase;
import com.pulumi.oci.DataSafe.TargetDatabaseArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseDatabaseDetailsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseConnectionOptionArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseCredentialsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDetailArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseTlsConfigArgs;
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) {
        var testTargetDatabase = new TargetDatabase("testTargetDatabase", TargetDatabaseArgs.builder()
            .compartmentId(compartmentId)
            .databaseDetails(TargetDatabaseDatabaseDetailsArgs.builder()
                .databaseType(targetDatabaseDatabaseDetailsDatabaseType)
                .infrastructureType(targetDatabaseDatabaseDetailsInfrastructureType)
                .autonomousDatabaseId(testAutonomousDatabase.id())
                .dbSystemId(testDbSystem.id())
                .instanceId(testInstance.id())
                .ipAddresses(targetDatabaseDatabaseDetailsIpAddresses)
                .listenerPort(targetDatabaseDatabaseDetailsListenerPort)
                .serviceName(testService.name())
                .vmClusterId(testVmCluster.id())
                .build())
            .connectionOption(TargetDatabaseConnectionOptionArgs.builder()
                .connectionType(targetDatabaseConnectionOptionConnectionType)
                .datasafePrivateEndpointId(testPrivateEndpoint.id())
                .onPremConnectorId(testOnPremConnector.id())
                .build())
            .credentials(TargetDatabaseCredentialsArgs.builder()
                .password(targetDatabaseCredentialsPassword)
                .userName(testUser.name())
                .build())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .description(targetDatabaseDescription)
            .displayName(targetDatabaseDisplayName)
            .freeformTags(Map.of("Department", "Finance"))
            .peerTargetDatabaseDetails(TargetDatabasePeerTargetDatabaseDetailArgs.builder()
                .databaseDetails(TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs.builder()
                    .databaseType(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType)
                    .infrastructureType(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType)
                    .autonomousDatabaseId(testAutonomousDatabase.id())
                    .dbSystemId(testDbSystem.id())
                    .instanceId(testInstance.id())
                    .ipAddresses(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses)
                    .listenerPort(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort)
                    .serviceName(testService.name())
                    .vmClusterId(testVmCluster.id())
                    .build())
                .dataguardAssociationId(testAssociation.id())
                .description(targetDatabasePeerTargetDatabaseDetailsDescription)
                .displayName(targetDatabasePeerTargetDatabaseDetailsDisplayName)
                .tlsConfig(TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs.builder()
                    .status(targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus)
                    .certificateStoreType(targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType)
                    .keyStoreContent(targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent)
                    .storePassword(targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword)
                    .trustStoreContent(targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent)
                    .build())
                .build())
            .tlsConfig(TargetDatabaseTlsConfigArgs.builder()
                .status(targetDatabaseTlsConfigStatus)
                .certificateStoreType(targetDatabaseTlsConfigCertificateStoreType)
                .keyStoreContent(targetDatabaseTlsConfigKeyStoreContent)
                .storePassword(targetDatabaseTlsConfigStorePassword)
                .trustStoreContent(targetDatabaseTlsConfigTrustStoreContent)
                .build())
            .build());
    }
}
resources:
  testTargetDatabase:
    type: oci:DataSafe:TargetDatabase
    name: test_target_database
    properties:
      compartmentId: ${compartmentId}
      databaseDetails:
        databaseType: ${targetDatabaseDatabaseDetailsDatabaseType}
        infrastructureType: ${targetDatabaseDatabaseDetailsInfrastructureType}
        autonomousDatabaseId: ${testAutonomousDatabase.id}
        dbSystemId: ${testDbSystem.id}
        instanceId: ${testInstance.id}
        ipAddresses: ${targetDatabaseDatabaseDetailsIpAddresses}
        listenerPort: ${targetDatabaseDatabaseDetailsListenerPort}
        serviceName: ${testService.name}
        vmClusterId: ${testVmCluster.id}
      connectionOption:
        connectionType: ${targetDatabaseConnectionOptionConnectionType}
        datasafePrivateEndpointId: ${testPrivateEndpoint.id}
        onPremConnectorId: ${testOnPremConnector.id}
      credentials:
        password: ${targetDatabaseCredentialsPassword}
        userName: ${testUser.name}
      definedTags:
        Operations.CostCenter: '42'
      description: ${targetDatabaseDescription}
      displayName: ${targetDatabaseDisplayName}
      freeformTags:
        Department: Finance
      peerTargetDatabaseDetails:
        - databaseDetails:
            databaseType: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType}
            infrastructureType: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType}
            autonomousDatabaseId: ${testAutonomousDatabase.id}
            dbSystemId: ${testDbSystem.id}
            instanceId: ${testInstance.id}
            ipAddresses: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses}
            listenerPort: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort}
            serviceName: ${testService.name}
            vmClusterId: ${testVmCluster.id}
          dataguardAssociationId: ${testAssociation.id}
          description: ${targetDatabasePeerTargetDatabaseDetailsDescription}
          displayName: ${targetDatabasePeerTargetDatabaseDetailsDisplayName}
          tlsConfig:
            status: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus}
            certificateStoreType: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType}
            keyStoreContent: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent}
            storePassword: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword}
            trustStoreContent: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent}
      tlsConfig:
        status: ${targetDatabaseTlsConfigStatus}
        certificateStoreType: ${targetDatabaseTlsConfigCertificateStoreType}
        keyStoreContent: ${targetDatabaseTlsConfigKeyStoreContent}
        storePassword: ${targetDatabaseTlsConfigStorePassword}
        trustStoreContent: ${targetDatabaseTlsConfigTrustStoreContent}
Create TargetDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetDatabase(name: string, args: TargetDatabaseArgs, opts?: CustomResourceOptions);@overload
def TargetDatabase(resource_name: str,
                   args: TargetDatabaseArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def TargetDatabase(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   compartment_id: Optional[str] = None,
                   database_details: Optional[TargetDatabaseDatabaseDetailsArgs] = None,
                   connection_option: Optional[TargetDatabaseConnectionOptionArgs] = None,
                   credentials: Optional[TargetDatabaseCredentialsArgs] = None,
                   defined_tags: Optional[Mapping[str, str]] = None,
                   description: Optional[str] = None,
                   display_name: Optional[str] = None,
                   freeform_tags: Optional[Mapping[str, str]] = None,
                   peer_target_database_details: Optional[Sequence[TargetDatabasePeerTargetDatabaseDetailArgs]] = None,
                   tls_config: Optional[TargetDatabaseTlsConfigArgs] = None)func NewTargetDatabase(ctx *Context, name string, args TargetDatabaseArgs, opts ...ResourceOption) (*TargetDatabase, error)public TargetDatabase(string name, TargetDatabaseArgs args, CustomResourceOptions? opts = null)
public TargetDatabase(String name, TargetDatabaseArgs args)
public TargetDatabase(String name, TargetDatabaseArgs args, CustomResourceOptions options)
type: oci:DataSafe:TargetDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var targetDatabaseResource = new Oci.DataSafe.TargetDatabase("targetDatabaseResource", new()
{
    CompartmentId = "string",
    DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabaseDatabaseDetailsArgs
    {
        DatabaseType = "string",
        InfrastructureType = "string",
        AutonomousDatabaseId = "string",
        DbSystemId = "string",
        InstanceId = "string",
        IpAddresses = new[]
        {
            "string",
        },
        ListenerPort = 0,
        ServiceName = "string",
        VmClusterId = "string",
    },
    ConnectionOption = new Oci.DataSafe.Inputs.TargetDatabaseConnectionOptionArgs
    {
        ConnectionType = "string",
        DatasafePrivateEndpointId = "string",
        OnPremConnectorId = "string",
    },
    Credentials = new Oci.DataSafe.Inputs.TargetDatabaseCredentialsArgs
    {
        Password = "string",
        UserName = "string",
    },
    DefinedTags = 
    {
        { "string", "string" },
    },
    Description = "string",
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    PeerTargetDatabaseDetails = new[]
    {
        new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailArgs
        {
            DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs
            {
                DatabaseType = "string",
                InfrastructureType = "string",
                AutonomousDatabaseId = "string",
                DbSystemId = "string",
                InstanceId = "string",
                IpAddresses = new[]
                {
                    "string",
                },
                ListenerPort = 0,
                ServiceName = "string",
                VmClusterId = "string",
            },
            DataguardAssociationId = "string",
            Description = "string",
            DisplayName = "string",
            TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs
            {
                Status = "string",
                CertificateStoreType = "string",
                KeyStoreContent = "string",
                StorePassword = "string",
                TrustStoreContent = "string",
            },
        },
    },
    TlsConfig = new Oci.DataSafe.Inputs.TargetDatabaseTlsConfigArgs
    {
        Status = "string",
        CertificateStoreType = "string",
        KeyStoreContent = "string",
        StorePassword = "string",
        TrustStoreContent = "string",
    },
});
example, err := datasafe.NewTargetDatabase(ctx, "targetDatabaseResource", &datasafe.TargetDatabaseArgs{
	CompartmentId: pulumi.String("string"),
	DatabaseDetails: &datasafe.TargetDatabaseDatabaseDetailsArgs{
		DatabaseType:         pulumi.String("string"),
		InfrastructureType:   pulumi.String("string"),
		AutonomousDatabaseId: pulumi.String("string"),
		DbSystemId:           pulumi.String("string"),
		InstanceId:           pulumi.String("string"),
		IpAddresses: pulumi.StringArray{
			pulumi.String("string"),
		},
		ListenerPort: pulumi.Int(0),
		ServiceName:  pulumi.String("string"),
		VmClusterId:  pulumi.String("string"),
	},
	ConnectionOption: &datasafe.TargetDatabaseConnectionOptionArgs{
		ConnectionType:            pulumi.String("string"),
		DatasafePrivateEndpointId: pulumi.String("string"),
		OnPremConnectorId:         pulumi.String("string"),
	},
	Credentials: &datasafe.TargetDatabaseCredentialsArgs{
		Password: pulumi.String("string"),
		UserName: pulumi.String("string"),
	},
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	PeerTargetDatabaseDetails: datasafe.TargetDatabasePeerTargetDatabaseDetailArray{
		&datasafe.TargetDatabasePeerTargetDatabaseDetailArgs{
			DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs{
				DatabaseType:         pulumi.String("string"),
				InfrastructureType:   pulumi.String("string"),
				AutonomousDatabaseId: pulumi.String("string"),
				DbSystemId:           pulumi.String("string"),
				InstanceId:           pulumi.String("string"),
				IpAddresses: pulumi.StringArray{
					pulumi.String("string"),
				},
				ListenerPort: pulumi.Int(0),
				ServiceName:  pulumi.String("string"),
				VmClusterId:  pulumi.String("string"),
			},
			DataguardAssociationId: pulumi.String("string"),
			Description:            pulumi.String("string"),
			DisplayName:            pulumi.String("string"),
			TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs{
				Status:               pulumi.String("string"),
				CertificateStoreType: pulumi.String("string"),
				KeyStoreContent:      pulumi.String("string"),
				StorePassword:        pulumi.String("string"),
				TrustStoreContent:    pulumi.String("string"),
			},
		},
	},
	TlsConfig: &datasafe.TargetDatabaseTlsConfigArgs{
		Status:               pulumi.String("string"),
		CertificateStoreType: pulumi.String("string"),
		KeyStoreContent:      pulumi.String("string"),
		StorePassword:        pulumi.String("string"),
		TrustStoreContent:    pulumi.String("string"),
	},
})
var targetDatabaseResource = new TargetDatabase("targetDatabaseResource", TargetDatabaseArgs.builder()
    .compartmentId("string")
    .databaseDetails(TargetDatabaseDatabaseDetailsArgs.builder()
        .databaseType("string")
        .infrastructureType("string")
        .autonomousDatabaseId("string")
        .dbSystemId("string")
        .instanceId("string")
        .ipAddresses("string")
        .listenerPort(0)
        .serviceName("string")
        .vmClusterId("string")
        .build())
    .connectionOption(TargetDatabaseConnectionOptionArgs.builder()
        .connectionType("string")
        .datasafePrivateEndpointId("string")
        .onPremConnectorId("string")
        .build())
    .credentials(TargetDatabaseCredentialsArgs.builder()
        .password("string")
        .userName("string")
        .build())
    .definedTags(Map.of("string", "string"))
    .description("string")
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .peerTargetDatabaseDetails(TargetDatabasePeerTargetDatabaseDetailArgs.builder()
        .databaseDetails(TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs.builder()
            .databaseType("string")
            .infrastructureType("string")
            .autonomousDatabaseId("string")
            .dbSystemId("string")
            .instanceId("string")
            .ipAddresses("string")
            .listenerPort(0)
            .serviceName("string")
            .vmClusterId("string")
            .build())
        .dataguardAssociationId("string")
        .description("string")
        .displayName("string")
        .tlsConfig(TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs.builder()
            .status("string")
            .certificateStoreType("string")
            .keyStoreContent("string")
            .storePassword("string")
            .trustStoreContent("string")
            .build())
        .build())
    .tlsConfig(TargetDatabaseTlsConfigArgs.builder()
        .status("string")
        .certificateStoreType("string")
        .keyStoreContent("string")
        .storePassword("string")
        .trustStoreContent("string")
        .build())
    .build());
target_database_resource = oci.data_safe.TargetDatabase("targetDatabaseResource",
    compartment_id="string",
    database_details={
        "database_type": "string",
        "infrastructure_type": "string",
        "autonomous_database_id": "string",
        "db_system_id": "string",
        "instance_id": "string",
        "ip_addresses": ["string"],
        "listener_port": 0,
        "service_name": "string",
        "vm_cluster_id": "string",
    },
    connection_option={
        "connection_type": "string",
        "datasafe_private_endpoint_id": "string",
        "on_prem_connector_id": "string",
    },
    credentials={
        "password": "string",
        "user_name": "string",
    },
    defined_tags={
        "string": "string",
    },
    description="string",
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    peer_target_database_details=[{
        "database_details": {
            "database_type": "string",
            "infrastructure_type": "string",
            "autonomous_database_id": "string",
            "db_system_id": "string",
            "instance_id": "string",
            "ip_addresses": ["string"],
            "listener_port": 0,
            "service_name": "string",
            "vm_cluster_id": "string",
        },
        "dataguard_association_id": "string",
        "description": "string",
        "display_name": "string",
        "tls_config": {
            "status": "string",
            "certificate_store_type": "string",
            "key_store_content": "string",
            "store_password": "string",
            "trust_store_content": "string",
        },
    }],
    tls_config={
        "status": "string",
        "certificate_store_type": "string",
        "key_store_content": "string",
        "store_password": "string",
        "trust_store_content": "string",
    })
const targetDatabaseResource = new oci.datasafe.TargetDatabase("targetDatabaseResource", {
    compartmentId: "string",
    databaseDetails: {
        databaseType: "string",
        infrastructureType: "string",
        autonomousDatabaseId: "string",
        dbSystemId: "string",
        instanceId: "string",
        ipAddresses: ["string"],
        listenerPort: 0,
        serviceName: "string",
        vmClusterId: "string",
    },
    connectionOption: {
        connectionType: "string",
        datasafePrivateEndpointId: "string",
        onPremConnectorId: "string",
    },
    credentials: {
        password: "string",
        userName: "string",
    },
    definedTags: {
        string: "string",
    },
    description: "string",
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    peerTargetDatabaseDetails: [{
        databaseDetails: {
            databaseType: "string",
            infrastructureType: "string",
            autonomousDatabaseId: "string",
            dbSystemId: "string",
            instanceId: "string",
            ipAddresses: ["string"],
            listenerPort: 0,
            serviceName: "string",
            vmClusterId: "string",
        },
        dataguardAssociationId: "string",
        description: "string",
        displayName: "string",
        tlsConfig: {
            status: "string",
            certificateStoreType: "string",
            keyStoreContent: "string",
            storePassword: "string",
            trustStoreContent: "string",
        },
    }],
    tlsConfig: {
        status: "string",
        certificateStoreType: "string",
        keyStoreContent: "string",
        storePassword: "string",
        trustStoreContent: "string",
    },
});
type: oci:DataSafe:TargetDatabase
properties:
    compartmentId: string
    connectionOption:
        connectionType: string
        datasafePrivateEndpointId: string
        onPremConnectorId: string
    credentials:
        password: string
        userName: string
    databaseDetails:
        autonomousDatabaseId: string
        databaseType: string
        dbSystemId: string
        infrastructureType: string
        instanceId: string
        ipAddresses:
            - string
        listenerPort: 0
        serviceName: string
        vmClusterId: string
    definedTags:
        string: string
    description: string
    displayName: string
    freeformTags:
        string: string
    peerTargetDatabaseDetails:
        - databaseDetails:
            autonomousDatabaseId: string
            databaseType: string
            dbSystemId: string
            infrastructureType: string
            instanceId: string
            ipAddresses:
                - string
            listenerPort: 0
            serviceName: string
            vmClusterId: string
          dataguardAssociationId: string
          description: string
          displayName: string
          tlsConfig:
            certificateStoreType: string
            keyStoreContent: string
            status: string
            storePassword: string
            trustStoreContent: string
    tlsConfig:
        certificateStoreType: string
        keyStoreContent: string
        status: string
        storePassword: string
        trustStoreContent: string
TargetDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TargetDatabase resource accepts the following input properties:
- CompartmentId string
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- DatabaseDetails TargetDatabase Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- ConnectionOption TargetDatabase Connection Option 
- (Updatable) Types of connection supported by Data Safe.
- Credentials
TargetDatabase Credentials 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Dictionary<string, string>
- (Updatable) 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"}
- PeerTarget List<TargetDatabase Details Database Peer Target Database Detail> 
- The details of the database to be registered as a peer target database.
- TlsConfig TargetDatabase Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- CompartmentId string
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- DatabaseDetails TargetDatabase Database Details Args 
- (Updatable) Details of the database for the registration in Data Safe.
- ConnectionOption TargetDatabase Connection Option Args 
- (Updatable) Types of connection supported by Data Safe.
- Credentials
TargetDatabase Credentials Args 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- map[string]string
- (Updatable) 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"}
- PeerTarget []TargetDatabase Details Database Peer Target Database Detail Args 
- The details of the database to be registered as a peer target database.
- TlsConfig TargetDatabase Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- compartmentId String
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- databaseDetails TargetDatabase Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- connectionOption TargetDatabase Connection Option 
- (Updatable) Types of connection supported by Data Safe.
- credentials
TargetDatabase Credentials 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- displayName String
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<String,String>
- (Updatable) 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"}
- peerTarget List<TargetDatabase Details Database Peer Target Database Detail> 
- The details of the database to be registered as a peer target database.
- tlsConfig TargetDatabase Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- compartmentId string
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- databaseDetails TargetDatabase Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- connectionOption TargetDatabase Connection Option 
- (Updatable) Types of connection supported by Data Safe.
- credentials
TargetDatabase Credentials 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the target database in Data Safe.
- displayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- {[key: string]: string}
- (Updatable) 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"}
- peerTarget TargetDatabase Details Database Peer Target Database Detail[] 
- The details of the database to be registered as a peer target database.
- tlsConfig TargetDatabase Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- compartment_id str
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- database_details TargetDatabase Database Details Args 
- (Updatable) Details of the database for the registration in Data Safe.
- connection_option TargetDatabase Connection Option Args 
- (Updatable) Types of connection supported by Data Safe.
- credentials
TargetDatabase Credentials Args 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the target database in Data Safe.
- display_name str
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Mapping[str, str]
- (Updatable) 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"}
- peer_target_ Sequence[Targetdatabase_ details Database Peer Target Database Detail Args] 
- The details of the database to be registered as a peer target database.
- tls_config TargetDatabase Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- compartmentId String
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- databaseDetails Property Map
- (Updatable) Details of the database for the registration in Data Safe.
- connectionOption Property Map
- (Updatable) Types of connection supported by Data Safe.
- credentials Property Map
- (Updatable) The database credentials required for Data Safe to connect to the database.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- displayName String
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<String>
- (Updatable) 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"}
- peerTarget List<Property Map>Database Details 
- The details of the database to be registered as a peer target database.
- tlsConfig Property Map
- (Updatable) The details required to establish a TLS enabled connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetDatabase resource produces the following output properties:
- AssociatedResource List<string>Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- PeerTarget List<TargetDatabases Database Peer Target Database> 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- TimeUpdated string
- The date and time of the target database update in Data Safe.
- AssociatedResource []stringIds 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- PeerTarget []TargetDatabases Database Peer Target Database Type 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- TimeUpdated string
- The date and time of the target database update in Data Safe.
- associatedResource List<String>Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- peerTarget List<TargetDatabases Database Peer Target Database> 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- timeUpdated String
- The date and time of the target database update in Data Safe.
- associatedResource string[]Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- peerTarget TargetDatabases Database Peer Target Database[] 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state string
- The current state of the target database in Data Safe.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- timeUpdated string
- The date and time of the target database update in Data Safe.
- associated_resource_ Sequence[str]ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_details str
- Details about the current state of the peer target database in Data Safe.
- peer_target_ Sequence[Targetdatabases Database Peer Target Database] 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state str
- The current state of the target database in Data Safe.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time_updated str
- The date and time of the target database update in Data Safe.
- associatedResource List<String>Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- peerTarget List<Property Map>Databases 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- timeUpdated String
- The date and time of the target database update in Data Safe.
Look up Existing TargetDatabase Resource
Get an existing TargetDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TargetDatabaseState, opts?: CustomResourceOptions): TargetDatabase@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        associated_resource_ids: Optional[Sequence[str]] = None,
        compartment_id: Optional[str] = None,
        connection_option: Optional[TargetDatabaseConnectionOptionArgs] = None,
        credentials: Optional[TargetDatabaseCredentialsArgs] = None,
        database_details: Optional[TargetDatabaseDatabaseDetailsArgs] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        lifecycle_details: Optional[str] = None,
        peer_target_database_details: Optional[Sequence[TargetDatabasePeerTargetDatabaseDetailArgs]] = None,
        peer_target_databases: Optional[Sequence[TargetDatabasePeerTargetDatabaseArgs]] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        tls_config: Optional[TargetDatabaseTlsConfigArgs] = None) -> TargetDatabasefunc GetTargetDatabase(ctx *Context, name string, id IDInput, state *TargetDatabaseState, opts ...ResourceOption) (*TargetDatabase, error)public static TargetDatabase Get(string name, Input<string> id, TargetDatabaseState? state, CustomResourceOptions? opts = null)public static TargetDatabase get(String name, Output<String> id, TargetDatabaseState state, CustomResourceOptions options)resources:  _:    type: oci:DataSafe:TargetDatabase    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AssociatedResource List<string>Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- CompartmentId string
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- ConnectionOption TargetDatabase Connection Option 
- (Updatable) Types of connection supported by Data Safe.
- Credentials
TargetDatabase Credentials 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- DatabaseDetails TargetDatabase Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Dictionary<string, string>
- (Updatable) 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"}
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- PeerTarget List<TargetDatabase Details Database Peer Target Database Detail> 
- The details of the database to be registered as a peer target database.
- PeerTarget List<TargetDatabases Database Peer Target Database> 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- TimeUpdated string
- The date and time of the target database update in Data Safe.
- TlsConfig TargetDatabase Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- AssociatedResource []stringIds 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- CompartmentId string
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- ConnectionOption TargetDatabase Connection Option Args 
- (Updatable) Types of connection supported by Data Safe.
- Credentials
TargetDatabase Credentials Args 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- DatabaseDetails TargetDatabase Database Details Args 
- (Updatable) Details of the database for the registration in Data Safe.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- map[string]string
- (Updatable) 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"}
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- PeerTarget []TargetDatabase Details Database Peer Target Database Detail Args 
- The details of the database to be registered as a peer target database.
- PeerTarget []TargetDatabases Database Peer Target Database Type Args 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- TimeUpdated string
- The date and time of the target database update in Data Safe.
- TlsConfig TargetDatabase Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- associatedResource List<String>Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartmentId String
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connectionOption TargetDatabase Connection Option 
- (Updatable) Types of connection supported by Data Safe.
- credentials
TargetDatabase Credentials 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- databaseDetails TargetDatabase Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- displayName String
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<String,String>
- (Updatable) 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"}
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- peerTarget List<TargetDatabase Details Database Peer Target Database Detail> 
- The details of the database to be registered as a peer target database.
- peerTarget List<TargetDatabases Database Peer Target Database> 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- timeUpdated String
- The date and time of the target database update in Data Safe.
- tlsConfig TargetDatabase Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- associatedResource string[]Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartmentId string
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connectionOption TargetDatabase Connection Option 
- (Updatable) Types of connection supported by Data Safe.
- credentials
TargetDatabase Credentials 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- databaseDetails TargetDatabase Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the target database in Data Safe.
- displayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- {[key: string]: string}
- (Updatable) 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"}
- lifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- peerTarget TargetDatabase Details Database Peer Target Database Detail[] 
- The details of the database to be registered as a peer target database.
- peerTarget TargetDatabases Database Peer Target Database[] 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state string
- The current state of the target database in Data Safe.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- timeUpdated string
- The date and time of the target database update in Data Safe.
- tlsConfig TargetDatabase Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- associated_resource_ Sequence[str]ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartment_id str
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connection_option TargetDatabase Connection Option Args 
- (Updatable) Types of connection supported by Data Safe.
- credentials
TargetDatabase Credentials Args 
- (Updatable) The database credentials required for Data Safe to connect to the database.
- database_details TargetDatabase Database Details Args 
- (Updatable) Details of the database for the registration in Data Safe.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the target database in Data Safe.
- display_name str
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Mapping[str, str]
- (Updatable) 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"}
- lifecycle_details str
- Details about the current state of the peer target database in Data Safe.
- peer_target_ Sequence[Targetdatabase_ details Database Peer Target Database Detail Args] 
- The details of the database to be registered as a peer target database.
- peer_target_ Sequence[Targetdatabases Database Peer Target Database Args] 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state str
- The current state of the target database in Data Safe.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time_updated str
- The date and time of the target database update in Data Safe.
- tls_config TargetDatabase Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- associatedResource List<String>Ids 
- The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartmentId String
- (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connectionOption Property Map
- (Updatable) Types of connection supported by Data Safe.
- credentials Property Map
- (Updatable) The database credentials required for Data Safe to connect to the database.
- databaseDetails Property Map
- (Updatable) Details of the database for the registration in Data Safe.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- displayName String
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<String>
- (Updatable) 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"}
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- peerTarget List<Property Map>Database Details 
- The details of the database to be registered as a peer target database.
- peerTarget List<Property Map>Databases 
- The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- timeUpdated String
- The date and time of the target database update in Data Safe.
- tlsConfig Property Map
- (Updatable) The details required to establish a TLS enabled connection.
Supporting Types
TargetDatabaseConnectionOption, TargetDatabaseConnectionOptionArgs        
- ConnectionType string
- (Updatable) The connection type used to connect to the database. Allowed values:- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
 
- DatasafePrivate stringEndpoint Id 
- (Updatable) The OCID of the Data Safe private endpoint.
- OnPrem stringConnector Id 
- (Updatable) The OCID of the on-premises connector.
- ConnectionType string
- (Updatable) The connection type used to connect to the database. Allowed values:- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
 
- DatasafePrivate stringEndpoint Id 
- (Updatable) The OCID of the Data Safe private endpoint.
- OnPrem stringConnector Id 
- (Updatable) The OCID of the on-premises connector.
- connectionType String
- (Updatable) The connection type used to connect to the database. Allowed values:- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
 
- datasafePrivate StringEndpoint Id 
- (Updatable) The OCID of the Data Safe private endpoint.
- onPrem StringConnector Id 
- (Updatable) The OCID of the on-premises connector.
- connectionType string
- (Updatable) The connection type used to connect to the database. Allowed values:- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
 
- datasafePrivate stringEndpoint Id 
- (Updatable) The OCID of the Data Safe private endpoint.
- onPrem stringConnector Id 
- (Updatable) The OCID of the on-premises connector.
- connection_type str
- (Updatable) The connection type used to connect to the database. Allowed values:- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
 
- datasafe_private_ strendpoint_ id 
- (Updatable) The OCID of the Data Safe private endpoint.
- on_prem_ strconnector_ id 
- (Updatable) The OCID of the on-premises connector.
- connectionType String
- (Updatable) The connection type used to connect to the database. Allowed values:- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
 
- datasafePrivate StringEndpoint Id 
- (Updatable) The OCID of the Data Safe private endpoint.
- onPrem StringConnector Id 
- (Updatable) The OCID of the on-premises connector.
TargetDatabaseCredentials, TargetDatabaseCredentialsArgs      
TargetDatabaseDatabaseDetails, TargetDatabaseDatabaseDetailsArgs        
- DatabaseType string
- (Updatable) The database type.
- InfrastructureType string
- (Updatable) The infrastructure type the database is running on.
- AutonomousDatabase stringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- DbSystem stringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- InstanceId string
- (Updatable) The OCID of the compute instance on which the database is running.
- IpAddresses List<string>
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- ListenerPort int
- (Updatable) The port number of the database listener.
- ServiceName string
- (Updatable) The service name of the database registered as target database.
- VmCluster stringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- DatabaseType string
- (Updatable) The database type.
- InfrastructureType string
- (Updatable) The infrastructure type the database is running on.
- AutonomousDatabase stringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- DbSystem stringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- InstanceId string
- (Updatable) The OCID of the compute instance on which the database is running.
- IpAddresses []string
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- ListenerPort int
- (Updatable) The port number of the database listener.
- ServiceName string
- (Updatable) The service name of the database registered as target database.
- VmCluster stringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- databaseType String
- (Updatable) The database type.
- infrastructureType String
- (Updatable) The infrastructure type the database is running on.
- autonomousDatabase StringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- dbSystem StringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instanceId String
- (Updatable) The OCID of the compute instance on which the database is running.
- ipAddresses List<String>
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort Integer
- (Updatable) The port number of the database listener.
- serviceName String
- (Updatable) The service name of the database registered as target database.
- vmCluster StringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- databaseType string
- (Updatable) The database type.
- infrastructureType string
- (Updatable) The infrastructure type the database is running on.
- autonomousDatabase stringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- dbSystem stringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instanceId string
- (Updatable) The OCID of the compute instance on which the database is running.
- ipAddresses string[]
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort number
- (Updatable) The port number of the database listener.
- serviceName string
- (Updatable) The service name of the database registered as target database.
- vmCluster stringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- database_type str
- (Updatable) The database type.
- infrastructure_type str
- (Updatable) The infrastructure type the database is running on.
- autonomous_database_ strid 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- db_system_ strid 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instance_id str
- (Updatable) The OCID of the compute instance on which the database is running.
- ip_addresses Sequence[str]
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener_port int
- (Updatable) The port number of the database listener.
- service_name str
- (Updatable) The service name of the database registered as target database.
- vm_cluster_ strid 
- (Updatable) The OCID of the VM cluster in which the database is running.
- databaseType String
- (Updatable) The database type.
- infrastructureType String
- (Updatable) The infrastructure type the database is running on.
- autonomousDatabase StringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- dbSystem StringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instanceId String
- (Updatable) The OCID of the compute instance on which the database is running.
- ipAddresses List<String>
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort Number
- (Updatable) The port number of the database listener.
- serviceName String
- (Updatable) The service name of the database registered as target database.
- vmCluster StringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
TargetDatabasePeerTargetDatabase, TargetDatabasePeerTargetDatabaseArgs          
- DatabaseDetails List<TargetDatabase Peer Target Database Database Detail> 
- (Updatable) 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
- (Updatable) The description of the target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- 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 target database in Data Safe.
- TimeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- TlsConfigs List<TargetDatabase Peer Target Database Tls Config> 
- (Updatable) The details required to establish a TLS enabled connection.
- DatabaseDetails []TargetDatabase Peer Target Database Database Detail 
- (Updatable) 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
- (Updatable) The description of the target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- 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 target database in Data Safe.
- TimeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- TlsConfigs []TargetDatabase Peer Target Database Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails List<TargetDatabase Peer Target Database Database Detail> 
- (Updatable) 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
- (Updatable) The description of the target database in Data Safe.
- displayName String
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- 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 target database in Data Safe.
- timeCreated String
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tlsConfigs List<TargetDatabase Peer Target Database Tls Config> 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Database Detail[] 
- (Updatable) 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
- (Updatable) The description of the target database in Data Safe.
- displayName string
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- 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 target database in Data Safe.
- timeCreated string
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tlsConfigs TargetDatabase Peer Target Database Tls Config[] 
- (Updatable) The details required to establish a TLS enabled connection.
- database_details Sequence[TargetDatabase Peer Target Database Database Detail] 
- (Updatable) 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
- (Updatable) The description of the target database in Data Safe.
- display_name str
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- 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 target database in Data Safe.
- time_created str
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tls_configs Sequence[TargetDatabase Peer Target Database Tls Config] 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails List<Property Map>
- (Updatable) 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
- (Updatable) The description of the target database in Data Safe.
- displayName String
- (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- 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 target database in Data Safe.
- timeCreated String
- The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tlsConfigs List<Property Map>
- (Updatable) The details required to establish a TLS enabled connection.
TargetDatabasePeerTargetDatabaseDatabaseDetail, TargetDatabasePeerTargetDatabaseDatabaseDetailArgs              
- AutonomousDatabase stringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- DatabaseType string
- (Updatable) The database type.
- DbSystem stringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- InfrastructureType string
- (Updatable) The infrastructure type the database is running on.
- InstanceId string
- (Updatable) The OCID of the compute instance on which the database is running.
- IpAddresses List<string>
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- ListenerPort int
- (Updatable) The port number of the database listener.
- ServiceName string
- (Updatable) The service name of the database registered as target database.
- VmCluster stringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- AutonomousDatabase stringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- DatabaseType string
- (Updatable) The database type.
- DbSystem stringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- InfrastructureType string
- (Updatable) The infrastructure type the database is running on.
- InstanceId string
- (Updatable) The OCID of the compute instance on which the database is running.
- IpAddresses []string
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- ListenerPort int
- (Updatable) The port number of the database listener.
- ServiceName string
- (Updatable) The service name of the database registered as target database.
- VmCluster stringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- autonomousDatabase StringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- databaseType String
- (Updatable) The database type.
- dbSystem StringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructureType String
- (Updatable) The infrastructure type the database is running on.
- instanceId String
- (Updatable) The OCID of the compute instance on which the database is running.
- ipAddresses List<String>
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort Integer
- (Updatable) The port number of the database listener.
- serviceName String
- (Updatable) The service name of the database registered as target database.
- vmCluster StringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- autonomousDatabase stringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- databaseType string
- (Updatable) The database type.
- dbSystem stringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructureType string
- (Updatable) The infrastructure type the database is running on.
- instanceId string
- (Updatable) The OCID of the compute instance on which the database is running.
- ipAddresses string[]
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort number
- (Updatable) The port number of the database listener.
- serviceName string
- (Updatable) The service name of the database registered as target database.
- vmCluster stringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
- autonomous_database_ strid 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- database_type str
- (Updatable) The database type.
- db_system_ strid 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructure_type str
- (Updatable) The infrastructure type the database is running on.
- instance_id str
- (Updatable) The OCID of the compute instance on which the database is running.
- ip_addresses Sequence[str]
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener_port int
- (Updatable) The port number of the database listener.
- service_name str
- (Updatable) The service name of the database registered as target database.
- vm_cluster_ strid 
- (Updatable) The OCID of the VM cluster in which the database is running.
- autonomousDatabase StringId 
- (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- databaseType String
- (Updatable) The database type.
- dbSystem StringId 
- (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructureType String
- (Updatable) The infrastructure type the database is running on.
- instanceId String
- (Updatable) The OCID of the compute instance on which the database is running.
- ipAddresses List<String>
- (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listenerPort Number
- (Updatable) The port number of the database listener.
- serviceName String
- (Updatable) The service name of the database registered as target database.
- vmCluster StringId 
- (Updatable) The OCID of the VM cluster in which the database is running.
TargetDatabasePeerTargetDatabaseDetail, TargetDatabasePeerTargetDatabaseDetailArgs            
- DatabaseDetails TargetDatabase Peer Target Database Detail Database Details 
- Details of the database for the registration in Data Safe.
- DataguardAssociation stringId 
- The OCID of the Data Guard Association resource in which the database being registered 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. The name is modifiable and does not need to be unique.
- TlsConfig TargetDatabase Peer Target Database Detail Tls Config 
- The details required to establish a TLS enabled connection.
- DatabaseDetails TargetDatabase Peer Target Database Detail Database Details 
- Details of the database for the registration in Data Safe.
- DataguardAssociation stringId 
- The OCID of the Data Guard Association resource in which the database being registered 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. The name is modifiable and does not need to be unique.
- TlsConfig TargetDatabase Peer Target Database Detail Tls Config 
- The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Detail Database Details 
- Details of the database for the registration in Data Safe.
- dataguardAssociation StringId 
- The OCID of the Data Guard Association resource in which the database being registered 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. The name is modifiable and does not need to be unique.
- tlsConfig TargetDatabase Peer Target Database Detail Tls Config 
- The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Detail Database Details 
- Details of the database for the registration in Data Safe.
- dataguardAssociation stringId 
- The OCID of the Data Guard Association resource in which the database being registered 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. The name is modifiable and does not need to be unique.
- tlsConfig TargetDatabase Peer Target Database Detail Tls Config 
- The details required to establish a TLS enabled connection.
- database_details TargetDatabase Peer Target Database Detail Database Details 
- Details of the database for the registration in Data Safe.
- dataguard_association_ strid 
- The OCID of the Data Guard Association resource in which the database being registered 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. The name is modifiable and does not need to be unique.
- tls_config TargetDatabase Peer Target Database Detail Tls Config 
- The details required to establish a TLS enabled connection.
- databaseDetails Property Map
- Details of the database for the registration in Data Safe.
- dataguardAssociation StringId 
- The OCID of the Data Guard Association resource in which the database being registered 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. The name is modifiable and does not need to be unique.
- tlsConfig Property Map
- The details required to establish a TLS enabled connection.
TargetDatabasePeerTargetDatabaseDetailDatabaseDetails, TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs                
- DatabaseType string
- The database type.
- InfrastructureType string
- The infrastructure type the database is running on.
- AutonomousDatabase stringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- DbSystem stringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- 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.
- DatabaseType string
- The database type.
- InfrastructureType string
- The infrastructure type the database is running on.
- AutonomousDatabase stringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- DbSystem stringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- 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.
- databaseType String
- The database type.
- infrastructureType String
- The infrastructure type the database is running on.
- autonomousDatabase StringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- dbSystem StringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- 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.
- databaseType string
- The database type.
- infrastructureType string
- The infrastructure type the database is running on.
- autonomousDatabase stringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- dbSystem stringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- 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.
- database_type str
- The database type.
- infrastructure_type str
- The infrastructure type the database is running on.
- autonomous_database_ strid 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- db_system_ strid 
- The OCID of the cloud database registered as a target database in Data Safe.
- 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.
- databaseType String
- The database type.
- infrastructureType String
- The infrastructure type the database is running on.
- autonomousDatabase StringId 
- The OCID of the Autonomous Database registered as a target database in Data Safe.
- dbSystem StringId 
- The OCID of the cloud database registered as a target database in Data Safe.
- 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.
TargetDatabasePeerTargetDatabaseDetailTlsConfig, TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs                
- Status string
- Status to represent whether the database connection is TLS enabled or not.
- CertificateStore stringType 
- The format of the certificate store.
- KeyStore stringContent 
- Base64 encoded string of key store file content.
- 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.
- Status string
- Status to represent whether the database connection is TLS enabled or not.
- CertificateStore stringType 
- The format of the certificate store.
- KeyStore stringContent 
- Base64 encoded string of key store file content.
- 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.
- status String
- Status to represent whether the database connection is TLS enabled or not.
- certificateStore StringType 
- The format of the certificate store.
- keyStore StringContent 
- Base64 encoded string of key store file content.
- 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.
- status string
- Status to represent whether the database connection is TLS enabled or not.
- certificateStore stringType 
- The format of the certificate store.
- keyStore stringContent 
- Base64 encoded string of key store file content.
- 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.
- status str
- Status to represent whether the database connection is TLS enabled or not.
- certificate_store_ strtype 
- The format of the certificate store.
- key_store_ strcontent 
- Base64 encoded string of key store file content.
- 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.
- status String
- Status to represent whether the database connection is TLS enabled or not.
- certificateStore StringType 
- The format of the certificate store.
- keyStore StringContent 
- Base64 encoded string of key store file content.
- 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.
TargetDatabasePeerTargetDatabaseTlsConfig, TargetDatabasePeerTargetDatabaseTlsConfigArgs              
- Status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- CertificateStore stringType 
- (Updatable) The format of the certificate store.
- KeyStore stringContent 
- (Updatable) Base64 encoded string of key store file content.
- StorePassword string
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- TrustStore stringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- Status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- CertificateStore stringType 
- (Updatable) The format of the certificate store.
- KeyStore stringContent 
- (Updatable) Base64 encoded string of key store file content.
- StorePassword string
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- TrustStore stringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status String
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificateStore StringType 
- (Updatable) The format of the certificate store.
- keyStore StringContent 
- (Updatable) Base64 encoded string of key store file content.
- storePassword String
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trustStore StringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificateStore stringType 
- (Updatable) The format of the certificate store.
- keyStore stringContent 
- (Updatable) Base64 encoded string of key store file content.
- storePassword string
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trustStore stringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status str
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificate_store_ strtype 
- (Updatable) The format of the certificate store.
- key_store_ strcontent 
- (Updatable) Base64 encoded string of key store file content.
- store_password str
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust_store_ strcontent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status String
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificateStore StringType 
- (Updatable) The format of the certificate store.
- keyStore StringContent 
- (Updatable) Base64 encoded string of key store file content.
- storePassword String
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trustStore StringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
TargetDatabaseTlsConfig, TargetDatabaseTlsConfigArgs        
- Status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- CertificateStore stringType 
- (Updatable) The format of the certificate store.
- KeyStore stringContent 
- (Updatable) Base64 encoded string of key store file content.
- StorePassword string
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- TrustStore stringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- Status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- CertificateStore stringType 
- (Updatable) The format of the certificate store.
- KeyStore stringContent 
- (Updatable) Base64 encoded string of key store file content.
- StorePassword string
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- TrustStore stringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status String
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificateStore StringType 
- (Updatable) The format of the certificate store.
- keyStore StringContent 
- (Updatable) Base64 encoded string of key store file content.
- storePassword String
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trustStore StringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificateStore stringType 
- (Updatable) The format of the certificate store.
- keyStore stringContent 
- (Updatable) Base64 encoded string of key store file content.
- storePassword string
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trustStore stringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status str
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificate_store_ strtype 
- (Updatable) The format of the certificate store.
- key_store_ strcontent 
- (Updatable) Base64 encoded string of key store file content.
- store_password str
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust_store_ strcontent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- status String
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- certificateStore StringType 
- (Updatable) The format of the certificate store.
- keyStore StringContent 
- (Updatable) Base64 encoded string of key store file content.
- storePassword String
- (Updatable) The password to read the trust store and key store files, if they are password protected.
- trustStore StringContent 
- (Updatable) Base64 encoded string of trust store file content. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
Import
TargetDatabases can be imported using the id, e.g.
$ pulumi import oci:DataSafe/targetDatabase:TargetDatabase test_target_database "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.