Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi
oci.DatabaseMigration.getConnection
Explore with Pulumi AI
This data source provides details about a specific Connection resource in Oracle Cloud Infrastructure Database Migration service.
Display Database Connection details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnection = oci.DatabaseMigration.getConnection({
connectionId: oci_database_migration_connection.test_connection.id,
});
import pulumi
import pulumi_oci as oci
test_connection = oci.DatabaseMigration.get_connection(connection_id=oci_database_migration_connection["test_connection"]["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseMigration"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseMigration.GetConnection(ctx, &databasemigration.GetConnectionArgs{
ConnectionId: oci_database_migration_connection.Test_connection.Id,
}, nil)
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 testConnection = Oci.DatabaseMigration.GetConnection.Invoke(new()
{
ConnectionId = oci_database_migration_connection.Test_connection.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseMigration.DatabaseMigrationFunctions;
import com.pulumi.oci.DatabaseMigration.inputs.GetConnectionArgs;
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) {
final var testConnection = DatabaseMigrationFunctions.getConnection(GetConnectionArgs.builder()
.connectionId(oci_database_migration_connection.test_connection().id())
.build());
}
}
variables:
testConnection:
fn::invoke:
Function: oci:DatabaseMigration:getConnection
Arguments:
connectionId: ${oci_database_migration_connection.test_connection.id}
Using getConnection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getConnection(args: GetConnectionArgs, opts?: InvokeOptions): Promise<GetConnectionResult>
function getConnectionOutput(args: GetConnectionOutputArgs, opts?: InvokeOptions): Output<GetConnectionResult>
def get_connection(connection_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionResult
def get_connection_output(connection_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectionResult]
func GetConnection(ctx *Context, args *GetConnectionArgs, opts ...InvokeOption) (*GetConnectionResult, error)
func GetConnectionOutput(ctx *Context, args *GetConnectionOutputArgs, opts ...InvokeOption) GetConnectionResultOutput
> Note: This function is named GetConnection
in the Go SDK.
public static class GetConnection
{
public static Task<GetConnectionResult> InvokeAsync(GetConnectionArgs args, InvokeOptions? opts = null)
public static Output<GetConnectionResult> Invoke(GetConnectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DatabaseMigration/getConnection:getConnection
arguments:
# arguments dictionary
The following arguments are supported:
- Connection
Id string - The OCID of the database connection
- Connection
Id string - The OCID of the database connection
- connection
Id String - The OCID of the database connection
- connection
Id string - The OCID of the database connection
- connection_
id str - The OCID of the database connection
- connection
Id String - The OCID of the database connection
getConnection Result
The following output properties are available:
- Admin
Credentials List<GetConnection Admin Credential> - Database Administrator Credentials details.
- Certificate
Tdn string - This name is the distinguished name used while creating the certificate on target database.
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Connect
Descriptors List<GetConnection Connect Descriptor> - Connect Descriptor details.
- Connection
Id string - Credentials
Secret stringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- Database
Id string - The OCID of the cloud database.
- Database
Type string - Database connection type.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Database Connection display name identifier.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- OCID of a previously created Private Endpoint.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Manual
Database stringSub Type - Nsg
Ids List<string> - An array of Network Security Group OCIDs used to define network access for Connections.
- Private
Endpoints List<GetConnection Private Endpoint> - Oracle Cloud Infrastructure Private Endpoint configuration details.
- Replication
Credentials List<GetConnection Replication Credential> - Database Administrator Credentials details.
- Ssh
Details List<GetConnection Ssh Detail> - Details of the SSH key that will be used.
- State string
- The current state of the Connection resource.
- Dictionary<string, object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the Connection resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- Tls
Keystore string - Tls
Wallet string - Vault
Details List<GetConnection Vault Detail> - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- Admin
Credentials []GetConnection Admin Credential - Database Administrator Credentials details.
- Certificate
Tdn string - This name is the distinguished name used while creating the certificate on target database.
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Connect
Descriptors []GetConnection Connect Descriptor - Connect Descriptor details.
- Connection
Id string - Credentials
Secret stringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- Database
Id string - The OCID of the cloud database.
- Database
Type string - Database connection type.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - Database Connection display name identifier.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- OCID of a previously created Private Endpoint.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Manual
Database stringSub Type - Nsg
Ids []string - An array of Network Security Group OCIDs used to define network access for Connections.
- Private
Endpoints []GetConnection Private Endpoint - Oracle Cloud Infrastructure Private Endpoint configuration details.
- Replication
Credentials []GetConnection Replication Credential - Database Administrator Credentials details.
- Ssh
Details []GetConnection Ssh Detail - Details of the SSH key that will be used.
- State string
- The current state of the Connection resource.
- map[string]interface{}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the Connection resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- Tls
Keystore string - Tls
Wallet string - Vault
Details []GetConnection Vault Detail - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin
Credentials List<GetConnection Admin Credential> - Database Administrator Credentials details.
- certificate
Tdn String - This name is the distinguished name used while creating the certificate on target database.
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- connect
Descriptors List<GetConnection Connect Descriptor> - Connect Descriptor details.
- connection
Id String - credentials
Secret StringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database
Id String - The OCID of the cloud database.
- database
Type String - Database connection type.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Database Connection display name identifier.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- OCID of a previously created Private Endpoint.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual
Database StringSub Type - nsg
Ids List<String> - An array of Network Security Group OCIDs used to define network access for Connections.
- private
Endpoints List<GetConnection Private Endpoint> - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication
Credentials List<GetConnection Replication Credential> - Database Administrator Credentials details.
- ssh
Details List<GetConnection Ssh Detail> - Details of the SSH key that will be used.
- state String
- The current state of the Connection resource.
- Map<String,Object>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls
Keystore String - tls
Wallet String - vault
Details List<GetConnection Vault Detail> - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin
Credentials GetConnection Admin Credential[] - Database Administrator Credentials details.
- certificate
Tdn string - This name is the distinguished name used while creating the certificate on target database.
- compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- connect
Descriptors GetConnection Connect Descriptor[] - Connect Descriptor details.
- connection
Id string - credentials
Secret stringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database
Id string - The OCID of the cloud database.
- database
Type string - Database connection type.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - Database Connection display name identifier.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- OCID of a previously created Private Endpoint.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual
Database stringSub Type - nsg
Ids string[] - An array of Network Security Group OCIDs used to define network access for Connections.
- private
Endpoints GetConnection Private Endpoint[] - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication
Credentials GetConnection Replication Credential[] - Database Administrator Credentials details.
- ssh
Details GetConnection Ssh Detail[] - Details of the SSH key that will be used.
- state string
- The current state of the Connection resource.
- {[key: string]: any}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls
Keystore string - tls
Wallet string - vault
Details GetConnection Vault Detail[] - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin_
credentials Sequence[databasemigration.Get Connection Admin Credential] - Database Administrator Credentials details.
- certificate_
tdn str - This name is the distinguished name used while creating the certificate on target database.
- compartment_
id str - OCID of the compartment where the secret containing the credentials will be created.
- connect_
descriptors Sequence[databasemigration.Get Connection Connect Descriptor] - Connect Descriptor details.
- connection_
id str - credentials_
secret_ strid - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database_
id str - The OCID of the cloud database.
- database_
type str - Database connection type.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display_
name str - Database Connection display name identifier.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- OCID of a previously created Private Endpoint.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual_
database_ strsub_ type - nsg_
ids Sequence[str] - An array of Network Security Group OCIDs used to define network access for Connections.
- private_
endpoints Sequence[databasemigration.Get Connection Private Endpoint] - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication_
credentials Sequence[databasemigration.Get Connection Replication Credential] - Database Administrator Credentials details.
- ssh_
details Sequence[databasemigration.Get Connection Ssh Detail] - Details of the SSH key that will be used.
- state str
- The current state of the Connection resource.
- Mapping[str, Any]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time_
created str - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls_
keystore str - tls_
wallet str - vault_
details Sequence[databasemigration.Get Connection Vault Detail] - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
- admin
Credentials List<Property Map> - Database Administrator Credentials details.
- certificate
Tdn String - This name is the distinguished name used while creating the certificate on target database.
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- connect
Descriptors List<Property Map> - Connect Descriptor details.
- connection
Id String - credentials
Secret StringId - OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
- database
Id String - The OCID of the cloud database.
- database
Type String - Database connection type.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - Database Connection display name identifier.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- OCID of a previously created Private Endpoint.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- manual
Database StringSub Type - nsg
Ids List<String> - An array of Network Security Group OCIDs used to define network access for Connections.
- private
Endpoints List<Property Map> - Oracle Cloud Infrastructure Private Endpoint configuration details.
- replication
Credentials List<Property Map> - Database Administrator Credentials details.
- ssh
Details List<Property Map> - Details of the SSH key that will be used.
- state String
- The current state of the Connection resource.
- Map<Any>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the Connection resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time of the last Connection resource details update. An RFC3339 formatted datetime string.
- tls
Keystore String - tls
Wallet String - vault
Details List<Property Map> - Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
Supporting Types
GetConnectionAdminCredential
GetConnectionConnectDescriptor
- Connect
String string - Connect string.
- Database
Service stringName - Database service name.
- Host string
- Name of the host the SSH key is valid for.
- Port int
- Port of the connect descriptor.
- Connect
String string - Connect string.
- Database
Service stringName - Database service name.
- Host string
- Name of the host the SSH key is valid for.
- Port int
- Port of the connect descriptor.
- connect
String String - Connect string.
- database
Service StringName - Database service name.
- host String
- Name of the host the SSH key is valid for.
- port Integer
- Port of the connect descriptor.
- connect
String string - Connect string.
- database
Service stringName - Database service name.
- host string
- Name of the host the SSH key is valid for.
- port number
- Port of the connect descriptor.
- connect_
string str - Connect string.
- database_
service_ strname - Database service name.
- host str
- Name of the host the SSH key is valid for.
- port int
- Port of the connect descriptor.
- connect
String String - Connect string.
- database
Service StringName - Database service name.
- host String
- Name of the host the SSH key is valid for.
- port Number
- Port of the connect descriptor.
GetConnectionPrivateEndpoint
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Id string
- OCID of a previously created Private Endpoint.
- Subnet
Id string - The OCID of the customer's subnet where the private endpoint VNIC will reside.
- Vcn
Id string - The OCID of the VCN where the Private Endpoint will be bound to.
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Id string
- OCID of a previously created Private Endpoint.
- Subnet
Id string - The OCID of the customer's subnet where the private endpoint VNIC will reside.
- Vcn
Id string - The OCID of the VCN where the Private Endpoint will be bound to.
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- id String
- OCID of a previously created Private Endpoint.
- subnet
Id String - The OCID of the customer's subnet where the private endpoint VNIC will reside.
- vcn
Id String - The OCID of the VCN where the Private Endpoint will be bound to.
- compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- id string
- OCID of a previously created Private Endpoint.
- subnet
Id string - The OCID of the customer's subnet where the private endpoint VNIC will reside.
- vcn
Id string - The OCID of the VCN where the Private Endpoint will be bound to.
- compartment_
id str - OCID of the compartment where the secret containing the credentials will be created.
- id str
- OCID of a previously created Private Endpoint.
- subnet_
id str - The OCID of the customer's subnet where the private endpoint VNIC will reside.
- vcn_
id str - The OCID of the VCN where the Private Endpoint will be bound to.
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- id String
- OCID of a previously created Private Endpoint.
- subnet
Id String - The OCID of the customer's subnet where the private endpoint VNIC will reside.
- vcn
Id String - The OCID of the VCN where the Private Endpoint will be bound to.
GetConnectionReplicationCredential
GetConnectionSshDetail
- Host string
- Name of the host the SSH key is valid for.
- Sshkey string
- Sudo
Location string - Sudo location
- User string
- SSH user
- Host string
- Name of the host the SSH key is valid for.
- Sshkey string
- Sudo
Location string - Sudo location
- User string
- SSH user
- host String
- Name of the host the SSH key is valid for.
- sshkey String
- sudo
Location String - Sudo location
- user String
- SSH user
- host string
- Name of the host the SSH key is valid for.
- sshkey string
- sudo
Location string - Sudo location
- user string
- SSH user
- host str
- Name of the host the SSH key is valid for.
- sshkey str
- sudo_
location str - Sudo location
- user str
- SSH user
- host String
- Name of the host the SSH key is valid for.
- sshkey String
- sudo
Location String - Sudo location
- user String
- SSH user
GetConnectionVaultDetail
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Key
Id string - OCID of the vault encryption key
- Vault
Id string - OCID of the vault
- Compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- Key
Id string - OCID of the vault encryption key
- Vault
Id string - OCID of the vault
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- key
Id String - OCID of the vault encryption key
- vault
Id String - OCID of the vault
- compartment
Id string - OCID of the compartment where the secret containing the credentials will be created.
- key
Id string - OCID of the vault encryption key
- vault
Id string - OCID of the vault
- compartment_
id str - OCID of the compartment where the secret containing the credentials will be created.
- key_
id str - OCID of the vault encryption key
- vault_
id str - OCID of the vault
- compartment
Id String - OCID of the compartment where the secret containing the credentials will be created.
- key
Id String - OCID of the vault encryption key
- vault
Id String - OCID of the vault
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.