Data Source: oci_database_migration_connection
This data source provides details about a specific Connection resource in Oracle Cloud Infrastructure Database Migration service.
Display Database Connection details.
Example Usage
data "oci_database_migration_connection" "test_connection" {
#Required
connection_id = oci_database_migration_connection.test_connection.id
}
Argument Reference
The following arguments are supported:
connection_id
- (Required) The OCID of the database connection
Attributes Reference
The following attributes are exported:
admin_credentials
- Database Administrator Credentials details.username
- Administrator username
certificate_tdn
- This name is the distinguished name used while creating the certificate on target database.compartment_id
- OCID of the compartmentconnect_descriptor
- Connect Descriptor details.connect_string
- Connect string.database_service_name
- Database service name.host
- Host of the connect descriptor.port
- Port of the connect descriptor.
credentials_secret_id
- OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.database_id
- The OCID of the cloud database.database_type
- Database connection type.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
display_name
- Database Connection display name identifier.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
manual_database_sub_type
- Database manual connection subtype. This value can only be specified for manual connections.id
- The OCID of the resourcelifecycle_details
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.nsg_ids
- An array of Network Security Group OCIDs used to define network access for Connections.private_endpoint
- Oracle Cloud Infrastructure Private Endpoint configuration details.replication_credentials
- Database Administrator Credentials details.username
- Administrator username
ssh_details
- Details of the SSH key that will be used.host
- Name of the host the SSH key is valid for.sudo_location
- Sudo locationuser
- SSH user
state
- The current state of the Connection resource.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The time the Connection resource was created. An RFC3339 formatted datetime string.time_updated
- The time of the last Connection resource details update. An RFC3339 formatted datetime string.vault_details
- Oracle Cloud Infrastructure Vault details to store migration and connection credentials secretscompartment_id
- OCID of the compartment where the secret containing the credentials will be created.key_id
- OCID of the vault encryption keyvault_id
- OCID of the vault