oci.DataSafe.TargetDatabasePeerTargetDatabase
Explore with Pulumi AI
This resource provides the Target Database Peer Target Database resource in Oracle Cloud Infrastructure Data Safe service.
Creates the peer target database under the primary target database in Data Safe.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabasePeerTargetDatabase = new oci.datasafe.TargetDatabasePeerTargetDatabase("test_target_database_peer_target_database", {
    databaseDetails: {
        databaseType: targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType,
        infrastructureType: targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType,
        autonomousDatabaseId: testAutonomousDatabase.id,
        dbSystemId: testDbSystem.id,
        instanceId: testInstance.id,
        ipAddresses: targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses,
        listenerPort: targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort,
        serviceName: testService.name,
        vmClusterId: testVmCluster.id,
    },
    targetDatabaseId: testTargetDatabase.id,
    dataguardAssociationId: testAssociation.id,
    description: targetDatabasePeerTargetDatabaseDescription,
    displayName: targetDatabasePeerTargetDatabaseDisplayName,
    tlsConfig: {
        status: targetDatabasePeerTargetDatabaseTlsConfigStatus,
        certificateStoreType: targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType,
        keyStoreContent: targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent,
        storePassword: targetDatabasePeerTargetDatabaseTlsConfigStorePassword,
        trustStoreContent: targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent,
    },
});
import pulumi
import pulumi_oci as oci
test_target_database_peer_target_database = oci.data_safe.TargetDatabasePeerTargetDatabase("test_target_database_peer_target_database",
    database_details={
        "database_type": target_database_peer_target_database_database_details_database_type,
        "infrastructure_type": target_database_peer_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_peer_target_database_database_details_ip_addresses,
        "listener_port": target_database_peer_target_database_database_details_listener_port,
        "service_name": test_service["name"],
        "vm_cluster_id": test_vm_cluster["id"],
    },
    target_database_id=test_target_database["id"],
    dataguard_association_id=test_association["id"],
    description=target_database_peer_target_database_description,
    display_name=target_database_peer_target_database_display_name,
    tls_config={
        "status": target_database_peer_target_database_tls_config_status,
        "certificate_store_type": target_database_peer_target_database_tls_config_certificate_store_type,
        "key_store_content": target_database_peer_target_database_tls_config_key_store_content,
        "store_password": target_database_peer_target_database_tls_config_store_password,
        "trust_store_content": target_database_peer_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.NewTargetDatabasePeerTargetDatabase(ctx, "test_target_database_peer_target_database", &datasafe.TargetDatabasePeerTargetDatabaseArgs{
			DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs{
				DatabaseType:         pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType),
				InfrastructureType:   pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType),
				AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
				DbSystemId:           pulumi.Any(testDbSystem.Id),
				InstanceId:           pulumi.Any(testInstance.Id),
				IpAddresses:          pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses),
				ListenerPort:         pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort),
				ServiceName:          pulumi.Any(testService.Name),
				VmClusterId:          pulumi.Any(testVmCluster.Id),
			},
			TargetDatabaseId:       pulumi.Any(testTargetDatabase.Id),
			DataguardAssociationId: pulumi.Any(testAssociation.Id),
			Description:            pulumi.Any(targetDatabasePeerTargetDatabaseDescription),
			DisplayName:            pulumi.Any(targetDatabasePeerTargetDatabaseDisplayName),
			TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs{
				Status:               pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigStatus),
				CertificateStoreType: pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType),
				KeyStoreContent:      pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent),
				StorePassword:        pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigStorePassword),
				TrustStoreContent:    pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testTargetDatabasePeerTargetDatabase = new Oci.DataSafe.TargetDatabasePeerTargetDatabase("test_target_database_peer_target_database", new()
    {
        DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
        {
            DatabaseType = targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType,
            InfrastructureType = targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType,
            AutonomousDatabaseId = testAutonomousDatabase.Id,
            DbSystemId = testDbSystem.Id,
            InstanceId = testInstance.Id,
            IpAddresses = targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses,
            ListenerPort = targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort,
            ServiceName = testService.Name,
            VmClusterId = testVmCluster.Id,
        },
        TargetDatabaseId = testTargetDatabase.Id,
        DataguardAssociationId = testAssociation.Id,
        Description = targetDatabasePeerTargetDatabaseDescription,
        DisplayName = targetDatabasePeerTargetDatabaseDisplayName,
        TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseTlsConfigArgs
        {
            Status = targetDatabasePeerTargetDatabaseTlsConfigStatus,
            CertificateStoreType = targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType,
            KeyStoreContent = targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent,
            StorePassword = targetDatabasePeerTargetDatabaseTlsConfigStorePassword,
            TrustStoreContent = targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.TargetDatabasePeerTargetDatabase;
import com.pulumi.oci.DataSafe.TargetDatabasePeerTargetDatabaseArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseTlsConfigArgs;
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 testTargetDatabasePeerTargetDatabase = new TargetDatabasePeerTargetDatabase("testTargetDatabasePeerTargetDatabase", TargetDatabasePeerTargetDatabaseArgs.builder()
            .databaseDetails(TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs.builder()
                .databaseType(targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType)
                .infrastructureType(targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType)
                .autonomousDatabaseId(testAutonomousDatabase.id())
                .dbSystemId(testDbSystem.id())
                .instanceId(testInstance.id())
                .ipAddresses(targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses)
                .listenerPort(targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort)
                .serviceName(testService.name())
                .vmClusterId(testVmCluster.id())
                .build())
            .targetDatabaseId(testTargetDatabase.id())
            .dataguardAssociationId(testAssociation.id())
            .description(targetDatabasePeerTargetDatabaseDescription)
            .displayName(targetDatabasePeerTargetDatabaseDisplayName)
            .tlsConfig(TargetDatabasePeerTargetDatabaseTlsConfigArgs.builder()
                .status(targetDatabasePeerTargetDatabaseTlsConfigStatus)
                .certificateStoreType(targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType)
                .keyStoreContent(targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent)
                .storePassword(targetDatabasePeerTargetDatabaseTlsConfigStorePassword)
                .trustStoreContent(targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent)
                .build())
            .build());
    }
}
resources:
  testTargetDatabasePeerTargetDatabase:
    type: oci:DataSafe:TargetDatabasePeerTargetDatabase
    name: test_target_database_peer_target_database
    properties:
      databaseDetails:
        databaseType: ${targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType}
        infrastructureType: ${targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType}
        autonomousDatabaseId: ${testAutonomousDatabase.id}
        dbSystemId: ${testDbSystem.id}
        instanceId: ${testInstance.id}
        ipAddresses: ${targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses}
        listenerPort: ${targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort}
        serviceName: ${testService.name}
        vmClusterId: ${testVmCluster.id}
      targetDatabaseId: ${testTargetDatabase.id}
      dataguardAssociationId: ${testAssociation.id}
      description: ${targetDatabasePeerTargetDatabaseDescription}
      displayName: ${targetDatabasePeerTargetDatabaseDisplayName}
      tlsConfig:
        status: ${targetDatabasePeerTargetDatabaseTlsConfigStatus}
        certificateStoreType: ${targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType}
        keyStoreContent: ${targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent}
        storePassword: ${targetDatabasePeerTargetDatabaseTlsConfigStorePassword}
        trustStoreContent: ${targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent}
Create TargetDatabasePeerTargetDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetDatabasePeerTargetDatabase(name: string, args: TargetDatabasePeerTargetDatabaseArgs, opts?: CustomResourceOptions);@overload
def TargetDatabasePeerTargetDatabase(resource_name: str,
                                     args: TargetDatabasePeerTargetDatabaseInitArgs,
                                     opts: Optional[ResourceOptions] = None)
@overload
def TargetDatabasePeerTargetDatabase(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     database_details: Optional[TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs] = None,
                                     target_database_id: Optional[str] = None,
                                     dataguard_association_id: Optional[str] = None,
                                     description: Optional[str] = None,
                                     display_name: Optional[str] = None,
                                     tls_config: Optional[TargetDatabasePeerTargetDatabaseTlsConfigArgs] = None)func NewTargetDatabasePeerTargetDatabase(ctx *Context, name string, args TargetDatabasePeerTargetDatabaseArgs, opts ...ResourceOption) (*TargetDatabasePeerTargetDatabase, error)public TargetDatabasePeerTargetDatabase(string name, TargetDatabasePeerTargetDatabaseArgs args, CustomResourceOptions? opts = null)
public TargetDatabasePeerTargetDatabase(String name, TargetDatabasePeerTargetDatabaseArgs args)
public TargetDatabasePeerTargetDatabase(String name, TargetDatabasePeerTargetDatabaseArgs args, CustomResourceOptions options)
type: oci:DataSafe:TargetDatabasePeerTargetDatabase
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 TargetDatabasePeerTargetDatabaseArgs
- 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 TargetDatabasePeerTargetDatabaseInitArgs
- 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 TargetDatabasePeerTargetDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseArgs
- 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 targetDatabasePeerTargetDatabaseResource = new Oci.DataSafe.TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource", new()
{
    DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
    {
        DatabaseType = "string",
        InfrastructureType = "string",
        AutonomousDatabaseId = "string",
        DbSystemId = "string",
        InstanceId = "string",
        IpAddresses = new[]
        {
            "string",
        },
        ListenerPort = 0,
        ServiceName = "string",
        VmClusterId = "string",
    },
    TargetDatabaseId = "string",
    DataguardAssociationId = "string",
    Description = "string",
    DisplayName = "string",
    TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseTlsConfigArgs
    {
        Status = "string",
        CertificateStoreType = "string",
        KeyStoreContent = "string",
        StorePassword = "string",
        TrustStoreContent = "string",
    },
});
example, err := datasafe.NewTargetDatabasePeerTargetDatabase(ctx, "targetDatabasePeerTargetDatabaseResource", &datasafe.TargetDatabasePeerTargetDatabaseArgs{
	DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs{
		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"),
	},
	TargetDatabaseId:       pulumi.String("string"),
	DataguardAssociationId: pulumi.String("string"),
	Description:            pulumi.String("string"),
	DisplayName:            pulumi.String("string"),
	TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs{
		Status:               pulumi.String("string"),
		CertificateStoreType: pulumi.String("string"),
		KeyStoreContent:      pulumi.String("string"),
		StorePassword:        pulumi.String("string"),
		TrustStoreContent:    pulumi.String("string"),
	},
})
var targetDatabasePeerTargetDatabaseResource = new TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource", TargetDatabasePeerTargetDatabaseArgs.builder()
    .databaseDetails(TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs.builder()
        .databaseType("string")
        .infrastructureType("string")
        .autonomousDatabaseId("string")
        .dbSystemId("string")
        .instanceId("string")
        .ipAddresses("string")
        .listenerPort(0)
        .serviceName("string")
        .vmClusterId("string")
        .build())
    .targetDatabaseId("string")
    .dataguardAssociationId("string")
    .description("string")
    .displayName("string")
    .tlsConfig(TargetDatabasePeerTargetDatabaseTlsConfigArgs.builder()
        .status("string")
        .certificateStoreType("string")
        .keyStoreContent("string")
        .storePassword("string")
        .trustStoreContent("string")
        .build())
    .build());
target_database_peer_target_database_resource = oci.data_safe.TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource",
    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",
    },
    target_database_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",
    })
const targetDatabasePeerTargetDatabaseResource = new oci.datasafe.TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource", {
    databaseDetails: {
        databaseType: "string",
        infrastructureType: "string",
        autonomousDatabaseId: "string",
        dbSystemId: "string",
        instanceId: "string",
        ipAddresses: ["string"],
        listenerPort: 0,
        serviceName: "string",
        vmClusterId: "string",
    },
    targetDatabaseId: "string",
    dataguardAssociationId: "string",
    description: "string",
    displayName: "string",
    tlsConfig: {
        status: "string",
        certificateStoreType: "string",
        keyStoreContent: "string",
        storePassword: "string",
        trustStoreContent: "string",
    },
});
type: oci:DataSafe:TargetDatabasePeerTargetDatabase
properties:
    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
    targetDatabaseId: string
    tlsConfig:
        certificateStoreType: string
        keyStoreContent: string
        status: string
        storePassword: string
        trustStoreContent: string
TargetDatabasePeerTargetDatabase 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 TargetDatabasePeerTargetDatabase resource accepts the following input properties:
- DatabaseDetails TargetDatabase Peer Target Database Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- DisplayName string
- (Updatable) 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 Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- DatabaseDetails TargetDatabase Peer Target Database Database Details Args 
- (Updatable) Details of the database for the registration in Data Safe.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- DisplayName string
- (Updatable) 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 Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- displayName String
- (Updatable) 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 Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Database Details 
- (Updatable) Details of the database for the registration in Data Safe.
- targetDatabase stringId 
- The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- displayName string
- (Updatable) 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 Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- database_details TargetDatabase Peer Target Database Database Details Args 
- (Updatable) Details of the database for the registration in Data Safe.
- target_database_ strid 
- The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- display_name str
- (Updatable) 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 Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails Property Map
- (Updatable) Details of the database for the registration in Data Safe.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- displayName String
- (Updatable) 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
- (Updatable) The details required to establish a TLS enabled connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetDatabasePeerTargetDatabase resource produces the following output properties:
- DatabaseUnique stringName 
- Unique name of the database associated to the peer target database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- Role string
- Role of the database associated to the peer target database.
- State string
- The current state of the peer target database in Data Safe.
- TimeCreated string
- The date and time of the peer target database registration in Data Safe.
- DatabaseUnique stringName 
- Unique name of the database associated to the peer target database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- LifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- Role string
- Role of the database associated to the peer target database.
- State string
- The current state of the peer target database in Data Safe.
- TimeCreated string
- The date and time of the peer target database registration in Data Safe.
- databaseUnique StringName 
- Unique name of the database associated to the peer target database.
- id String
- The provider-assigned unique ID for this managed resource.
- key Integer
- The secondary key assigned for the peer target database in Data Safe.
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- role String
- Role of the database associated to the peer target database.
- state String
- The current state of the peer target database in Data Safe.
- timeCreated String
- The date and time of the peer target database registration in Data Safe.
- databaseUnique stringName 
- Unique name of the database associated to the peer target database.
- id string
- The provider-assigned unique ID for this managed resource.
- key number
- The secondary key assigned for the peer target database in Data Safe.
- lifecycleDetails string
- Details about the current state of the peer target database in Data Safe.
- role string
- Role of the database associated to the peer target database.
- state string
- The current state of the peer target database in Data Safe.
- timeCreated string
- The date and time of the peer target database registration in Data Safe.
- database_unique_ strname 
- Unique name of the database associated to the peer target database.
- id str
- The provider-assigned unique ID for this managed resource.
- key int
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle_details str
- Details about the current state of the peer target database in Data Safe.
- role str
- Role of the database associated to the peer target database.
- state str
- The current state of the peer target database in Data Safe.
- time_created str
- The date and time of the peer target database registration in Data Safe.
- databaseUnique StringName 
- Unique name of the database associated to the peer target database.
- id String
- The provider-assigned unique ID for this managed resource.
- key Number
- The secondary key assigned for the peer target database in Data Safe.
- lifecycleDetails String
- Details about the current state of the peer target database in Data Safe.
- role String
- Role of the database associated to the peer target database.
- state String
- The current state of the peer target database in Data Safe.
- timeCreated String
- The date and time of the peer target database registration in Data Safe.
Look up Existing TargetDatabasePeerTargetDatabase Resource
Get an existing TargetDatabasePeerTargetDatabase 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?: TargetDatabasePeerTargetDatabaseState, opts?: CustomResourceOptions): TargetDatabasePeerTargetDatabase@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        database_details: Optional[TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs] = None,
        database_unique_name: Optional[str] = None,
        dataguard_association_id: Optional[str] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        key: Optional[int] = None,
        lifecycle_details: Optional[str] = None,
        role: Optional[str] = None,
        state: Optional[str] = None,
        target_database_id: Optional[str] = None,
        time_created: Optional[str] = None,
        tls_config: Optional[TargetDatabasePeerTargetDatabaseTlsConfigArgs] = None) -> TargetDatabasePeerTargetDatabasefunc GetTargetDatabasePeerTargetDatabase(ctx *Context, name string, id IDInput, state *TargetDatabasePeerTargetDatabaseState, opts ...ResourceOption) (*TargetDatabasePeerTargetDatabase, error)public static TargetDatabasePeerTargetDatabase Get(string name, Input<string> id, TargetDatabasePeerTargetDatabaseState? state, CustomResourceOptions? opts = null)public static TargetDatabasePeerTargetDatabase get(String name, Output<String> id, TargetDatabasePeerTargetDatabaseState state, CustomResourceOptions options)resources:  _:    type: oci:DataSafe:TargetDatabasePeerTargetDatabase    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.
- DatabaseDetails TargetDatabase Peer Target Database Database Details 
- (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 being registered is considered as peer database to the primary database.
- Description string
- (Updatable) The description of the peer target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the peer 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 peer target database in Data Safe.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- TimeCreated string
- The date and time of the peer target database registration in Data Safe.
- TlsConfig TargetDatabase Peer Target Database Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- DatabaseDetails TargetDatabase Peer Target Database Database Details Args 
- (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 being registered is considered as peer database to the primary database.
- Description string
- (Updatable) The description of the peer target database in Data Safe.
- DisplayName string
- (Updatable) The display name of the peer 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 peer target database in Data Safe.
- TargetDatabase stringId 
- The OCID of the Data Safe target database.
- TimeCreated string
- The date and time of the peer target database registration in Data Safe.
- TlsConfig TargetDatabase Peer Target Database Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Database Details 
- (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 being registered is considered as peer database to the primary database.
- description String
- (Updatable) The description of the peer target database in Data Safe.
- displayName String
- (Updatable) The display name of the peer 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 peer target database in Data Safe.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- timeCreated String
- The date and time of the peer target database registration in Data Safe.
- tlsConfig TargetDatabase Peer Target Database Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails TargetDatabase Peer Target Database Database Details 
- (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 being registered is considered as peer database to the primary database.
- description string
- (Updatable) The description of the peer target database in Data Safe.
- displayName string
- (Updatable) The display name of the peer 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 peer target database in Data Safe.
- targetDatabase stringId 
- The OCID of the Data Safe target database.
- timeCreated string
- The date and time of the peer target database registration in Data Safe.
- tlsConfig TargetDatabase Peer Target Database Tls Config 
- (Updatable) The details required to establish a TLS enabled connection.
- database_details TargetDatabase Peer Target Database Database Details Args 
- (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 being registered is considered as peer database to the primary database.
- description str
- (Updatable) The description of the peer target database in Data Safe.
- display_name str
- (Updatable) The display name of the peer 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 peer target database in Data Safe.
- target_database_ strid 
- The OCID of the Data Safe target database.
- time_created str
- The date and time of the peer target database registration in Data Safe.
- tls_config TargetDatabase Peer Target Database Tls Config Args 
- (Updatable) The details required to establish a TLS enabled connection.
- databaseDetails 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 being registered is considered as peer database to the primary database.
- description String
- (Updatable) The description of the peer target database in Data Safe.
- displayName String
- (Updatable) The display name of the peer 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 peer target database in Data Safe.
- targetDatabase StringId 
- The OCID of the Data Safe target database.
- timeCreated String
- The date and time of the peer target database registration in Data Safe.
- tlsConfig Property Map
- (Updatable) The details required to establish a TLS enabled connection.
Supporting Types
TargetDatabasePeerTargetDatabaseDatabaseDetails, TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs              
- 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.
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 
Import
TargetDatabasePeerTargetDatabases can be imported using the id, e.g.
$ pulumi import oci:DataSafe/targetDatabasePeerTargetDatabase:TargetDatabasePeerTargetDatabase test_target_database_peer_target_database "targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}"
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.