Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides details about a specific External My Sql Database Connector resource in Oracle Cloud Infrastructure Database Management service.
Retrieves the MySQL database connector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalMySqlDatabaseConnector = oci.DatabaseManagement.getExternalMySqlDatabaseConnector({
externalMySqlDatabaseConnectorId: testExternalMySqlDatabaseConnectorOciDatabaseManagementExternalMySqlDatabaseConnector.id,
});
import pulumi
import pulumi_oci as oci
test_external_my_sql_database_connector = oci.DatabaseManagement.get_external_my_sql_database_connector(external_my_sql_database_connector_id=test_external_my_sql_database_connector_oci_database_management_external_my_sql_database_connector["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/databasemanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasemanagement.GetExternalMySqlDatabaseConnector(ctx, &databasemanagement.GetExternalMySqlDatabaseConnectorArgs{
ExternalMySqlDatabaseConnectorId: testExternalMySqlDatabaseConnectorOciDatabaseManagementExternalMySqlDatabaseConnector.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 testExternalMySqlDatabaseConnector = Oci.DatabaseManagement.GetExternalMySqlDatabaseConnector.Invoke(new()
{
ExternalMySqlDatabaseConnectorId = testExternalMySqlDatabaseConnectorOciDatabaseManagementExternalMySqlDatabaseConnector.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.DatabaseManagementFunctions;
import com.pulumi.oci.DatabaseManagement.inputs.GetExternalMySqlDatabaseConnectorArgs;
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 testExternalMySqlDatabaseConnector = DatabaseManagementFunctions.getExternalMySqlDatabaseConnector(GetExternalMySqlDatabaseConnectorArgs.builder()
.externalMySqlDatabaseConnectorId(testExternalMySqlDatabaseConnectorOciDatabaseManagementExternalMySqlDatabaseConnector.id())
.build());
}
}
variables:
testExternalMySqlDatabaseConnector:
fn::invoke:
function: oci:DatabaseManagement:getExternalMySqlDatabaseConnector
arguments:
externalMySqlDatabaseConnectorId: ${testExternalMySqlDatabaseConnectorOciDatabaseManagementExternalMySqlDatabaseConnector.id}
Using getExternalMySqlDatabaseConnector
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 getExternalMySqlDatabaseConnector(args: GetExternalMySqlDatabaseConnectorArgs, opts?: InvokeOptions): Promise<GetExternalMySqlDatabaseConnectorResult>
function getExternalMySqlDatabaseConnectorOutput(args: GetExternalMySqlDatabaseConnectorOutputArgs, opts?: InvokeOptions): Output<GetExternalMySqlDatabaseConnectorResult>def get_external_my_sql_database_connector(external_my_sql_database_connector_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetExternalMySqlDatabaseConnectorResult
def get_external_my_sql_database_connector_output(external_my_sql_database_connector_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetExternalMySqlDatabaseConnectorResult]func LookupExternalMySqlDatabaseConnector(ctx *Context, args *LookupExternalMySqlDatabaseConnectorArgs, opts ...InvokeOption) (*LookupExternalMySqlDatabaseConnectorResult, error)
func LookupExternalMySqlDatabaseConnectorOutput(ctx *Context, args *LookupExternalMySqlDatabaseConnectorOutputArgs, opts ...InvokeOption) LookupExternalMySqlDatabaseConnectorResultOutput> Note: This function is named LookupExternalMySqlDatabaseConnector in the Go SDK.
public static class GetExternalMySqlDatabaseConnector
{
public static Task<GetExternalMySqlDatabaseConnectorResult> InvokeAsync(GetExternalMySqlDatabaseConnectorArgs args, InvokeOptions? opts = null)
public static Output<GetExternalMySqlDatabaseConnectorResult> Invoke(GetExternalMySqlDatabaseConnectorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetExternalMySqlDatabaseConnectorResult> getExternalMySqlDatabaseConnector(GetExternalMySqlDatabaseConnectorArgs args, InvokeOptions options)
public static Output<GetExternalMySqlDatabaseConnectorResult> getExternalMySqlDatabaseConnector(GetExternalMySqlDatabaseConnectorArgs args, InvokeOptions options)
fn::invoke:
function: oci:DatabaseManagement/getExternalMySqlDatabaseConnector:getExternalMySqlDatabaseConnector
arguments:
# arguments dictionaryThe following arguments are supported:
- External
My stringSql Database Connector Id - The OCID of the External MySQL Database Connector.
- External
My stringSql Database Connector Id - The OCID of the External MySQL Database Connector.
- external
My StringSql Database Connector Id - The OCID of the External MySQL Database Connector.
- external
My stringSql Database Connector Id - The OCID of the External MySQL Database Connector.
- external_
my_ strsql_ database_ connector_ id - The OCID of the External MySQL Database Connector.
- external
My StringSql Database Connector Id - The OCID of the External MySQL Database Connector.
getExternalMySqlDatabaseConnector Result
The following output properties are available:
- Associated
Services string - Oracle Cloud Infrastructure Services associated with this connector.
- Check
Connection intStatus Trigger - Compartment
Id string - OCID of compartment for the External MySQL connector.
- Connection
Status string - Connection Status
- Connector
Details List<GetExternal My Sql Database Connector Connector Detail> - Connector
Type string - Connector Type.
- Credential
Type string - Credential type used to connect to database.
- External
Database stringId - OCID of MySQL Database resource
- External
My stringSql Database Connector Id - Host
Name string - Host name for Connector.
- Id string
- OCID of MySQL Database Connector.
- Is
Test boolConnection Param - Macs
Agent stringId - Agent Id of the MACS agent.
- Name string
- External MySQL Database Connector Name.
- Network
Protocol string - Network Protocol.
- Port int
- Connector port.
- Source
Database string - Name of MySQL Database.
- Source
Database stringType - Type of MySQL Database.
- Ssl
Secret stringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- Ssl
Secret stringName - Name of the SSL secret, if TCPS with SSL is used to connect to database.
- State string
- Indicates lifecycle state of the resource.
- Time
Connection stringStatus Updated - Time when connection status was last updated.
- Time
Created string - Connector creation time.
- Time
Updated string - Connector update time.
- Associated
Services string - Oracle Cloud Infrastructure Services associated with this connector.
- Check
Connection intStatus Trigger - Compartment
Id string - OCID of compartment for the External MySQL connector.
- Connection
Status string - Connection Status
- Connector
Details []GetExternal My Sql Database Connector Connector Detail - Connector
Type string - Connector Type.
- Credential
Type string - Credential type used to connect to database.
- External
Database stringId - OCID of MySQL Database resource
- External
My stringSql Database Connector Id - Host
Name string - Host name for Connector.
- Id string
- OCID of MySQL Database Connector.
- Is
Test boolConnection Param - Macs
Agent stringId - Agent Id of the MACS agent.
- Name string
- External MySQL Database Connector Name.
- Network
Protocol string - Network Protocol.
- Port int
- Connector port.
- Source
Database string - Name of MySQL Database.
- Source
Database stringType - Type of MySQL Database.
- Ssl
Secret stringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- Ssl
Secret stringName - Name of the SSL secret, if TCPS with SSL is used to connect to database.
- State string
- Indicates lifecycle state of the resource.
- Time
Connection stringStatus Updated - Time when connection status was last updated.
- Time
Created string - Connector creation time.
- Time
Updated string - Connector update time.
- associated
Services String - Oracle Cloud Infrastructure Services associated with this connector.
- check
Connection IntegerStatus Trigger - compartment
Id String - OCID of compartment for the External MySQL connector.
- connection
Status String - Connection Status
- connector
Details List<GetExternal My Sql Database Connector Connector Detail> - connector
Type String - Connector Type.
- credential
Type String - Credential type used to connect to database.
- external
Database StringId - OCID of MySQL Database resource
- external
My StringSql Database Connector Id - host
Name String - Host name for Connector.
- id String
- OCID of MySQL Database Connector.
- is
Test BooleanConnection Param - macs
Agent StringId - Agent Id of the MACS agent.
- name String
- External MySQL Database Connector Name.
- network
Protocol String - Network Protocol.
- port Integer
- Connector port.
- source
Database String - Name of MySQL Database.
- source
Database StringType - Type of MySQL Database.
- ssl
Secret StringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- ssl
Secret StringName - Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state String
- Indicates lifecycle state of the resource.
- time
Connection StringStatus Updated - Time when connection status was last updated.
- time
Created String - Connector creation time.
- time
Updated String - Connector update time.
- associated
Services string - Oracle Cloud Infrastructure Services associated with this connector.
- check
Connection numberStatus Trigger - compartment
Id string - OCID of compartment for the External MySQL connector.
- connection
Status string - Connection Status
- connector
Details GetExternal My Sql Database Connector Connector Detail[] - connector
Type string - Connector Type.
- credential
Type string - Credential type used to connect to database.
- external
Database stringId - OCID of MySQL Database resource
- external
My stringSql Database Connector Id - host
Name string - Host name for Connector.
- id string
- OCID of MySQL Database Connector.
- is
Test booleanConnection Param - macs
Agent stringId - Agent Id of the MACS agent.
- name string
- External MySQL Database Connector Name.
- network
Protocol string - Network Protocol.
- port number
- Connector port.
- source
Database string - Name of MySQL Database.
- source
Database stringType - Type of MySQL Database.
- ssl
Secret stringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- ssl
Secret stringName - Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state string
- Indicates lifecycle state of the resource.
- time
Connection stringStatus Updated - Time when connection status was last updated.
- time
Created string - Connector creation time.
- time
Updated string - Connector update time.
- associated_
services str - Oracle Cloud Infrastructure Services associated with this connector.
- check_
connection_ intstatus_ trigger - compartment_
id str - OCID of compartment for the External MySQL connector.
- connection_
status str - Connection Status
- connector_
details Sequence[GetExternal My Sql Database Connector Connector Detail] - connector_
type str - Connector Type.
- credential_
type str - Credential type used to connect to database.
- external_
database_ strid - OCID of MySQL Database resource
- external_
my_ strsql_ database_ connector_ id - host_
name str - Host name for Connector.
- id str
- OCID of MySQL Database Connector.
- is_
test_ boolconnection_ param - macs_
agent_ strid - Agent Id of the MACS agent.
- name str
- External MySQL Database Connector Name.
- network_
protocol str - Network Protocol.
- port int
- Connector port.
- source_
database str - Name of MySQL Database.
- source_
database_ strtype - Type of MySQL Database.
- ssl_
secret_ strid - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- ssl_
secret_ strname - Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state str
- Indicates lifecycle state of the resource.
- time_
connection_ strstatus_ updated - Time when connection status was last updated.
- time_
created str - Connector creation time.
- time_
updated str - Connector update time.
- associated
Services String - Oracle Cloud Infrastructure Services associated with this connector.
- check
Connection NumberStatus Trigger - compartment
Id String - OCID of compartment for the External MySQL connector.
- connection
Status String - Connection Status
- connector
Details List<Property Map> - connector
Type String - Connector Type.
- credential
Type String - Credential type used to connect to database.
- external
Database StringId - OCID of MySQL Database resource
- external
My StringSql Database Connector Id - host
Name String - Host name for Connector.
- id String
- OCID of MySQL Database Connector.
- is
Test BooleanConnection Param - macs
Agent StringId - Agent Id of the MACS agent.
- name String
- External MySQL Database Connector Name.
- network
Protocol String - Network Protocol.
- port Number
- Connector port.
- source
Database String - Name of MySQL Database.
- source
Database StringType - Type of MySQL Database.
- ssl
Secret StringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- ssl
Secret StringName - Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state String
- Indicates lifecycle state of the resource.
- time
Connection StringStatus Updated - Time when connection status was last updated.
- time
Created String - Connector creation time.
- time
Updated String - Connector update time.
Supporting Types
GetExternalMySqlDatabaseConnectorConnectorDetail
- Credential
Type string - Credential type used to connect to database.
- Display
Name string - External
Database stringId - OCID of MySQL Database resource
- Host
Name string - Host name for Connector.
- Macs
Agent stringId - Agent Id of the MACS agent.
- Network
Protocol string - Network Protocol.
- Port int
- Connector port.
- Ssl
Secret stringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- Credential
Type string - Credential type used to connect to database.
- Display
Name string - External
Database stringId - OCID of MySQL Database resource
- Host
Name string - Host name for Connector.
- Macs
Agent stringId - Agent Id of the MACS agent.
- Network
Protocol string - Network Protocol.
- Port int
- Connector port.
- Ssl
Secret stringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- credential
Type String - Credential type used to connect to database.
- display
Name String - external
Database StringId - OCID of MySQL Database resource
- host
Name String - Host name for Connector.
- macs
Agent StringId - Agent Id of the MACS agent.
- network
Protocol String - Network Protocol.
- port Integer
- Connector port.
- ssl
Secret StringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- credential
Type string - Credential type used to connect to database.
- display
Name string - external
Database stringId - OCID of MySQL Database resource
- host
Name string - Host name for Connector.
- macs
Agent stringId - Agent Id of the MACS agent.
- network
Protocol string - Network Protocol.
- port number
- Connector port.
- ssl
Secret stringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- credential_
type str - Credential type used to connect to database.
- display_
name str - external_
database_ strid - OCID of MySQL Database resource
- host_
name str - Host name for Connector.
- macs_
agent_ strid - Agent Id of the MACS agent.
- network_
protocol str - Network Protocol.
- port int
- Connector port.
- ssl_
secret_ strid - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- credential
Type String - Credential type used to connect to database.
- display
Name String - external
Database StringId - OCID of MySQL Database resource
- host
Name String - Host name for Connector.
- macs
Agent StringId - Agent Id of the MACS agent.
- network
Protocol String - Network Protocol.
- port Number
- Connector port.
- ssl
Secret StringId - OCID of the SSL secret, if TCPS with SSL is used to connect to database.
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 v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
