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

oci.DataSafe.TargetDatabasePeerTargetDatabase

Explore with Pulumi AI

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

    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[_datasafe.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[_datasafe.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=oci.data_safe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs(
            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=oci.data_safe.TargetDatabasePeerTargetDatabaseTlsConfigArgs(
            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

    The TargetDatabasePeerTargetDatabase resource accepts the following input properties:

    DatabaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetails
    (Updatable) Details of the database for the registration in Data Safe.
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    DataguardAssociationId string
    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 TargetDatabasePeerTargetDatabaseTlsConfig
    (Updatable) The details required to establish a TLS enabled connection.
    DatabaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
    (Updatable) Details of the database for the registration in Data Safe.
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    DataguardAssociationId string
    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 TargetDatabasePeerTargetDatabaseTlsConfigArgs
    (Updatable) The details required to establish a TLS enabled connection.
    databaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetails
    (Updatable) Details of the database for the registration in Data Safe.
    targetDatabaseId String
    The OCID of the Data Safe target database.
    dataguardAssociationId String
    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 TargetDatabasePeerTargetDatabaseTlsConfig
    (Updatable) The details required to establish a TLS enabled connection.
    databaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetails
    (Updatable) Details of the database for the registration in Data Safe.
    targetDatabaseId string
    The OCID of the Data Safe target database.
    dataguardAssociationId string
    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 TargetDatabasePeerTargetDatabaseTlsConfig
    (Updatable) The details required to establish a TLS enabled connection.
    database_details datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
    (Updatable) Details of the database for the registration in Data Safe.
    target_database_id str
    The OCID of the Data Safe target database.
    dataguard_association_id str
    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 datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs
    (Updatable) The details required to establish a TLS enabled connection.
    databaseDetails Property Map
    (Updatable) Details of the database for the registration in Data Safe.
    targetDatabaseId String
    The OCID of the Data Safe target database.
    dataguardAssociationId String
    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:

    DatabaseUniqueName string
    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.
    DatabaseUniqueName string
    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.
    databaseUniqueName String
    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.
    databaseUniqueName string
    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_name str
    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.
    databaseUniqueName String
    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[_datasafe.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[_datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs] = None) -> TargetDatabasePeerTargetDatabase
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    DatabaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetails
    (Updatable) Details of the database for the registration in Data Safe.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    DataguardAssociationId string
    The OCID of the Data Guard Association resource in which the database 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.
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    TimeCreated string
    The date and time of the peer target database registration in Data Safe.
    TlsConfig TargetDatabasePeerTargetDatabaseTlsConfig
    (Updatable) The details required to establish a TLS enabled connection.
    DatabaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
    (Updatable) Details of the database for the registration in Data Safe.
    DatabaseUniqueName string
    Unique name of the database associated to the peer target database.
    DataguardAssociationId string
    The OCID of the Data Guard Association resource in which the database 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.
    TargetDatabaseId string
    The OCID of the Data Safe target database.
    TimeCreated string
    The date and time of the peer target database registration in Data Safe.
    TlsConfig TargetDatabasePeerTargetDatabaseTlsConfigArgs
    (Updatable) The details required to establish a TLS enabled connection.
    databaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetails
    (Updatable) Details of the database for the registration in Data Safe.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    dataguardAssociationId String
    The OCID of the Data Guard Association resource in which the database 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.
    targetDatabaseId String
    The OCID of the Data Safe target database.
    timeCreated String
    The date and time of the peer target database registration in Data Safe.
    tlsConfig TargetDatabasePeerTargetDatabaseTlsConfig
    (Updatable) The details required to establish a TLS enabled connection.
    databaseDetails TargetDatabasePeerTargetDatabaseDatabaseDetails
    (Updatable) Details of the database for the registration in Data Safe.
    databaseUniqueName string
    Unique name of the database associated to the peer target database.
    dataguardAssociationId string
    The OCID of the Data Guard Association resource in which the database 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.
    targetDatabaseId string
    The OCID of the Data Safe target database.
    timeCreated string
    The date and time of the peer target database registration in Data Safe.
    tlsConfig TargetDatabasePeerTargetDatabaseTlsConfig
    (Updatable) The details required to establish a TLS enabled connection.
    database_details datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
    (Updatable) Details of the database for the registration in Data Safe.
    database_unique_name str
    Unique name of the database associated to the peer target database.
    dataguard_association_id str
    The OCID of the Data Guard Association resource in which the database 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_id str
    The OCID of the Data Safe target database.
    time_created str
    The date and time of the peer target database registration in Data Safe.
    tls_config datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs
    (Updatable) The details required to establish a TLS enabled connection.
    databaseDetails Property Map
    (Updatable) Details of the database for the registration in Data Safe.
    databaseUniqueName String
    Unique name of the database associated to the peer target database.
    dataguardAssociationId String
    The OCID of the Data Guard Association resource in which the database 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.
    targetDatabaseId String
    The OCID of the Data Safe target database.
    timeCreated String
    The date and time of the peer target database registration in Data Safe.
    tlsConfig Property Map
    (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.
    AutonomousDatabaseId string
    (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
    DbSystemId string
    (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.
    VmClusterId string
    (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.
    AutonomousDatabaseId string
    (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
    DbSystemId string
    (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.
    VmClusterId string
    (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.
    autonomousDatabaseId String
    (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
    dbSystemId String
    (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.
    vmClusterId String
    (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.
    autonomousDatabaseId string
    (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
    dbSystemId string
    (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.
    vmClusterId string
    (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_id str
    (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
    db_system_id str
    (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_id str
    (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.
    autonomousDatabaseId String
    (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
    dbSystemId String
    (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.
    vmClusterId String
    (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.
    CertificateStoreType string
    (Updatable) The format of the certificate store.
    KeyStoreContent string
    (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.
    TrustStoreContent string

    (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.
    CertificateStoreType string
    (Updatable) The format of the certificate store.
    KeyStoreContent string
    (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.
    TrustStoreContent string

    (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.
    certificateStoreType String
    (Updatable) The format of the certificate store.
    keyStoreContent String
    (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.
    trustStoreContent String

    (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.
    certificateStoreType string
    (Updatable) The format of the certificate store.
    keyStoreContent string
    (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.
    trustStoreContent string

    (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_type str
    (Updatable) The format of the certificate store.
    key_store_content str
    (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_content str

    (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.
    certificateStoreType String
    (Updatable) The format of the certificate store.
    keyStoreContent String
    (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.
    trustStoreContent String

    (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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi