Viewing docs for Oracle Cloud Infrastructure v3.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v3.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConnection = oci.DatabaseMigration.getConnection({
connectionId: testConnectionOciDatabaseMigrationConnection.id,
});
import pulumi
import pulumi_oci as oci
test_connection = oci.DatabaseMigration.get_connection(connection_id=test_connection_oci_database_migration_connection["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/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: testConnectionOciDatabaseMigrationConnection.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 = testConnectionOciDatabaseMigrationConnection.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(testConnectionOciDatabaseMigrationConnection.id())
.build());
}
}
variables:
testConnection:
fn::invoke:
function: oci:DatabaseMigration:getConnection
arguments:
connectionId: ${testConnectionOciDatabaseMigrationConnection.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 LookupConnection(ctx *Context, args *LookupConnectionArgs, opts ...InvokeOption) (*LookupConnectionResult, error)
func LookupConnectionOutput(ctx *Context, args *LookupConnectionOutputArgs, opts ...InvokeOption) LookupConnectionResultOutput> Note: This function is named LookupConnection 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)
public static Output<GetConnectionResult> getConnection(GetConnectionArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseMigration/getConnection:getConnection
arguments:
# arguments dictionaryThe 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:
- Additional
Attributes List<GetConnection Additional Attribute> - An array of name-value pair attribute entries.
- Compartment
Id string - The OCID of the compartment.
- Connection
Id string - Connection
String string - Connect descriptor or Easy Connect Naming method used to connect to a database.
- Connection
Type string - Defines the type of connection. For example, ORACLE.
- Database
Id string - The OCID of the database being referenced.
- Database
Name string - The name of the database being referenced.
- Db
System stringId - The OCID of the database system being referenced.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- 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"}
- Host string
- The IP Address of the host.
- Id string
- The OCID of the connection being referenced.
- Ingress
Ips List<GetConnection Ingress Ip> - List of ingress IP addresses from where to connect to this connection's privateIp.
- Key
Id string - The OCID of the key used in cryptographic operations.
- Lifecycle
Details string - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state.
- Nsg
Ids List<string> - An array of Network Security Group OCIDs used to define network access for Connections.
- Password string
- The password (credential) used when creating or updating this resource.
- Port int
- The port to be used for the connection.
- Private
Endpoint stringId - The OCID of the resource being referenced.
- Replication
Password string - The password (credential) used when creating or updating this resource.
- Replication
Username string - The username (credential) used when creating or updating this resource.
- Secret
Id string - The OCID of the resource being referenced.
- Security
Protocol string - Security Protocol to be used for the connection.
- Ssh
Host string - Name of the host the SSH key is valid for.
- Ssh
Key string - Private SSH key string.
- Ssh
Sudo stringLocation - Sudo location
- Ssh
User string - The username (credential) used when creating or updating this resource.
- Ssl
Ca string - Ssl
Cert string - Ssl
Crl string - Ssl
Key string - Ssl
Mode string - SSL mode to be used for the connection.
- State string
- The Connection's current lifecycle state.
- Subnet
Id string - Oracle Cloud Infrastructure resource ID.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Technology
Type string - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service
- Time
Created string - The time when this resource was created. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - Time
Updated string - The time when this resource was updated. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - Username string
- The username (credential) used when creating or updating this resource.
- Vault
Id string - Oracle Cloud Infrastructure resource ID.
- Wallet string
- Additional
Attributes []GetConnection Additional Attribute - An array of name-value pair attribute entries.
- Compartment
Id string - The OCID of the compartment.
- Connection
Id string - Connection
String string - Connect descriptor or Easy Connect Naming method used to connect to a database.
- Connection
Type string - Defines the type of connection. For example, ORACLE.
- Database
Id string - The OCID of the database being referenced.
- Database
Name string - The name of the database being referenced.
- Db
System stringId - The OCID of the database system being referenced.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - Description string
- A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- 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"}
- Host string
- The IP Address of the host.
- Id string
- The OCID of the connection being referenced.
- Ingress
Ips []GetConnection Ingress Ip - List of ingress IP addresses from where to connect to this connection's privateIp.
- Key
Id string - The OCID of the key used in cryptographic operations.
- Lifecycle
Details string - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state.
- Nsg
Ids []string - An array of Network Security Group OCIDs used to define network access for Connections.
- Password string
- The password (credential) used when creating or updating this resource.
- Port int
- The port to be used for the connection.
- Private
Endpoint stringId - The OCID of the resource being referenced.
- Replication
Password string - The password (credential) used when creating or updating this resource.
- Replication
Username string - The username (credential) used when creating or updating this resource.
- Secret
Id string - The OCID of the resource being referenced.
- Security
Protocol string - Security Protocol to be used for the connection.
- Ssh
Host string - Name of the host the SSH key is valid for.
- Ssh
Key string - Private SSH key string.
- Ssh
Sudo stringLocation - Sudo location
- Ssh
User string - The username (credential) used when creating or updating this resource.
- Ssl
Ca string - Ssl
Cert string - Ssl
Crl string - Ssl
Key string - Ssl
Mode string - SSL mode to be used for the connection.
- State string
- The Connection's current lifecycle state.
- Subnet
Id string - Oracle Cloud Infrastructure resource ID.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - Technology
Type string - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service
- Time
Created string - The time when this resource was created. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - Time
Updated string - The time when this resource was updated. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - Username string
- The username (credential) used when creating or updating this resource.
- Vault
Id string - Oracle Cloud Infrastructure resource ID.
- Wallet string
- additional
Attributes List<GetConnection Additional Attribute> - An array of name-value pair attribute entries.
- compartment
Id String - The OCID of the compartment.
- connection
Id String - connection
String String - Connect descriptor or Easy Connect Naming method used to connect to a database.
- connection
Type String - Defines the type of connection. For example, ORACLE.
- database
Id String - The OCID of the database being referenced.
- database
Name String - The name of the database being referenced.
- db
System StringId - The OCID of the database system being referenced.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- 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"}
- host String
- The IP Address of the host.
- id String
- The OCID of the connection being referenced.
- ingress
Ips List<GetConnection Ingress Ip> - List of ingress IP addresses from where to connect to this connection's privateIp.
- key
Id String - The OCID of the key used in cryptographic operations.
- lifecycle
Details String - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state.
- nsg
Ids List<String> - An array of Network Security Group OCIDs used to define network access for Connections.
- password String
- The password (credential) used when creating or updating this resource.
- port Integer
- The port to be used for the connection.
- private
Endpoint StringId - The OCID of the resource being referenced.
- replication
Password String - The password (credential) used when creating or updating this resource.
- replication
Username String - The username (credential) used when creating or updating this resource.
- secret
Id String - The OCID of the resource being referenced.
- security
Protocol String - Security Protocol to be used for the connection.
- ssh
Host String - Name of the host the SSH key is valid for.
- ssh
Key String - Private SSH key string.
- ssh
Sudo StringLocation - Sudo location
- ssh
User String - The username (credential) used when creating or updating this resource.
- ssl
Ca String - ssl
Cert String - ssl
Crl String - ssl
Key String - ssl
Mode String - SSL mode to be used for the connection.
- state String
- The Connection's current lifecycle state.
- subnet
Id String - Oracle Cloud Infrastructure resource ID.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - technology
Type String - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service
- time
Created String - The time when this resource was created. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - time
Updated String - The time when this resource was updated. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - username String
- The username (credential) used when creating or updating this resource.
- vault
Id String - Oracle Cloud Infrastructure resource ID.
- wallet String
- additional
Attributes GetConnection Additional Attribute[] - An array of name-value pair attribute entries.
- compartment
Id string - The OCID of the compartment.
- connection
Id string - connection
String string - Connect descriptor or Easy Connect Naming method used to connect to a database.
- connection
Type string - Defines the type of connection. For example, ORACLE.
- database
Id string - The OCID of the database being referenced.
- database
Name string - The name of the database being referenced.
- db
System stringId - The OCID of the database system being referenced.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description string
- A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- 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"}
- host string
- The IP Address of the host.
- id string
- The OCID of the connection being referenced.
- ingress
Ips GetConnection Ingress Ip[] - List of ingress IP addresses from where to connect to this connection's privateIp.
- key
Id string - The OCID of the key used in cryptographic operations.
- lifecycle
Details string - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state.
- nsg
Ids string[] - An array of Network Security Group OCIDs used to define network access for Connections.
- password string
- The password (credential) used when creating or updating this resource.
- port number
- The port to be used for the connection.
- private
Endpoint stringId - The OCID of the resource being referenced.
- replication
Password string - The password (credential) used when creating or updating this resource.
- replication
Username string - The username (credential) used when creating or updating this resource.
- secret
Id string - The OCID of the resource being referenced.
- security
Protocol string - Security Protocol to be used for the connection.
- ssh
Host string - Name of the host the SSH key is valid for.
- ssh
Key string - Private SSH key string.
- ssh
Sudo stringLocation - Sudo location
- ssh
User string - The username (credential) used when creating or updating this resource.
- ssl
Ca string - ssl
Cert string - ssl
Crl string - ssl
Key string - ssl
Mode string - SSL mode to be used for the connection.
- state string
- The Connection's current lifecycle state.
- subnet
Id string - Oracle Cloud Infrastructure resource ID.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - technology
Type string - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service
- time
Created string - The time when this resource was created. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - time
Updated string - The time when this resource was updated. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - username string
- The username (credential) used when creating or updating this resource.
- vault
Id string - Oracle Cloud Infrastructure resource ID.
- wallet string
- additional_
attributes Sequence[GetConnection Additional Attribute] - An array of name-value pair attribute entries.
- compartment_
id str - The OCID of the compartment.
- connection_
id str - connection_
string str - Connect descriptor or Easy Connect Naming method used to connect to a database.
- connection_
type str - Defines the type of connection. For example, ORACLE.
- database_
id str - The OCID of the database being referenced.
- database_
name str - The name of the database being referenced.
- db_
system_ strid - The OCID of the database system being referenced.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description str
- A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- 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"}
- host str
- The IP Address of the host.
- id str
- The OCID of the connection being referenced.
- ingress_
ips Sequence[GetConnection Ingress Ip] - List of ingress IP addresses from where to connect to this connection's privateIp.
- key_
id str - The OCID of the key used in cryptographic operations.
- lifecycle_
details str - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state.
- nsg_
ids Sequence[str] - An array of Network Security Group OCIDs used to define network access for Connections.
- password str
- The password (credential) used when creating or updating this resource.
- port int
- The port to be used for the connection.
- private_
endpoint_ strid - The OCID of the resource being referenced.
- replication_
password str - The password (credential) used when creating or updating this resource.
- replication_
username str - The username (credential) used when creating or updating this resource.
- secret_
id str - The OCID of the resource being referenced.
- security_
protocol str - Security Protocol to be used for the connection.
- ssh_
host str - Name of the host the SSH key is valid for.
- ssh_
key str - Private SSH key string.
- ssh_
sudo_ strlocation - Sudo location
- ssh_
user str - The username (credential) used when creating or updating this resource.
- ssl_
ca str - ssl_
cert str - ssl_
crl str - ssl_
key str - ssl_
mode str - SSL mode to be used for the connection.
- state str
- The Connection's current lifecycle state.
- subnet_
id str - Oracle Cloud Infrastructure resource ID.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - technology_
type str - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service
- time_
created str - The time when this resource was created. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - time_
updated str - The time when this resource was updated. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - username str
- The username (credential) used when creating or updating this resource.
- vault_
id str - Oracle Cloud Infrastructure resource ID.
- wallet str
- additional
Attributes List<Property Map> - An array of name-value pair attribute entries.
- compartment
Id String - The OCID of the compartment.
- connection
Id String - connection
String String - Connect descriptor or Easy Connect Naming method used to connect to a database.
- connection
Type String - Defines the type of connection. For example, ORACLE.
- database
Id String - The OCID of the database being referenced.
- database
Name String - The name of the database being referenced.
- db
System StringId - The OCID of the database system being referenced.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - description String
- A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- 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"}
- host String
- The IP Address of the host.
- id String
- The OCID of the connection being referenced.
- ingress
Ips List<Property Map> - List of ingress IP addresses from where to connect to this connection's privateIp.
- key
Id String - The OCID of the key used in cryptographic operations.
- lifecycle
Details String - The message describing the current state of the connection's lifecycle in detail. For example, can be used to provide actionable information for a connection in a Failed state.
- nsg
Ids List<String> - An array of Network Security Group OCIDs used to define network access for Connections.
- password String
- The password (credential) used when creating or updating this resource.
- port Number
- The port to be used for the connection.
- private
Endpoint StringId - The OCID of the resource being referenced.
- replication
Password String - The password (credential) used when creating or updating this resource.
- replication
Username String - The username (credential) used when creating or updating this resource.
- secret
Id String - The OCID of the resource being referenced.
- security
Protocol String - Security Protocol to be used for the connection.
- ssh
Host String - Name of the host the SSH key is valid for.
- ssh
Key String - Private SSH key string.
- ssh
Sudo StringLocation - Sudo location
- ssh
User String - The username (credential) used when creating or updating this resource.
- ssl
Ca String - ssl
Cert String - ssl
Crl String - ssl
Key String - ssl
Mode String - SSL mode to be used for the connection.
- state String
- The Connection's current lifecycle state.
- subnet
Id String - Oracle Cloud Infrastructure resource ID.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"} - technology
Type String - The type of MySQL source or target connection. Example: OCI_MYSQL represents Oracle Cloud Infrastructure MySQL HeatWave Database Service
- time
Created String - The time when this resource was created. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - time
Updated String - The time when this resource was updated. An RFC3339 formatted datetime string such as
2016-08-25T21:10:29.600Z. - username String
- The username (credential) used when creating or updating this resource.
- vault
Id String - Oracle Cloud Infrastructure resource ID.
- wallet String
Supporting Types
GetConnectionAdditionalAttribute
GetConnectionIngressIp
- Ingress
Ip string - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet.
- Ingress
Ip string - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet.
- ingress
Ip String - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet.
- ingress
Ip string - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet.
- ingress_
ip str - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet.
- ingress
Ip String - A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v3.16.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
