oci.DataSafe.TargetDatabasePeerTargetDatabase
Explore with Pulumi AI
This resource provides the Target Database Peer Target Database resource in Oracle Cloud Infrastructure Data Safe service.
Creates the peer target database under the primary target database in Data Safe.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testTargetDatabasePeerTargetDatabase = new oci.datasafe.TargetDatabasePeerTargetDatabase("test_target_database_peer_target_database", {
databaseDetails: {
databaseType: targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType,
infrastructureType: targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType,
autonomousDatabaseId: testAutonomousDatabase.id,
dbSystemId: testDbSystem.id,
instanceId: testInstance.id,
ipAddresses: targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses,
listenerPort: targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort,
serviceName: testService.name,
vmClusterId: testVmCluster.id,
},
targetDatabaseId: testTargetDatabase.id,
dataguardAssociationId: testAssociation.id,
description: targetDatabasePeerTargetDatabaseDescription,
displayName: targetDatabasePeerTargetDatabaseDisplayName,
tlsConfig: {
status: targetDatabasePeerTargetDatabaseTlsConfigStatus,
certificateStoreType: targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType,
keyStoreContent: targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent,
storePassword: targetDatabasePeerTargetDatabaseTlsConfigStorePassword,
trustStoreContent: targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent,
},
});
import pulumi
import pulumi_oci as oci
test_target_database_peer_target_database = oci.data_safe.TargetDatabasePeerTargetDatabase("test_target_database_peer_target_database",
database_details={
"database_type": target_database_peer_target_database_database_details_database_type,
"infrastructure_type": target_database_peer_target_database_database_details_infrastructure_type,
"autonomous_database_id": test_autonomous_database["id"],
"db_system_id": test_db_system["id"],
"instance_id": test_instance["id"],
"ip_addresses": target_database_peer_target_database_database_details_ip_addresses,
"listener_port": target_database_peer_target_database_database_details_listener_port,
"service_name": test_service["name"],
"vm_cluster_id": test_vm_cluster["id"],
},
target_database_id=test_target_database["id"],
dataguard_association_id=test_association["id"],
description=target_database_peer_target_database_description,
display_name=target_database_peer_target_database_display_name,
tls_config={
"status": target_database_peer_target_database_tls_config_status,
"certificate_store_type": target_database_peer_target_database_tls_config_certificate_store_type,
"key_store_content": target_database_peer_target_database_tls_config_key_store_content,
"store_password": target_database_peer_target_database_tls_config_store_password,
"trust_store_content": target_database_peer_target_database_tls_config_trust_store_content,
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataSafe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataSafe.NewTargetDatabasePeerTargetDatabase(ctx, "test_target_database_peer_target_database", &DataSafe.TargetDatabasePeerTargetDatabaseArgs{
DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs{
DatabaseType: pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType),
InfrastructureType: pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType),
AutonomousDatabaseId: pulumi.Any(testAutonomousDatabase.Id),
DbSystemId: pulumi.Any(testDbSystem.Id),
InstanceId: pulumi.Any(testInstance.Id),
IpAddresses: pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses),
ListenerPort: pulumi.Any(targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort),
ServiceName: pulumi.Any(testService.Name),
VmClusterId: pulumi.Any(testVmCluster.Id),
},
TargetDatabaseId: pulumi.Any(testTargetDatabase.Id),
DataguardAssociationId: pulumi.Any(testAssociation.Id),
Description: pulumi.Any(targetDatabasePeerTargetDatabaseDescription),
DisplayName: pulumi.Any(targetDatabasePeerTargetDatabaseDisplayName),
TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs{
Status: pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigStatus),
CertificateStoreType: pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType),
KeyStoreContent: pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent),
StorePassword: pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigStorePassword),
TrustStoreContent: pulumi.Any(targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testTargetDatabasePeerTargetDatabase = new Oci.DataSafe.TargetDatabasePeerTargetDatabase("test_target_database_peer_target_database", new()
{
DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
{
DatabaseType = targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType,
InfrastructureType = targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType,
AutonomousDatabaseId = testAutonomousDatabase.Id,
DbSystemId = testDbSystem.Id,
InstanceId = testInstance.Id,
IpAddresses = targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses,
ListenerPort = targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort,
ServiceName = testService.Name,
VmClusterId = testVmCluster.Id,
},
TargetDatabaseId = testTargetDatabase.Id,
DataguardAssociationId = testAssociation.Id,
Description = targetDatabasePeerTargetDatabaseDescription,
DisplayName = targetDatabasePeerTargetDatabaseDisplayName,
TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseTlsConfigArgs
{
Status = targetDatabasePeerTargetDatabaseTlsConfigStatus,
CertificateStoreType = targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType,
KeyStoreContent = targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent,
StorePassword = targetDatabasePeerTargetDatabaseTlsConfigStorePassword,
TrustStoreContent = targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataSafe.TargetDatabasePeerTargetDatabase;
import com.pulumi.oci.DataSafe.TargetDatabasePeerTargetDatabaseArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs;
import com.pulumi.oci.DataSafe.inputs.TargetDatabasePeerTargetDatabaseTlsConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testTargetDatabasePeerTargetDatabase = new TargetDatabasePeerTargetDatabase("testTargetDatabasePeerTargetDatabase", TargetDatabasePeerTargetDatabaseArgs.builder()
.databaseDetails(TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs.builder()
.databaseType(targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType)
.infrastructureType(targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType)
.autonomousDatabaseId(testAutonomousDatabase.id())
.dbSystemId(testDbSystem.id())
.instanceId(testInstance.id())
.ipAddresses(targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses)
.listenerPort(targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort)
.serviceName(testService.name())
.vmClusterId(testVmCluster.id())
.build())
.targetDatabaseId(testTargetDatabase.id())
.dataguardAssociationId(testAssociation.id())
.description(targetDatabasePeerTargetDatabaseDescription)
.displayName(targetDatabasePeerTargetDatabaseDisplayName)
.tlsConfig(TargetDatabasePeerTargetDatabaseTlsConfigArgs.builder()
.status(targetDatabasePeerTargetDatabaseTlsConfigStatus)
.certificateStoreType(targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType)
.keyStoreContent(targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent)
.storePassword(targetDatabasePeerTargetDatabaseTlsConfigStorePassword)
.trustStoreContent(targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent)
.build())
.build());
}
}
resources:
testTargetDatabasePeerTargetDatabase:
type: oci:DataSafe:TargetDatabasePeerTargetDatabase
name: test_target_database_peer_target_database
properties:
databaseDetails:
databaseType: ${targetDatabasePeerTargetDatabaseDatabaseDetailsDatabaseType}
infrastructureType: ${targetDatabasePeerTargetDatabaseDatabaseDetailsInfrastructureType}
autonomousDatabaseId: ${testAutonomousDatabase.id}
dbSystemId: ${testDbSystem.id}
instanceId: ${testInstance.id}
ipAddresses: ${targetDatabasePeerTargetDatabaseDatabaseDetailsIpAddresses}
listenerPort: ${targetDatabasePeerTargetDatabaseDatabaseDetailsListenerPort}
serviceName: ${testService.name}
vmClusterId: ${testVmCluster.id}
targetDatabaseId: ${testTargetDatabase.id}
dataguardAssociationId: ${testAssociation.id}
description: ${targetDatabasePeerTargetDatabaseDescription}
displayName: ${targetDatabasePeerTargetDatabaseDisplayName}
tlsConfig:
status: ${targetDatabasePeerTargetDatabaseTlsConfigStatus}
certificateStoreType: ${targetDatabasePeerTargetDatabaseTlsConfigCertificateStoreType}
keyStoreContent: ${targetDatabasePeerTargetDatabaseTlsConfigKeyStoreContent}
storePassword: ${targetDatabasePeerTargetDatabaseTlsConfigStorePassword}
trustStoreContent: ${targetDatabasePeerTargetDatabaseTlsConfigTrustStoreContent}
Create TargetDatabasePeerTargetDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetDatabasePeerTargetDatabase(name: string, args: TargetDatabasePeerTargetDatabaseArgs, opts?: CustomResourceOptions);
@overload
def TargetDatabasePeerTargetDatabase(resource_name: str,
args: TargetDatabasePeerTargetDatabaseInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TargetDatabasePeerTargetDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_details: Optional[_datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs] = None,
target_database_id: Optional[str] = None,
dataguard_association_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
tls_config: Optional[_datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs] = None)
func NewTargetDatabasePeerTargetDatabase(ctx *Context, name string, args TargetDatabasePeerTargetDatabaseArgs, opts ...ResourceOption) (*TargetDatabasePeerTargetDatabase, error)
public TargetDatabasePeerTargetDatabase(string name, TargetDatabasePeerTargetDatabaseArgs args, CustomResourceOptions? opts = null)
public TargetDatabasePeerTargetDatabase(String name, TargetDatabasePeerTargetDatabaseArgs args)
public TargetDatabasePeerTargetDatabase(String name, TargetDatabasePeerTargetDatabaseArgs args, CustomResourceOptions options)
type: oci:DataSafe:TargetDatabasePeerTargetDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetDatabasePeerTargetDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var targetDatabasePeerTargetDatabaseResource = new Oci.DataSafe.TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource", new()
{
DatabaseDetails = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
{
DatabaseType = "string",
InfrastructureType = "string",
AutonomousDatabaseId = "string",
DbSystemId = "string",
InstanceId = "string",
IpAddresses = new[]
{
"string",
},
ListenerPort = 0,
ServiceName = "string",
VmClusterId = "string",
},
TargetDatabaseId = "string",
DataguardAssociationId = "string",
Description = "string",
DisplayName = "string",
TlsConfig = new Oci.DataSafe.Inputs.TargetDatabasePeerTargetDatabaseTlsConfigArgs
{
Status = "string",
CertificateStoreType = "string",
KeyStoreContent = "string",
StorePassword = "string",
TrustStoreContent = "string",
},
});
example, err := DataSafe.NewTargetDatabasePeerTargetDatabase(ctx, "targetDatabasePeerTargetDatabaseResource", &DataSafe.TargetDatabasePeerTargetDatabaseArgs{
DatabaseDetails: &datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs{
DatabaseType: pulumi.String("string"),
InfrastructureType: pulumi.String("string"),
AutonomousDatabaseId: pulumi.String("string"),
DbSystemId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
ListenerPort: pulumi.Int(0),
ServiceName: pulumi.String("string"),
VmClusterId: pulumi.String("string"),
},
TargetDatabaseId: pulumi.String("string"),
DataguardAssociationId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
TlsConfig: &datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs{
Status: pulumi.String("string"),
CertificateStoreType: pulumi.String("string"),
KeyStoreContent: pulumi.String("string"),
StorePassword: pulumi.String("string"),
TrustStoreContent: pulumi.String("string"),
},
})
var targetDatabasePeerTargetDatabaseResource = new TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource", TargetDatabasePeerTargetDatabaseArgs.builder()
.databaseDetails(TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs.builder()
.databaseType("string")
.infrastructureType("string")
.autonomousDatabaseId("string")
.dbSystemId("string")
.instanceId("string")
.ipAddresses("string")
.listenerPort(0)
.serviceName("string")
.vmClusterId("string")
.build())
.targetDatabaseId("string")
.dataguardAssociationId("string")
.description("string")
.displayName("string")
.tlsConfig(TargetDatabasePeerTargetDatabaseTlsConfigArgs.builder()
.status("string")
.certificateStoreType("string")
.keyStoreContent("string")
.storePassword("string")
.trustStoreContent("string")
.build())
.build());
target_database_peer_target_database_resource = oci.data_safe.TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource",
database_details={
"database_type": "string",
"infrastructure_type": "string",
"autonomous_database_id": "string",
"db_system_id": "string",
"instance_id": "string",
"ip_addresses": ["string"],
"listener_port": 0,
"service_name": "string",
"vm_cluster_id": "string",
},
target_database_id="string",
dataguard_association_id="string",
description="string",
display_name="string",
tls_config={
"status": "string",
"certificate_store_type": "string",
"key_store_content": "string",
"store_password": "string",
"trust_store_content": "string",
})
const targetDatabasePeerTargetDatabaseResource = new oci.datasafe.TargetDatabasePeerTargetDatabase("targetDatabasePeerTargetDatabaseResource", {
databaseDetails: {
databaseType: "string",
infrastructureType: "string",
autonomousDatabaseId: "string",
dbSystemId: "string",
instanceId: "string",
ipAddresses: ["string"],
listenerPort: 0,
serviceName: "string",
vmClusterId: "string",
},
targetDatabaseId: "string",
dataguardAssociationId: "string",
description: "string",
displayName: "string",
tlsConfig: {
status: "string",
certificateStoreType: "string",
keyStoreContent: "string",
storePassword: "string",
trustStoreContent: "string",
},
});
type: oci:DataSafe:TargetDatabasePeerTargetDatabase
properties:
databaseDetails:
autonomousDatabaseId: string
databaseType: string
dbSystemId: string
infrastructureType: string
instanceId: string
ipAddresses:
- string
listenerPort: 0
serviceName: string
vmClusterId: string
dataguardAssociationId: string
description: string
displayName: string
targetDatabaseId: string
tlsConfig:
certificateStoreType: string
keyStoreContent: string
status: string
storePassword: string
trustStoreContent: string
TargetDatabasePeerTargetDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TargetDatabasePeerTargetDatabase resource accepts the following input properties:
- Database
Details TargetDatabase Peer Target Database Database Details - (Updatable) Details of the database for the registration in Data Safe.
- Target
Database stringId - The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- Display
Name string - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- Tls
Config TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- Database
Details TargetDatabase Peer Target Database Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- Target
Database stringId - The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- Display
Name string - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- Tls
Config TargetDatabase Peer Target Database Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Database Details - (Updatable) Details of the database for the registration in Data Safe.
- target
Database StringId - The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- display
Name String - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls
Config TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Database Details - (Updatable) Details of the database for the registration in Data Safe.
- target
Database stringId - The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- display
Name string - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls
Config TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- database_
details datasafe.Target Database Peer Target Database Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- target_
database_ strid - The OCID of the Data Safe target database.
- dataguard_
association_ strid - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- description str
- (Updatable) The description of the peer target database in Data Safe.
- display_
name str - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls_
config datasafe.Target Database Peer Target Database Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- database
Details Property Map - (Updatable) Details of the database for the registration in Data Safe.
- target
Database StringId - The OCID of the Data Safe target database.
- 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
- (Updatable) The description of the peer target database in Data Safe.
- display
Name String - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- tls
Config Property Map - (Updatable) The details required to establish a TLS enabled connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetDatabasePeerTargetDatabase resource produces the following output properties:
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- Time
Created string - The date and time of the peer target database registration in Data Safe.
- Database
Unique stringName - Unique name of the database associated to the peer target database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- Time
Created string - The date and time of the peer target database registration in Data Safe.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- id String
- The provider-assigned unique ID for this managed resource.
- key Integer
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- time
Created String - The date and time of the peer target database registration in Data Safe.
- database
Unique stringName - Unique name of the database associated to the peer target database.
- id string
- The provider-assigned unique ID for this managed resource.
- key number
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- time
Created string - The date and time of the peer target database registration in Data Safe.
- database_
unique_ strname - Unique name of the database associated to the peer target database.
- id str
- The provider-assigned unique ID for this managed resource.
- key int
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle_
details str - Details about the current state of the peer target database in Data Safe.
- role str
- Role of the database associated to the peer target database.
- state str
- The current state of the peer target database in Data Safe.
- time_
created str - The date and time of the peer target database registration in Data Safe.
- database
Unique StringName - Unique name of the database associated to the peer target database.
- id String
- The provider-assigned unique ID for this managed resource.
- key Number
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- time
Created String - The date and time of the peer target database registration in Data Safe.
Look up Existing TargetDatabasePeerTargetDatabase Resource
Get an existing TargetDatabasePeerTargetDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TargetDatabasePeerTargetDatabaseState, opts?: CustomResourceOptions): TargetDatabasePeerTargetDatabase
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
database_details: Optional[_datasafe.TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs] = None,
database_unique_name: Optional[str] = None,
dataguard_association_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
key: Optional[int] = None,
lifecycle_details: Optional[str] = None,
role: Optional[str] = None,
state: Optional[str] = None,
target_database_id: Optional[str] = None,
time_created: Optional[str] = None,
tls_config: Optional[_datasafe.TargetDatabasePeerTargetDatabaseTlsConfigArgs] = None) -> TargetDatabasePeerTargetDatabase
func GetTargetDatabasePeerTargetDatabase(ctx *Context, name string, id IDInput, state *TargetDatabasePeerTargetDatabaseState, opts ...ResourceOption) (*TargetDatabasePeerTargetDatabase, error)
public static TargetDatabasePeerTargetDatabase Get(string name, Input<string> id, TargetDatabasePeerTargetDatabaseState? state, CustomResourceOptions? opts = null)
public static TargetDatabasePeerTargetDatabase get(String name, Output<String> id, TargetDatabasePeerTargetDatabaseState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Database
Details TargetDatabase Peer Target Database Database Details - (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 being registered is considered as peer database to the primary database.
- Description string
- (Updatable) The description of the peer target database in Data Safe.
- Display
Name string - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- Target
Database stringId - The OCID of the Data Safe target database.
- Time
Created string - The date and time of the peer target database registration in Data Safe.
- Tls
Config TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- Database
Details TargetDatabase Peer Target Database Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- Database
Unique 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 being registered is considered as peer database to the primary database.
- Description string
- (Updatable) The description of the peer target database in Data Safe.
- Display
Name string - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- Key int
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- Target
Database stringId - The OCID of the Data Safe target database.
- Time
Created string - The date and time of the peer target database registration in Data Safe.
- Tls
Config TargetDatabase Peer Target Database Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Database Details - (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 being registered is considered as peer database to the primary database.
- description String
- (Updatable) The description of the peer target database in Data Safe.
- display
Name String - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- key Integer
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- target
Database StringId - The OCID of the Data Safe target database.
- time
Created String - The date and time of the peer target database registration in Data Safe.
- tls
Config TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- database
Details TargetDatabase Peer Target Database Database Details - (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 being registered is considered as peer database to the primary database.
- description string
- (Updatable) The description of the peer target database in Data Safe.
- display
Name string - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- key number
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- target
Database stringId - The OCID of the Data Safe target database.
- time
Created string - The date and time of the peer target database registration in Data Safe.
- tls
Config TargetDatabase Peer Target Database Tls Config - (Updatable) The details required to establish a TLS enabled connection.
- database_
details datasafe.Target Database Peer Target Database Database Details Args - (Updatable) Details of the database for the registration in Data Safe.
- database_
unique_ strname - Unique name of the database associated to the peer target database.
- dataguard_
association_ strid - The OCID of the Data Guard Association resource in which the database being registered is considered as peer database to the primary database.
- description str
- (Updatable) The description of the peer target database in Data Safe.
- display_
name str - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- key int
- The secondary key assigned for the peer target database in Data Safe.
- lifecycle_
details str - Details about the current state of the peer target database in Data Safe.
- role str
- Role of the database associated to the peer target database.
- state str
- The current state of the peer target database in Data Safe.
- target_
database_ strid - The OCID of the Data Safe target database.
- time_
created str - The date and time of the peer target database registration in Data Safe.
- tls_
config datasafe.Target Database Peer Target Database Tls Config Args - (Updatable) The details required to establish a TLS enabled connection.
- database
Details 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 being registered is considered as peer database to the primary database.
- description String
- (Updatable) The description of the peer target database in Data Safe.
- display
Name String - (Updatable) The display name of the peer target database in Data Safe. The name is modifiable and does not need to be unique.
- key Number
- The secondary key assigned for the peer target database in Data Safe.
- 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 peer target database in Data Safe.
- target
Database StringId - The OCID of the Data Safe target database.
- time
Created String - The date and time of the peer target database registration in Data Safe.
- tls
Config Property Map - (Updatable) The details required to establish a TLS enabled connection.
Supporting Types
TargetDatabasePeerTargetDatabaseDatabaseDetails, TargetDatabasePeerTargetDatabaseDatabaseDetailsArgs
- 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.
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
Import
TargetDatabasePeerTargetDatabases can be imported using the id
, e.g.
$ pulumi import oci:DataSafe/targetDatabasePeerTargetDatabase:TargetDatabasePeerTargetDatabase test_target_database_peer_target_database "targetDatabases/{targetDatabaseId}/peerTargetDatabases/{peerTargetDatabaseId}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.