oci.DataSafe.TargetDatabase
Explore with Pulumi AI
This resource provides the Target Database resource in Oracle Cloud Infrastructure Data Safe service.
Registers the specified database with Data Safe and creates a Data Safe target database in the Data Safe Console.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabase = new oci.datasafe.TargetDatabase("test_target_database", {
compartmentId: compartmentId,
databaseDetails: {
databaseType: targetDatabaseDatabaseDetailsDatabaseType,
infrastructureType: targetDatabaseDatabaseDetailsInfrastructureType,
autonomousDatabaseId: testAutonomousDatabase.id,
dbSystemId: testDbSystem.id,
instanceId: testInstance.id,
ipAddresses: targetDatabaseDatabaseDetailsIpAddresses,
listenerPort: targetDatabaseDatabaseDetailsListenerPort,
serviceName: testService.name,
vmClusterId: testVmCluster.id,
},
connectionOption: {
connectionType: targetDatabaseConnectionOptionConnectionType,
datasafePrivateEndpointId: testPrivateEndpoint.id,
onPremConnectorId: testOnPremConnector.id,
},
credentials: {
password: targetDatabaseCredentialsPassword,
userName: testUser.name,
},
definedTags: {
"Operations.CostCenter": "42",
},
description: targetDatabaseDescription,
displayName: targetDatabaseDisplayName,
freeformTags: {
Department: "Finance",
},
peerTargetDatabaseDetails: [{
databaseDetails: {
databaseType: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType,
infrastructureType: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType,
autonomousDatabaseId: testAutonomousDatabase.id,
dbSystemId: testDbSystem.id,
instanceId: testInstance.id,
ipAddresses: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses,
listenerPort: targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort,
serviceName: testService.name,
vmClusterId: testVmCluster.id,
},
dataguardAssociationId: testAssociation.id,
description: targetDatabasePeerTargetDatabaseDetailsDescription,
displayName: targetDatabasePeerTargetDatabaseDetailsDisplayName,
tlsConfig: {
status: targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus,
certificateStoreType: targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType,
keyStoreContent: targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent,
storePassword: targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword,
trustStoreContent: targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent,
},
}],
tlsConfig: {
status: targetDatabaseTlsConfigStatus,
certificateStoreType: targetDatabaseTlsConfigCertificateStoreType,
keyStoreContent: targetDatabaseTlsConfigKeyStoreContent,
storePassword: targetDatabaseTlsConfigStorePassword,
trustStoreContent: targetDatabaseTlsConfigTrustStoreContent,
},
});
import pulumi
import pulumi_oci as oci
test_target_database = oci.data_safe.TargetDatabase("test_target_database",
compartment_id=compartment_id,
database_details=oci.data_safe.TargetDatabaseDatabaseDetailsArgs(
database_type=target_database_database_details_database_type,
infrastructure_type=target_database_database_details_infrastructure_type,
autonomous_database_id=test_autonomous_database["id"],
db_system_id=test_db_system["id"],
instance_id=test_instance["id"],
ip_addresses=target_database_database_details_ip_addresses,
listener_port=target_database_database_details_listener_port,
service_name=test_service["name"],
vm_cluster_id=test_vm_cluster["id"],
),
connection_option=oci.data_safe.TargetDatabaseConnectionOptionArgs(
connection_type=target_database_connection_option_connection_type,
datasafe_private_endpoint_id=test_private_endpoint["id"],
on_prem_connector_id=test_on_prem_connector["id"],
),
credentials=oci.data_safe.TargetDatabaseCredentialsArgs(
password=target_database_credentials_password,
user_name=test_user["name"],
),
defined_tags={
"Operations.CostCenter": "42",
},
description=target_database_description,
display_name=target_database_display_name,
freeform_tags={
"Department": "Finance",
},
peer_target_database_details=[oci.data_safe.TargetDatabasePeerTargetDatabaseDetailArgs(
database_details=oci.data_safe.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs(
database_type=target_database_peer_target_database_details_database_details_database_type,
infrastructure_type=target_database_peer_target_database_details_database_details_infrastructure_type,
autonomous_database_id=test_autonomous_database["id"],
db_system_id=test_db_system["id"],
instance_id=test_instance["id"],
ip_addresses=target_database_peer_target_database_details_database_details_ip_addresses,
listener_port=target_database_peer_target_database_details_database_details_listener_port,
service_name=test_service["name"],
vm_cluster_id=test_vm_cluster["id"],
),
dataguard_association_id=test_association["id"],
description=target_database_peer_target_database_details_description,
display_name=target_database_peer_target_database_details_display_name,
tls_config=oci.data_safe.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs(
status=target_database_peer_target_database_details_tls_config_status,
certificate_store_type=target_database_peer_target_database_details_tls_config_certificate_store_type,
key_store_content=target_database_peer_target_database_details_tls_config_key_store_content,
store_password=target_database_peer_target_database_details_tls_config_store_password,
trust_store_content=target_database_peer_target_database_details_tls_config_trust_store_content,
),
)],
tls_config=oci.data_safe.TargetDatabaseTlsConfigArgs(
status=target_database_tls_config_status,
certificate_store_type=target_database_tls_config_certificate_store_type,
key_store_content=target_database_tls_config_key_store_content,
store_password=target_database_tls_config_store_password,
trust_store_content=target_database_tls_config_trust_store_content,
))
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DataSafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataSafe.NewTargetDatabase(ctx, "test_target_database", &DataSafe.TargetDatabaseArgs{
CompartmentId: pulumi.Any(compartmentId),
DatabaseDetails: &datasafe.TargetDatabaseDatabaseDetailsArgs{
DatabaseType: pulumi.Any(targetDatabaseDatabaseDetailsDatabaseType),
InfrastructureType: pulumi.Any(targetDatabaseDatabaseDetailsInfrastructureType),
AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
DbSystemId: pulumi.Any(testDbSystem.Id),
InstanceId: pulumi.Any(testInstance.Id),
IpAddresses: pulumi.Any(targetDatabaseDatabaseDetailsIpAddresses),
ListenerPort: pulumi.Any(targetDatabaseDatabaseDetailsListenerPort),
ServiceName: pulumi.Any(testService.Name),
VmClusterId: pulumi.Any(testVmCluster.Id),
},
ConnectionOption: &datasafe.TargetDatabaseConnectionOptionArgs{
ConnectionType: pulumi.Any(targetDatabaseConnectionOptionConnectionType),
DatasafePrivateEndpointId: pulumi.Any(testPrivateEndpoint.Id),
OnPremConnectorId: pulumi.Any(testOnPremConnector.Id),
},
Credentials: &datasafe.TargetDatabaseCredentialsArgs{
Password: pulumi.Any(targetDatabaseCredentialsPassword),
UserName: pulumi.Any(testUser.Name),
},
DefinedTags: pulumi.Map{
"Operations.CostCenter": pulumi.Any("42"),
},
Description: pulumi.Any(targetDatabaseDescription),
DisplayName: pulumi.Any(targetDatabaseDisplayName),
FreeformTags: pulumi.Map{
"Department": pulumi.Any("Finance"),
},
PeerTargetDatabaseDetails: datasafe.TargetDatabasePeerTargetDatabaseDetailArray{
&datasafe.TargetDatabasePeerTargetDatabaseDetailArgs{
DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs{
DatabaseType: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType),
InfrastructureType: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType),
AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
DbSystemId: pulumi.Any(testDbSystem.Id),
InstanceId: pulumi.Any(testInstance.Id),
IpAddresses: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses),
ListenerPort: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort),
ServiceName: pulumi.Any(testService.Name),
VmClusterId: pulumi.Any(testVmCluster.Id),
},
DataguardAssociationId: pulumi.Any(testAssociation.Id),
Description: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDescription),
DisplayName: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsDisplayName),
TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs{
Status: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus),
CertificateStoreType: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType),
KeyStoreContent: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent),
StorePassword: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword),
TrustStoreContent: pulumi.Any(targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent),
},
},
},
TlsConfig: &datasafe.TargetDatabaseTlsConfigArgs{
Status: pulumi.Any(targetDatabaseTlsConfigStatus),
CertificateStoreType: pulumi.Any(targetDatabaseTlsConfigCertificateStoreType),
KeyStoreContent: pulumi.Any(targetDatabaseTlsConfigKeyStoreContent),
StorePassword: pulumi.Any(targetDatabaseTlsConfigStorePassword),
TrustStoreContent: pulumi.Any(targetDatabaseTlsConfigTrustStoreContent),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testTargetDatabase = new Oci.DataSafe.TargetDatabase("test_target_database", new()
{
CompartmentId = compartmentId,
DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabaseDatabaseDetailsArgs
{
DatabaseType = targetDatabaseDatabaseDetailsDatabaseType,
InfrastructureType = targetDatabaseDatabaseDetailsInfrastructureType,
AutonomousDatabaseId = testAutonomousDatabase.Id,
DbSystemId = testDbSystem.Id,
InstanceId = testInstance.Id,
IpAddresses = targetDatabaseDatabaseDetailsIpAddresses,
ListenerPort = targetDatabaseDatabaseDetailsListenerPort,
ServiceName = testService.Name,
VmClusterId = testVmCluster.Id,
},
ConnectionOption = new Oci.DataSafe.Inputs.TargetDatabaseConnectionOptionArgs
{
ConnectionType = targetDatabaseConnectionOptionConnectionType,
DatasafePrivateEndpointId = testPrivateEndpoint.Id,
OnPremConnectorId = testOnPremConnector.Id,
},
Credentials = new Oci.DataSafe.Inputs.TargetDatabaseCredentialsArgs
{
Password = targetDatabaseCredentialsPassword,
UserName = testUser.Name,
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = targetDatabaseDescription,
DisplayName = targetDatabaseDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
PeerTargetDatabaseDetails = new[]
{
new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailArgs
{
DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs
{
DatabaseType = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType,
InfrastructureType = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType,
AutonomousDatabaseId = testAutonomousDatabase.Id,
DbSystemId = testDbSystem.Id,
InstanceId = testInstance.Id,
IpAddresses = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses,
ListenerPort = targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort,
ServiceName = testService.Name,
VmClusterId = testVmCluster.Id,
},
DataguardAssociationId = testAssociation.Id,
Description = targetDatabasePeerTargetDatabaseDetailsDescription,
DisplayName = targetDatabasePeerTargetDatabaseDetailsDisplayName,
TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs
{
Status = targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus,
CertificateStoreType = targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType,
KeyStoreContent = targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent,
StorePassword = targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword,
TrustStoreContent = targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent,
},
},
},
TlsConfig = new Oci.DataSafe.Inputs.TargetDatabaseTlsConfigArgs
{
Status = targetDatabaseTlsConfigStatus,
CertificateStoreType = targetDatabaseTlsConfigCertificateStoreType,
KeyStoreContent = targetDatabaseTlsConfigKeyStoreContent,
StorePassword = targetDatabaseTlsConfigStorePassword,
TrustStoreContent = targetDatabaseTlsConfigTrustStoreContent,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.TargetDatabase;
import com.pulumi.oci.DataSafe.TargetDatabaseArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseDatabaseDetailsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseConnectionOptionArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseCredentialsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDetailArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabaseTlsConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testTargetDatabase = new TargetDatabase("testTargetDatabase", TargetDatabaseArgs.builder()
.compartmentId(compartmentId)
.databaseDetails(TargetDatabaseDatabaseDetailsArgs.builder()
.databaseType(targetDatabaseDatabaseDetailsDatabaseType)
.infrastructureType(targetDatabaseDatabaseDetailsInfrastructureType)
.autonomousDatabaseId(testAutonomousDatabase.id())
.dbSystemId(testDbSystem.id())
.instanceId(testInstance.id())
.ipAddresses(targetDatabaseDatabaseDetailsIpAddresses)
.listenerPort(targetDatabaseDatabaseDetailsListenerPort)
.serviceName(testService.name())
.vmClusterId(testVmCluster.id())
.build())
.connectionOption(TargetDatabaseConnectionOptionArgs.builder()
.connectionType(targetDatabaseConnectionOptionConnectionType)
.datasafePrivateEndpointId(testPrivateEndpoint.id())
.onPremConnectorId(testOnPremConnector.id())
.build())
.credentials(TargetDatabaseCredentialsArgs.builder()
.password(targetDatabaseCredentialsPassword)
.userName(testUser.name())
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(targetDatabaseDescription)
.displayName(targetDatabaseDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.peerTargetDatabaseDetails(TargetDatabasePeerTargetDatabaseDetailArgs.builder()
.databaseDetails(TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs.builder()
.databaseType(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType)
.infrastructureType(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType)
.autonomousDatabaseId(testAutonomousDatabase.id())
.dbSystemId(testDbSystem.id())
.instanceId(testInstance.id())
.ipAddresses(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses)
.listenerPort(targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort)
.serviceName(testService.name())
.vmClusterId(testVmCluster.id())
.build())
.dataguardAssociationId(testAssociation.id())
.description(targetDatabasePeerTargetDatabaseDetailsDescription)
.displayName(targetDatabasePeerTargetDatabaseDetailsDisplayName)
.tlsConfig(TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs.builder()
.status(targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus)
.certificateStoreType(targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType)
.keyStoreContent(targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent)
.storePassword(targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword)
.trustStoreContent(targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent)
.build())
.build())
.tlsConfig(TargetDatabaseTlsConfigArgs.builder()
.status(targetDatabaseTlsConfigStatus)
.certificateStoreType(targetDatabaseTlsConfigCertificateStoreType)
.keyStoreContent(targetDatabaseTlsConfigKeyStoreContent)
.storePassword(targetDatabaseTlsConfigStorePassword)
.trustStoreContent(targetDatabaseTlsConfigTrustStoreContent)
.build())
.build());
}
}
resources:
testTargetDatabase:
type: oci:DataSafe:TargetDatabase
name: test_target_database
properties:
compartmentId: ${compartmentId}
databaseDetails:
databaseType: ${targetDatabaseDatabaseDetailsDatabaseType}
infrastructureType: ${targetDatabaseDatabaseDetailsInfrastructureType}
autonomousDatabaseId: ${testAutonomousDatabase.id}
dbSystemId: ${testDbSystem.id}
instanceId: ${testInstance.id}
ipAddresses: ${targetDatabaseDatabaseDetailsIpAddresses}
listenerPort: ${targetDatabaseDatabaseDetailsListenerPort}
serviceName: ${testService.name}
vmClusterId: ${testVmCluster.id}
connectionOption:
connectionType: ${targetDatabaseConnectionOptionConnectionType}
datasafePrivateEndpointId: ${testPrivateEndpoint.id}
onPremConnectorId: ${testOnPremConnector.id}
credentials:
password: ${targetDatabaseCredentialsPassword}
userName: ${testUser.name}
definedTags:
Operations.CostCenter: '42'
description: ${targetDatabaseDescription}
displayName: ${targetDatabaseDisplayName}
freeformTags:
Department: Finance
peerTargetDatabaseDetails:
- databaseDetails:
databaseType: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsDatabaseType}
infrastructureType: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsInfrastructureType}
autonomousDatabaseId: ${testAutonomousDatabase.id}
dbSystemId: ${testDbSystem.id}
instanceId: ${testInstance.id}
ipAddresses: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsIpAddresses}
listenerPort: ${targetDatabasePeerTargetDatabaseDetailsDatabaseDetailsListenerPort}
serviceName: ${testService.name}
vmClusterId: ${testVmCluster.id}
dataguardAssociationId: ${testAssociation.id}
description: ${targetDatabasePeerTargetDatabaseDetailsDescription}
displayName: ${targetDatabasePeerTargetDatabaseDetailsDisplayName}
tlsConfig:
status: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigStatus}
certificateStoreType: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigCertificateStoreType}
keyStoreContent: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigKeyStoreContent}
storePassword: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigStorePassword}
trustStoreContent: ${targetDatabasePeerTargetDatabaseDetailsTlsConfigTrustStoreContent}
tlsConfig:
status: ${targetDatabaseTlsConfigStatus}
certificateStoreType: ${targetDatabaseTlsConfigCertificateStoreType}
keyStoreContent: ${targetDatabaseTlsConfigKeyStoreContent}
storePassword: ${targetDatabaseTlsConfigStorePassword}
trustStoreContent: ${targetDatabaseTlsConfigTrustStoreContent}
Create TargetDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetDatabase(name: string, args: TargetDatabaseArgs, opts?: CustomResourceOptions);
@overload
def TargetDatabase(resource_name: str,
args: TargetDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TargetDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
database_details: Optional[_datasafe.TargetDatabaseDatabaseDetailsArgs] = None,
connection_option: Optional[_datasafe.TargetDatabaseConnectionOptionArgs] = None,
credentials: Optional[_datasafe.TargetDatabaseCredentialsArgs] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
peer_target_database_details: Optional[Sequence[_datasafe.TargetDatabasePeerTargetDatabaseDetailArgs]] = None,
tls_config: Optional[_datasafe.TargetDatabaseTlsConfigArgs] = None)
func NewTargetDatabase(ctx *Context, name string, args TargetDatabaseArgs, opts ...ResourceOption) (*TargetDatabase, error)
public TargetDatabase(string name, TargetDatabaseArgs args, CustomResourceOptions? opts = null)
public TargetDatabase(String name, TargetDatabaseArgs args)
public TargetDatabase(String name, TargetDatabaseArgs args, CustomResourceOptions options)
type: oci:DataSafe:TargetDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var targetDatabaseResource = new Oci.DataSafe.TargetDatabase("targetDatabaseResource", new()
{
CompartmentId = "string",
DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabaseDatabaseDetailsArgs
{
DatabaseType = "string",
InfrastructureType = "string",
AutonomousDatabaseId = "string",
DbSystemId = "string",
InstanceId = "string",
IpAddresses = new[]
{
"string",
},
ListenerPort = 0,
ServiceName = "string",
VmClusterId = "string",
},
ConnectionOption = new Oci.DataSafe.Inputs.TargetDatabaseConnectionOptionArgs
{
ConnectionType = "string",
DatasafePrivateEndpointId = "string",
OnPremConnectorId = "string",
},
Credentials = new Oci.DataSafe.Inputs.TargetDatabaseCredentialsArgs
{
Password = "string",
UserName = "string",
},
DefinedTags =
{
{ "string", "any" },
},
Description = "string",
DisplayName = "string",
FreeformTags =
{
{ "string", "any" },
},
PeerTargetDatabaseDetails = new[]
{
new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailArgs
{
DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs
{
DatabaseType = "string",
InfrastructureType = "string",
AutonomousDatabaseId = "string",
DbSystemId = "string",
InstanceId = "string",
IpAddresses = new[]
{
"string",
},
ListenerPort = 0,
ServiceName = "string",
VmClusterId = "string",
},
DataguardAssociationId = "string",
Description = "string",
DisplayName = "string",
TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs
{
Status = "string",
CertificateStoreType = "string",
KeyStoreContent = "string",
StorePassword = "string",
TrustStoreContent = "string",
},
},
},
TlsConfig = new Oci.DataSafe.Inputs.TargetDatabaseTlsConfigArgs
{
Status = "string",
CertificateStoreType = "string",
KeyStoreContent = "string",
StorePassword = "string",
TrustStoreContent = "string",
},
});
example, err := DataSafe.NewTargetDatabase(ctx, "targetDatabaseResource", &DataSafe.TargetDatabaseArgs{
CompartmentId: pulumi.String("string"),
DatabaseDetails: &datasafe.TargetDatabaseDatabaseDetailsArgs{
DatabaseType: pulumi.String("string"),
InfrastructureType: pulumi.String("string"),
AutonomousDatabaseId: pulumi.String("string"),
DbSystemId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
ListenerPort: pulumi.Int(0),
ServiceName: pulumi.String("string"),
VmClusterId: pulumi.String("string"),
},
ConnectionOption: &datasafe.TargetDatabaseConnectionOptionArgs{
ConnectionType: pulumi.String("string"),
DatasafePrivateEndpointId: pulumi.String("string"),
OnPremConnectorId: pulumi.String("string"),
},
Credentials: &datasafe.TargetDatabaseCredentialsArgs{
Password: pulumi.String("string"),
UserName: pulumi.String("string"),
},
DefinedTags: pulumi.Map{
"string": pulumi.Any("any"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.Map{
"string": pulumi.Any("any"),
},
PeerTargetDatabaseDetails: datasafe.TargetDatabasePeerTargetDatabaseDetailArray{
&datasafe.TargetDatabasePeerTargetDatabaseDetailArgs{
DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs{
DatabaseType: pulumi.String("string"),
InfrastructureType: pulumi.String("string"),
AutonomousDatabaseId: pulumi.String("string"),
DbSystemId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
ListenerPort: pulumi.Int(0),
ServiceName: pulumi.String("string"),
VmClusterId: pulumi.String("string"),
},
DataguardAssociationId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs{
Status: pulumi.String("string"),
CertificateStoreType: pulumi.String("string"),
KeyStoreContent: pulumi.String("string"),
StorePassword: pulumi.String("string"),
TrustStoreContent: pulumi.String("string"),
},
},
},
TlsConfig: &datasafe.TargetDatabaseTlsConfigArgs{
Status: pulumi.String("string"),
CertificateStoreType: pulumi.String("string"),
KeyStoreContent: pulumi.String("string"),
StorePassword: pulumi.String("string"),
TrustStoreContent: pulumi.String("string"),
},
})
var targetDatabaseResource = new TargetDatabase("targetDatabaseResource", TargetDatabaseArgs.builder()
.compartmentId("string")
.databaseDetails(TargetDatabaseDatabaseDetailsArgs.builder()
.databaseType("string")
.infrastructureType("string")
.autonomousDatabaseId("string")
.dbSystemId("string")
.instanceId("string")
.ipAddresses("string")
.listenerPort(0)
.serviceName("string")
.vmClusterId("string")
.build())
.connectionOption(TargetDatabaseConnectionOptionArgs.builder()
.connectionType("string")
.datasafePrivateEndpointId("string")
.onPremConnectorId("string")
.build())
.credentials(TargetDatabaseCredentialsArgs.builder()
.password("string")
.userName("string")
.build())
.definedTags(Map.of("string", "any"))
.description("string")
.displayName("string")
.freeformTags(Map.of("string", "any"))
.peerTargetDatabaseDetails(TargetDatabasePeerTargetDatabaseDetailArgs.builder()
.databaseDetails(TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs.builder()
.databaseType("string")
.infrastructureType("string")
.autonomousDatabaseId("string")
.dbSystemId("string")
.instanceId("string")
.ipAddresses("string")
.listenerPort(0)
.serviceName("string")
.vmClusterId("string")
.build())
.dataguardAssociationId("string")
.description("string")
.displayName("string")
.tlsConfig(TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs.builder()
.status("string")
.certificateStoreType("string")
.keyStoreContent("string")
.storePassword("string")
.trustStoreContent("string")
.build())
.build())
.tlsConfig(TargetDatabaseTlsConfigArgs.builder()
.status("string")
.certificateStoreType("string")
.keyStoreContent("string")
.storePassword("string")
.trustStoreContent("string")
.build())
.build());
target_database_resource = oci.data_safe.TargetDatabase("targetDatabaseResource",
compartment_id="string",
database_details=oci.data_safe.TargetDatabaseDatabaseDetailsArgs(
database_type="string",
infrastructure_type="string",
autonomous_database_id="string",
db_system_id="string",
instance_id="string",
ip_addresses=["string"],
listener_port=0,
service_name="string",
vm_cluster_id="string",
),
connection_option=oci.data_safe.TargetDatabaseConnectionOptionArgs(
connection_type="string",
datasafe_private_endpoint_id="string",
on_prem_connector_id="string",
),
credentials=oci.data_safe.TargetDatabaseCredentialsArgs(
password="string",
user_name="string",
),
defined_tags={
"string": "any",
},
description="string",
display_name="string",
freeform_tags={
"string": "any",
},
peer_target_database_details=[oci.data_safe.TargetDatabasePeerTargetDatabaseDetailArgs(
database_details=oci.data_safe.TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs(
database_type="string",
infrastructure_type="string",
autonomous_database_id="string",
db_system_id="string",
instance_id="string",
ip_addresses=["string"],
listener_port=0,
service_name="string",
vm_cluster_id="string",
),
dataguard_association_id="string",
description="string",
display_name="string",
tls_config=oci.data_safe.TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs(
status="string",
certificate_store_type="string",
key_store_content="string",
store_password="string",
trust_store_content="string",
),
)],
tls_config=oci.data_safe.TargetDatabaseTlsConfigArgs(
status="string",
certificate_store_type="string",
key_store_content="string",
store_password="string",
trust_store_content="string",
))
const targetDatabaseResource = new oci.datasafe.TargetDatabase("targetDatabaseResource", {
compartmentId: "string",
databaseDetails: {
databaseType: "string",
infrastructureType: "string",
autonomousDatabaseId: "string",
dbSystemId: "string",
instanceId: "string",
ipAddresses: ["string"],
listenerPort: 0,
serviceName: "string",
vmClusterId: "string",
},
connectionOption: {
connectionType: "string",
datasafePrivateEndpointId: "string",
onPremConnectorId: "string",
},
credentials: {
password: "string",
userName: "string",
},
definedTags: {
string: "any",
},
description: "string",
displayName: "string",
freeformTags: {
string: "any",
},
peerTargetDatabaseDetails: [{
databaseDetails: {
databaseType: "string",
infrastructureType: "string",
autonomousDatabaseId: "string",
dbSystemId: "string",
instanceId: "string",
ipAddresses: ["string"],
listenerPort: 0,
serviceName: "string",
vmClusterId: "string",
},
dataguardAssociationId: "string",
description: "string",
displayName: "string",
tlsConfig: {
status: "string",
certificateStoreType: "string",
keyStoreContent: "string",
storePassword: "string",
trustStoreContent: "string",
},
}],
tlsConfig: {
status: "string",
certificateStoreType: "string",
keyStoreContent: "string",
storePassword: "string",
trustStoreContent: "string",
},
});
type: oci:DataSafe:TargetDatabase
properties:
compartmentId: string
connectionOption:
connectionType: string
datasafePrivateEndpointId: string
onPremConnectorId: string
credentials:
password: string
userName: string
databaseDetails:
autonomousDatabaseId: string
databaseType: string
dbSystemId: string
infrastructureType: string
instanceId: string
ipAddresses:
- string
listenerPort: 0
serviceName: string
vmClusterId: string
definedTags:
string: any
description: string
displayName: string
freeformTags:
string: any
peerTargetDatabaseDetails:
- databaseDetails:
autonomousDatabaseId: string
databaseType: string
dbSystemId: string
infrastructureType: string
instanceId: string
ipAddresses:
- string
listenerPort: 0
serviceName: string
vmClusterId: string
dataguardAssociationId: string
description: string
displayName: string
tlsConfig:
certificateStoreType: string
keyStoreContent: string
status: string
storePassword: string
trustStoreContent: string
tlsConfig:
certificateStoreType: string
keyStoreContent: string
status: string
storePassword: string
trustStoreContent: string
TargetDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TargetDatabase resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- Database
Details TargetDatabase Database Details - (Updatable) Details of the database for the registration in Data Safe.
- Connection
Option TargetDatabase Connection Option - (Updatable) Types of connection supported by Data Safe.
- Credentials
Target
Database Credentials - (Updatable) The database credentials required for Data Safe to connect to the database.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- Display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Dictionary<string, object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Peer
Target List<TargetDatabase Details Database Peer Target Database Detail> - The details of the database to be registered as a peer target database.
- Tls
Config TargetDatabase Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- Database
Details TargetDatabase Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- Connection
Option TargetDatabase Connection Option Args - (Updatable) Types of connection supported by Data Safe.
- Credentials
Target
Database Credentials Args - (Updatable) The database credentials required for Data Safe to connect to the database.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- Display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- map[string]interface{}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Peer
Target []TargetDatabase Details Database Peer Target Database Detail Args - The details of the database to be registered as a peer target database.
- Tls
Config TargetDatabase Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- database
Details TargetDatabase Database Details - (Updatable) Details of the database for the registration in Data Safe.
- connection
Option TargetDatabase Connection Option - (Updatable) Types of connection supported by Data Safe.
- credentials
Target
Database Credentials - (Updatable) The database credentials required for Data Safe to connect to the database.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- display
Name String - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<String,Object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- peer
Target List<TargetDatabase Details Database Peer Target Database Detail> - The details of the database to be registered as a peer target database.
- tls
Config TargetDatabase Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- compartment
Id string - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- database
Details TargetDatabase Database Details - (Updatable) Details of the database for the registration in Data Safe.
- connection
Option TargetDatabase Connection Option - (Updatable) Types of connection supported by Data Safe.
- credentials
Target
Database Credentials - (Updatable) The database credentials required for Data Safe to connect to the database.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the target database in Data Safe.
- display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- {[key: string]: any}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- peer
Target TargetDatabase Details Database Peer Target Database Detail[] - The details of the database to be registered as a peer target database.
- tls
Config TargetDatabase Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- compartment_
id str - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- database_
details datasafe.Target Database Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- connection_
option datasafe.Target Database Connection Option Args - (Updatable) Types of connection supported by Data Safe.
- credentials
datasafe.
Target Database Credentials Args - (Updatable) The database credentials required for Data Safe to connect to the database.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the target database in Data Safe.
- display_
name str - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Mapping[str, Any]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- peer_
target_ Sequence[datasafe.database_ details Target Database Peer Target Database Detail Args] - The details of the database to be registered as a peer target database.
- tls_
config datasafe.Target Database Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- database
Details Property Map - (Updatable) Details of the database for the registration in Data Safe.
- connection
Option Property Map - (Updatable) Types of connection supported by Data Safe.
- credentials Property Map
- (Updatable) The database credentials required for Data Safe to connect to the database.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- display
Name String - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<Any>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- peer
Target List<Property Map>Database Details - The details of the database to be registered as a peer target database.
- tls
Config Property Map - (Updatable) The details required to establish a TLS enabled connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetDatabase resource produces the following output properties:
- Associated
Resource List<string>Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- Peer
Target List<TargetDatabases Database Peer Target Database> - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- Time
Updated string - The date and time of the target database update in Data Safe.
- Associated
Resource []stringIds - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- Peer
Target []TargetDatabases Database Peer Target Database Type - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- Time
Updated string - The date and time of the target database update in Data Safe.
- associated
Resource List<String>Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the peer target database in Data Safe.
- peer
Target List<TargetDatabases Database Peer Target Database> - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time
Updated String - The date and time of the target database update in Data Safe.
- associated
Resource string[]Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- peer
Target TargetDatabases Database Peer Target Database[] - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state string
- The current state of the target database in Data Safe.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time
Updated string - The date and time of the target database update in Data Safe.
- associated_
resource_ Sequence[str]ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - Details about the current state of the peer target database in Data Safe.
- peer_
target_ Sequence[datasafe.databases Target Database Peer Target Database] - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state str
- The current state of the target database in Data Safe.
- Mapping[str, Any]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time_
updated str - The date and time of the target database update in Data Safe.
- associated
Resource List<String>Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - Details about the current state of the peer target database in Data Safe.
- peer
Target List<Property Map>Databases - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time
Updated String - The date and time of the target database update in Data Safe.
Look up Existing TargetDatabase Resource
Get an existing TargetDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TargetDatabaseState, opts?: CustomResourceOptions): TargetDatabase
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associated_resource_ids: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
connection_option: Optional[_datasafe.TargetDatabaseConnectionOptionArgs] = None,
credentials: Optional[_datasafe.TargetDatabaseCredentialsArgs] = None,
database_details: Optional[_datasafe.TargetDatabaseDatabaseDetailsArgs] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
lifecycle_details: Optional[str] = None,
peer_target_database_details: Optional[Sequence[_datasafe.TargetDatabasePeerTargetDatabaseDetailArgs]] = None,
peer_target_databases: Optional[Sequence[_datasafe.TargetDatabasePeerTargetDatabaseArgs]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, Any]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
tls_config: Optional[_datasafe.TargetDatabaseTlsConfigArgs] = None) -> TargetDatabase
func GetTargetDatabase(ctx *Context, name string, id IDInput, state *TargetDatabaseState, opts ...ResourceOption) (*TargetDatabase, error)
public static TargetDatabase Get(string name, Input<string> id, TargetDatabaseState? state, CustomResourceOptions? opts = null)
public static TargetDatabase get(String name, Output<String> id, TargetDatabaseState state, CustomResourceOptions options)
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.
- Associated
Resource List<string>Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- Connection
Option TargetDatabase Connection Option - (Updatable) Types of connection supported by Data Safe.
- Credentials
Target
Database Credentials - (Updatable) The database credentials required for Data Safe to connect to the database.
- Database
Details TargetDatabase Database Details - (Updatable) Details of the database for the registration in Data Safe.
- Dictionary<string, object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- Display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Dictionary<string, object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- Peer
Target List<TargetDatabase Details Database Peer Target Database Detail> - The details of the database to be registered as a peer target database.
- Peer
Target List<TargetDatabases Database Peer Target Database> - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- Time
Updated string - The date and time of the target database update in Data Safe.
- Tls
Config TargetDatabase Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- Associated
Resource []stringIds - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- Compartment
Id string - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- Connection
Option TargetDatabase Connection Option Args - (Updatable) Types of connection supported by Data Safe.
- Credentials
Target
Database Credentials Args - (Updatable) The database credentials required for Data Safe to connect to the database.
- Database
Details TargetDatabase Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- map[string]interface{}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- Description string
- (Updatable) The description of the target database in Data Safe.
- Display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- map[string]interface{}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- Lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- Peer
Target []TargetDatabase Details Database Peer Target Database Detail Args - The details of the database to be registered as a peer target database.
- Peer
Target []TargetDatabases Database Peer Target Database Type Args - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- State string
- The current state of the target database in Data Safe.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- Time
Updated string - The date and time of the target database update in Data Safe.
- Tls
Config TargetDatabase Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- associated
Resource List<String>Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connection
Option TargetDatabase Connection Option - (Updatable) Types of connection supported by Data Safe.
- credentials
Target
Database Credentials - (Updatable) The database credentials required for Data Safe to connect to the database.
- database
Details TargetDatabase Database Details - (Updatable) Details of the database for the registration in Data Safe.
- Map<String,Object>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- display
Name String - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<String,Object>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- lifecycle
Details String - Details about the current state of the peer target database in Data Safe.
- peer
Target List<TargetDatabase Details Database Peer Target Database Detail> - The details of the database to be registered as a peer target database.
- peer
Target List<TargetDatabases Database Peer Target Database> - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time
Updated String - The date and time of the target database update in Data Safe.
- tls
Config TargetDatabase Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- associated
Resource string[]Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartment
Id string - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connection
Option TargetDatabase Connection Option - (Updatable) Types of connection supported by Data Safe.
- credentials
Target
Database Credentials - (Updatable) The database credentials required for Data Safe to connect to the database.
- database
Details TargetDatabase Database Details - (Updatable) Details of the database for the registration in Data Safe.
- {[key: string]: any}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description string
- (Updatable) The description of the target database in Data Safe.
- display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- {[key: string]: any}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- peer
Target TargetDatabase Details Database Peer Target Database Detail[] - The details of the database to be registered as a peer target database.
- peer
Target TargetDatabases Database Peer Target Database[] - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state string
- The current state of the target database in Data Safe.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time
Updated string - The date and time of the target database update in Data Safe.
- tls
Config TargetDatabase Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- associated_
resource_ Sequence[str]ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartment_
id str - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connection_
option datasafe.Target Database Connection Option Args - (Updatable) Types of connection supported by Data Safe.
- credentials
datasafe.
Target Database Credentials Args - (Updatable) The database credentials required for Data Safe to connect to the database.
- database_
details datasafe.Target Database Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- Mapping[str, Any]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description str
- (Updatable) The description of the target database in Data Safe.
- display_
name str - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Mapping[str, Any]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- lifecycle_
details str - Details about the current state of the peer target database in Data Safe.
- peer_
target_ Sequence[datasafe.database_ details Target Database Peer Target Database Detail Args] - The details of the database to be registered as a peer target database.
- peer_
target_ Sequence[datasafe.databases Target Database Peer Target Database Args] - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state str
- The current state of the target database in Data Safe.
- Mapping[str, Any]
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time_
updated str - The date and time of the target database update in Data Safe.
- tls_
config datasafe.Target Database Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- associated
Resource List<String>Ids - The OCIDs of associated resources like database, Data Safe private endpoint etc.
- compartment
Id String - (Updatable) The OCID of the compartment in which to create the Data Safe target database.
- connection
Option Property Map - (Updatable) Types of connection supported by Data Safe.
- credentials Property Map
- (Updatable) The database credentials required for Data Safe to connect to the database.
- database
Details Property Map - (Updatable) Details of the database for the registration in Data Safe.
- Map<Any>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example:
{"Operations.CostCenter": "42"}
- description String
- (Updatable) The description of the target database in Data Safe.
- display
Name String - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Map<Any>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example:
{"Department": "Finance"}
- lifecycle
Details String - Details about the current state of the peer target database in Data Safe.
- peer
Target List<Property Map>Database Details - The details of the database to be registered as a peer target database.
- peer
Target List<Property Map>Databases - The OCIDs of associated resources like Database, Data Safe private endpoint etc.
- state String
- The current state of the target database in Data Safe.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- time
Updated String - The date and time of the target database update in Data Safe.
- tls
Config Property Map - (Updatable) The details required to establish a TLS enabled connection.
Supporting Types
TargetDatabaseConnectionOption, TargetDatabaseConnectionOptionArgs
- Connection
Type string - (Updatable) The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- Datasafe
Private stringEndpoint Id - (Updatable) The OCID of the Data Safe private endpoint.
- On
Prem stringConnector Id - (Updatable) The OCID of the on-premises connector.
- Connection
Type string - (Updatable) The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- Datasafe
Private stringEndpoint Id - (Updatable) The OCID of the Data Safe private endpoint.
- On
Prem stringConnector Id - (Updatable) The OCID of the on-premises connector.
- connection
Type String - (Updatable) The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- datasafe
Private StringEndpoint Id - (Updatable) The OCID of the Data Safe private endpoint.
- on
Prem StringConnector Id - (Updatable) The OCID of the on-premises connector.
- connection
Type string - (Updatable) The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- datasafe
Private stringEndpoint Id - (Updatable) The OCID of the Data Safe private endpoint.
- on
Prem stringConnector Id - (Updatable) The OCID of the on-premises connector.
- connection_
type str - (Updatable) The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- datasafe_
private_ strendpoint_ id - (Updatable) The OCID of the Data Safe private endpoint.
- on_
prem_ strconnector_ id - (Updatable) The OCID of the on-premises connector.
- connection
Type String - (Updatable) The connection type used to connect to the database. Allowed values:
- PRIVATE_ENDPOINT - Represents connection through private endpoint in Data Safe.
- ONPREM_CONNECTOR - Represents connection through on-premises connector in Data Safe.
- datasafe
Private StringEndpoint Id - (Updatable) The OCID of the Data Safe private endpoint.
- on
Prem StringConnector Id - (Updatable) The OCID of the on-premises connector.
TargetDatabaseCredentials, TargetDatabaseCredentialsArgs
TargetDatabaseDatabaseDetails, TargetDatabaseDatabaseDetailsArgs
- Database
Type string - (Updatable) The database type.
- Infrastructure
Type string - (Updatable) The infrastructure type the database is running on.
- Autonomous
Database stringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- Db
System stringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- Instance
Id string - (Updatable) The OCID of the compute instance on which the database is running.
- Ip
Addresses List<string> - (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 string - (Updatable) The service name of the database registered as target database.
- Vm
Cluster stringId - (Updatable) The OCID of the VM cluster in which the database is running.
- Database
Type string - (Updatable) The database type.
- Infrastructure
Type string - (Updatable) The infrastructure type the database is running on.
- Autonomous
Database stringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- Db
System stringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- Instance
Id string - (Updatable) The OCID of the compute instance on which the database is running.
- Ip
Addresses []string - (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 string - (Updatable) The service name of the database registered as target database.
- Vm
Cluster stringId - (Updatable) The OCID of the VM cluster in which the database is running.
- database
Type String - (Updatable) The database type.
- infrastructure
Type String - (Updatable) The infrastructure type the database is running on.
- autonomous
Database StringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- db
System StringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instance
Id String - (Updatable) The OCID of the compute instance on which the database is running.
- ip
Addresses List<String> - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port Integer - (Updatable) The port number of the database listener.
- service
Name String - (Updatable) The service name of the database registered as target database.
- vm
Cluster StringId - (Updatable) The OCID of the VM cluster in which the database is running.
- database
Type string - (Updatable) The database type.
- infrastructure
Type string - (Updatable) The infrastructure type the database is running on.
- autonomous
Database stringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- db
System stringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instance
Id string - (Updatable) The OCID of the compute instance on which the database is running.
- ip
Addresses string[] - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port number - (Updatable) The port number of the database listener.
- service
Name string - (Updatable) The service name of the database registered as target database.
- vm
Cluster 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.
- database
Type String - (Updatable) The database type.
- infrastructure
Type String - (Updatable) The infrastructure type the database is running on.
- autonomous
Database StringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- db
System StringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- instance
Id String - (Updatable) The OCID of the compute instance on which the database is running.
- ip
Addresses List<String> - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port Number - (Updatable) The port number of the database listener.
- service
Name String - (Updatable) The service name of the database registered as target database.
- vm
Cluster StringId - (Updatable) The OCID of the VM cluster in which the database is running.
TargetDatabasePeerTargetDatabase, TargetDatabasePeerTargetDatabaseArgs
- Database
Details List<TargetDatabase Peer Target Database Database Detail> - (Updatable) Details of the database for the registration in Data Safe.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Dataguard
Association stringId - The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- Description string
- (Updatable) The description of the target database in Data Safe.
- Display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- Lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- Role string
- Role of the database associated to the peer target database.
- State string
- The current state of the target database in Data Safe.
- Time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- Tls
Configs List<TargetDatabase Peer Target Database Tls Config> - (Updatable) The details required to establish a TLS enabled connection.
- Database
Details []TargetDatabase Peer Target Database Database Detail - (Updatable) Details of the database for the registration in Data Safe.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Dataguard
Association stringId - The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- Description string
- (Updatable) The description of the target database in Data Safe.
- Display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- Lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- Role string
- Role of the database associated to the peer target database.
- State string
- The current state of the target database in Data Safe.
- Time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- Tls
Configs []TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- database
Details List<TargetDatabase Peer Target Database Database Detail> - (Updatable) Details of the database for the registration in Data Safe.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- dataguard
Association StringId - The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description String
- (Updatable) The description of the target database in Data Safe.
- display
Name String - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- key Integer
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle
Details String - Details about the current state of the peer target database in Data Safe.
- role String
- Role of the database associated to the peer target database.
- state String
- The current state of the target database in Data Safe.
- time
Created String - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tls
Configs List<TargetDatabase Peer Target Database Tls Config> - (Updatable) The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Database Detail[] - (Updatable) Details of the database for the registration in Data Safe.
- database
Unique stringName - Unique name of the database associated to the peer target database.
- dataguard
Association stringId - The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description string
- (Updatable) The description of the target database in Data Safe.
- display
Name string - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- key number
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle
Details string - Details about the current state of the peer target database in Data Safe.
- role string
- Role of the database associated to the peer target database.
- state string
- The current state of the target database in Data Safe.
- time
Created string - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tls
Configs TargetDatabase Peer Target Database Tls Config[] - (Updatable) The details required to establish a TLS enabled connection.
- database_
details Sequence[datasafe.Target Database Peer Target Database Database Detail] - (Updatable) Details of the database for the registration in Data Safe.
- database_
unique_ strname - Unique name of the database associated to the peer target database.
- dataguard_
association_ strid - The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description str
- (Updatable) The description of the target database in Data Safe.
- display_
name str - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- key int
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle_
details str - Details about the current state of the peer target database in Data Safe.
- role str
- Role of the database associated to the peer target database.
- state str
- The current state of the target database in Data Safe.
- time_
created str - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tls_
configs Sequence[datasafe.Target Database Peer Target Database Tls Config] - (Updatable) The details required to establish a TLS enabled connection.
- database
Details List<Property Map> - (Updatable) Details of the database for the registration in Data Safe.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- dataguard
Association StringId - The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
- description String
- (Updatable) The description of the target database in Data Safe.
- display
Name String - (Updatable) The display name of the target database in Data Safe. The name is modifiable and does not need to be unique.
- key Number
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle
Details String - Details about the current state of the peer target database in Data Safe.
- role String
- Role of the database associated to the peer target database.
- state String
- The current state of the target database in Data Safe.
- time
Created String - The date and time the database was registered in Data Safe and created as a target database in Data Safe.
- tls
Configs List<Property Map> - (Updatable) The details required to establish a TLS enabled connection.
TargetDatabasePeerTargetDatabaseDatabaseDetail, TargetDatabasePeerTargetDatabaseDatabaseDetailArgs
- Autonomous
Database stringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- Database
Type string - (Updatable) The database type.
- Db
System stringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- Infrastructure
Type string - (Updatable) The infrastructure type the database is running on.
- Instance
Id string - (Updatable) The OCID of the compute instance on which the database is running.
- Ip
Addresses List<string> - (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 string - (Updatable) The service name of the database registered as target database.
- Vm
Cluster stringId - (Updatable) The OCID of the VM cluster in which the database is running.
- Autonomous
Database stringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- Database
Type string - (Updatable) The database type.
- Db
System stringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- Infrastructure
Type string - (Updatable) The infrastructure type the database is running on.
- Instance
Id string - (Updatable) The OCID of the compute instance on which the database is running.
- Ip
Addresses []string - (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 string - (Updatable) The service name of the database registered as target database.
- Vm
Cluster stringId - (Updatable) The OCID of the VM cluster in which the database is running.
- autonomous
Database StringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- database
Type String - (Updatable) The database type.
- db
System StringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructure
Type String - (Updatable) The infrastructure type the database is running on.
- instance
Id String - (Updatable) The OCID of the compute instance on which the database is running.
- ip
Addresses List<String> - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port Integer - (Updatable) The port number of the database listener.
- service
Name String - (Updatable) The service name of the database registered as target database.
- vm
Cluster StringId - (Updatable) The OCID of the VM cluster in which the database is running.
- autonomous
Database stringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- database
Type string - (Updatable) The database type.
- db
System stringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructure
Type string - (Updatable) The infrastructure type the database is running on.
- instance
Id string - (Updatable) The OCID of the compute instance on which the database is running.
- ip
Addresses string[] - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port number - (Updatable) The port number of the database listener.
- service
Name string - (Updatable) The service name of the database registered as target database.
- vm
Cluster stringId - (Updatable) The OCID of the VM cluster in which the database is running.
- autonomous_
database_ strid - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- database_
type str - (Updatable) The database type.
- db_
system_ strid - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructure_
type str - (Updatable) The infrastructure type the database is running on.
- instance_
id str - (Updatable) The OCID of the compute instance on which the database is running.
- ip_
addresses Sequence[str] - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener_
port int - (Updatable) The port number of the database listener.
- service_
name str - (Updatable) The service name of the database registered as target database.
- vm_
cluster_ strid - (Updatable) The OCID of the VM cluster in which the database is running.
- autonomous
Database StringId - (Updatable) The OCID of the Autonomous Database registered as a target database in Data Safe.
- database
Type String - (Updatable) The database type.
- db
System StringId - (Updatable) The OCID of the cloud database registered as a target database in Data Safe.
- infrastructure
Type String - (Updatable) The infrastructure type the database is running on.
- instance
Id String - (Updatable) The OCID of the compute instance on which the database is running.
- ip
Addresses List<String> - (Updatable) The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port Number - (Updatable) The port number of the database listener.
- service
Name String - (Updatable) The service name of the database registered as target database.
- vm
Cluster StringId - (Updatable) The OCID of the VM cluster in which the database is running.
TargetDatabasePeerTargetDatabaseDetail, TargetDatabasePeerTargetDatabaseDetailArgs
- Database
Details TargetDatabase Peer Target Database Detail Database Details - Details of the database for the registration in Data Safe.
- Dataguard
Association stringId - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- Description string
- The description of the peer target database in Data Safe.
- Display
Name string - The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- Tls
Config TargetDatabase Peer Target Database Detail Tls Config - The details required to establish a TLS enabled connection.
- Database
Details TargetDatabase Peer Target Database Detail Database Details - Details of the database for the registration in Data Safe.
- Dataguard
Association stringId - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- Description string
- The description of the peer target database in Data Safe.
- Display
Name string - The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- Tls
Config TargetDatabase Peer Target Database Detail Tls Config - The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Detail Database Details - Details of the database for the registration in Data Safe.
- dataguard
Association StringId - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- description String
- The description of the peer target database in Data Safe.
- display
Name String - The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls
Config TargetDatabase Peer Target Database Detail Tls Config - The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Detail Database Details - Details of the database for the registration in Data Safe.
- dataguard
Association stringId - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- description string
- The description of the peer target database in Data Safe.
- display
Name string - The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls
Config TargetDatabase Peer Target Database Detail Tls Config - The details required to establish a TLS enabled connection.
- database_
details datasafe.Target Database Peer Target Database Detail Database Details - Details of the database for the registration in Data Safe.
- dataguard_
association_ strid - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- description str
- The description of the peer target database in Data Safe.
- display_
name str - The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls_
config datasafe.Target Database Peer Target Database Detail Tls Config - The details required to establish a TLS enabled connection.
- database
Details Property Map - Details of the database for the registration in Data Safe.
- dataguard
Association StringId - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- description String
- The description of the peer target database in Data Safe.
- display
Name String - The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls
Config Property Map - The details required to establish a TLS enabled connection.
TargetDatabasePeerTargetDatabaseDetailDatabaseDetails, TargetDatabasePeerTargetDatabaseDetailDatabaseDetailsArgs
- Database
Type string - The database type.
- Infrastructure
Type string - The infrastructure type the database is running on.
- Autonomous
Database stringId - The OCID of the Autonomous Database registered as a target database in Data Safe.
- Db
System stringId - The OCID of the cloud database registered as a target database in Data Safe.
- Instance
Id string - The OCID of the compute instance on which the database is running.
- Ip
Addresses List<string> - The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- Listener
Port int - The port number of the database listener.
- Service
Name string - The service name of the database registered as target database.
- Vm
Cluster stringId - The OCID of the VM cluster in which the database is running.
- Database
Type string - The database type.
- Infrastructure
Type string - The infrastructure type the database is running on.
- Autonomous
Database stringId - The OCID of the Autonomous Database registered as a target database in Data Safe.
- Db
System stringId - The OCID of the cloud database registered as a target database in Data Safe.
- Instance
Id string - The OCID of the compute instance on which the database is running.
- Ip
Addresses []string - The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- Listener
Port int - The port number of the database listener.
- Service
Name string - The service name of the database registered as target database.
- Vm
Cluster stringId - The OCID of the VM cluster in which the database is running.
- database
Type String - The database type.
- infrastructure
Type String - The infrastructure type the database is running on.
- autonomous
Database StringId - The OCID of the Autonomous Database registered as a target database in Data Safe.
- db
System StringId - The OCID of the cloud database registered as a target database in Data Safe.
- instance
Id String - The OCID of the compute instance on which the database is running.
- ip
Addresses List<String> - The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port Integer - The port number of the database listener.
- service
Name String - The service name of the database registered as target database.
- vm
Cluster StringId - The OCID of the VM cluster in which the database is running.
- database
Type string - The database type.
- infrastructure
Type string - The infrastructure type the database is running on.
- autonomous
Database stringId - The OCID of the Autonomous Database registered as a target database in Data Safe.
- db
System stringId - The OCID of the cloud database registered as a target database in Data Safe.
- instance
Id string - The OCID of the compute instance on which the database is running.
- ip
Addresses string[] - The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port number - The port number of the database listener.
- service
Name string - The service name of the database registered as target database.
- vm
Cluster stringId - The OCID of the VM cluster in which the database is running.
- database_
type str - The database type.
- infrastructure_
type str - The infrastructure type the database is running on.
- autonomous_
database_ strid - The OCID of the Autonomous Database registered as a target database in Data Safe.
- db_
system_ strid - The OCID of the cloud database registered as a target database in Data Safe.
- instance_
id str - The OCID of the compute instance on which the database is running.
- ip_
addresses Sequence[str] - The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener_
port int - The port number of the database listener.
- service_
name str - The service name of the database registered as target database.
- vm_
cluster_ strid - The OCID of the VM cluster in which the database is running.
- database
Type String - The database type.
- infrastructure
Type String - The infrastructure type the database is running on.
- autonomous
Database StringId - The OCID of the Autonomous Database registered as a target database in Data Safe.
- db
System StringId - The OCID of the cloud database registered as a target database in Data Safe.
- instance
Id String - The OCID of the compute instance on which the database is running.
- ip
Addresses List<String> - The list of database host IP Addresses. Fully qualified domain names can be used if connectionType is 'ONPREM_CONNECTOR'.
- listener
Port Number - The port number of the database listener.
- service
Name String - The service name of the database registered as target database.
- vm
Cluster StringId - The OCID of the VM cluster in which the database is running.
TargetDatabasePeerTargetDatabaseDetailTlsConfig, TargetDatabasePeerTargetDatabaseDetailTlsConfigArgs
- Status string
- Status to represent whether the database connection is TLS enabled or not.
- Certificate
Store stringType - The format of the certificate store.
- Key
Store stringContent - Base64 encoded string of key store file content.
- Store
Password string - The password to read the trust store and key store files, if they are password protected.
- Trust
Store stringContent - Base64 encoded string of trust store file content.
- Status string
- Status to represent whether the database connection is TLS enabled or not.
- Certificate
Store stringType - The format of the certificate store.
- Key
Store stringContent - Base64 encoded string of key store file content.
- Store
Password string - The password to read the trust store and key store files, if they are password protected.
- Trust
Store stringContent - Base64 encoded string of trust store file content.
- status String
- Status to represent whether the database connection is TLS enabled or not.
- certificate
Store StringType - The format of the certificate store.
- key
Store StringContent - Base64 encoded string of key store file content.
- store
Password String - The password to read the trust store and key store files, if they are password protected.
- trust
Store StringContent - Base64 encoded string of trust store file content.
- status string
- Status to represent whether the database connection is TLS enabled or not.
- certificate
Store stringType - The format of the certificate store.
- key
Store stringContent - Base64 encoded string of key store file content.
- store
Password string - The password to read the trust store and key store files, if they are password protected.
- trust
Store stringContent - Base64 encoded string of trust store file content.
- status str
- Status to represent whether the database connection is TLS enabled or not.
- certificate_
store_ strtype - The format of the certificate store.
- key_
store_ strcontent - Base64 encoded string of key store file content.
- store_
password str - The password to read the trust store and key store files, if they are password protected.
- trust_
store_ strcontent - Base64 encoded string of trust store file content.
- status String
- Status to represent whether the database connection is TLS enabled or not.
- certificate
Store StringType - The format of the certificate store.
- key
Store StringContent - Base64 encoded string of key store file content.
- store
Password String - The password to read the trust store and key store files, if they are password protected.
- trust
Store StringContent - Base64 encoded string of trust store file content.
TargetDatabasePeerTargetDatabaseTlsConfig, TargetDatabasePeerTargetDatabaseTlsConfigArgs
- Status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- Certificate
Store stringType - (Updatable) The format of the certificate store.
- Key
Store stringContent - (Updatable) Base64 encoded string of key store file content.
- Store
Password string - (Updatable) The password to read the trust store and key store files, if they are password protected.
- Trust
Store 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.
- Certificate
Store stringType - (Updatable) The format of the certificate store.
- Key
Store stringContent - (Updatable) Base64 encoded string of key store file content.
- Store
Password string - (Updatable) The password to read the trust store and key store files, if they are password protected.
- Trust
Store 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.
- certificate
Store StringType - (Updatable) The format of the certificate store.
- key
Store StringContent - (Updatable) Base64 encoded string of key store file content.
- store
Password String - (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust
Store 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.
- certificate
Store stringType - (Updatable) The format of the certificate store.
- key
Store stringContent - (Updatable) Base64 encoded string of key store file content.
- store
Password string - (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust
Store 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.
- certificate
Store StringType - (Updatable) The format of the certificate store.
- key
Store StringContent - (Updatable) Base64 encoded string of key store file content.
- store
Password String - (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust
Store StringContent (Updatable) Base64 encoded string of trust store file content.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
TargetDatabaseTlsConfig, TargetDatabaseTlsConfigArgs
- Status string
- (Updatable) Status to represent whether the database connection is TLS enabled or not.
- Certificate
Store stringType - (Updatable) The format of the certificate store.
- Key
Store stringContent - (Updatable) Base64 encoded string of key store file content.
- Store
Password string - (Updatable) The password to read the trust store and key store files, if they are password protected.
- Trust
Store 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.
- Certificate
Store stringType - (Updatable) The format of the certificate store.
- Key
Store stringContent - (Updatable) Base64 encoded string of key store file content.
- Store
Password string - (Updatable) The password to read the trust store and key store files, if they are password protected.
- Trust
Store 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.
- certificate
Store StringType - (Updatable) The format of the certificate store.
- key
Store StringContent - (Updatable) Base64 encoded string of key store file content.
- store
Password String - (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust
Store 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.
- certificate
Store stringType - (Updatable) The format of the certificate store.
- key
Store stringContent - (Updatable) Base64 encoded string of key store file content.
- store
Password string - (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust
Store 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.
- certificate
Store StringType - (Updatable) The format of the certificate store.
- key
Store StringContent - (Updatable) Base64 encoded string of key store file content.
- store
Password String - (Updatable) The password to read the trust store and key store files, if they are password protected.
- trust
Store StringContent (Updatable) Base64 encoded string of trust store file content.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
TargetDatabases can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/targetDatabase:TargetDatabase test_target_database "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.