Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getExternalMySqlDatabaseConnector
Explore with Pulumi AI
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/v2/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:
- ExternalMy stringSql Database Connector Id 
- The OCID of the External MySQL Database Connector.
- ExternalMy stringSql Database Connector Id 
- The OCID of the External MySQL Database Connector.
- externalMy StringSql Database Connector Id 
- The OCID of the External MySQL Database Connector.
- externalMy 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.
- externalMy StringSql Database Connector Id 
- The OCID of the External MySQL Database Connector.
getExternalMySqlDatabaseConnector Result
The following output properties are available:
- AssociatedServices string
- Oracle Cloud Infrastructure Services associated with this connector.
- CheckConnection intStatus Trigger 
- CompartmentId string
- OCID of compartment for the External MySQL connector.
- ConnectionStatus string
- Connection Status
- ConnectorDetails List<GetExternal My Sql Database Connector Connector Detail> 
- ConnectorType string
- Connector Type.
- CredentialType string
- Credential type used to connect to database.
- ExternalDatabase stringId 
- OCID of MySQL Database resource
- ExternalMy stringSql Database Connector Id 
- HostName string
- Host name for Connector.
- Id string
- OCID of MySQL Database Connector.
- IsTest boolConnection Param 
- MacsAgent stringId 
- Agent Id of the MACS agent.
- Name string
- External MySQL Database Connector Name.
- NetworkProtocol string
- Network Protocol.
- Port int
- Connector port.
- SourceDatabase string
- Name of MySQL Database.
- SourceDatabase stringType 
- Type of MySQL Database.
- SslSecret stringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- SslSecret stringName 
- Name of the SSL secret, if TCPS with SSL is used to connect to database.
- State string
- Indicates lifecycle state of the resource.
- TimeConnection stringStatus Updated 
- Time when connection status was last updated.
- TimeCreated string
- Connector creation time.
- TimeUpdated string
- Connector update time.
- AssociatedServices string
- Oracle Cloud Infrastructure Services associated with this connector.
- CheckConnection intStatus Trigger 
- CompartmentId string
- OCID of compartment for the External MySQL connector.
- ConnectionStatus string
- Connection Status
- ConnectorDetails []GetExternal My Sql Database Connector Connector Detail 
- ConnectorType string
- Connector Type.
- CredentialType string
- Credential type used to connect to database.
- ExternalDatabase stringId 
- OCID of MySQL Database resource
- ExternalMy stringSql Database Connector Id 
- HostName string
- Host name for Connector.
- Id string
- OCID of MySQL Database Connector.
- IsTest boolConnection Param 
- MacsAgent stringId 
- Agent Id of the MACS agent.
- Name string
- External MySQL Database Connector Name.
- NetworkProtocol string
- Network Protocol.
- Port int
- Connector port.
- SourceDatabase string
- Name of MySQL Database.
- SourceDatabase stringType 
- Type of MySQL Database.
- SslSecret stringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- SslSecret stringName 
- Name of the SSL secret, if TCPS with SSL is used to connect to database.
- State string
- Indicates lifecycle state of the resource.
- TimeConnection stringStatus Updated 
- Time when connection status was last updated.
- TimeCreated string
- Connector creation time.
- TimeUpdated string
- Connector update time.
- associatedServices String
- Oracle Cloud Infrastructure Services associated with this connector.
- checkConnection IntegerStatus Trigger 
- compartmentId String
- OCID of compartment for the External MySQL connector.
- connectionStatus String
- Connection Status
- connectorDetails List<GetExternal My Sql Database Connector Connector Detail> 
- connectorType String
- Connector Type.
- credentialType String
- Credential type used to connect to database.
- externalDatabase StringId 
- OCID of MySQL Database resource
- externalMy StringSql Database Connector Id 
- hostName String
- Host name for Connector.
- id String
- OCID of MySQL Database Connector.
- isTest BooleanConnection Param 
- macsAgent StringId 
- Agent Id of the MACS agent.
- name String
- External MySQL Database Connector Name.
- networkProtocol String
- Network Protocol.
- port Integer
- Connector port.
- sourceDatabase String
- Name of MySQL Database.
- sourceDatabase StringType 
- Type of MySQL Database.
- sslSecret StringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- sslSecret StringName 
- Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state String
- Indicates lifecycle state of the resource.
- timeConnection StringStatus Updated 
- Time when connection status was last updated.
- timeCreated String
- Connector creation time.
- timeUpdated String
- Connector update time.
- associatedServices string
- Oracle Cloud Infrastructure Services associated with this connector.
- checkConnection numberStatus Trigger 
- compartmentId string
- OCID of compartment for the External MySQL connector.
- connectionStatus string
- Connection Status
- connectorDetails GetExternal My Sql Database Connector Connector Detail[] 
- connectorType string
- Connector Type.
- credentialType string
- Credential type used to connect to database.
- externalDatabase stringId 
- OCID of MySQL Database resource
- externalMy stringSql Database Connector Id 
- hostName string
- Host name for Connector.
- id string
- OCID of MySQL Database Connector.
- isTest booleanConnection Param 
- macsAgent stringId 
- Agent Id of the MACS agent.
- name string
- External MySQL Database Connector Name.
- networkProtocol string
- Network Protocol.
- port number
- Connector port.
- sourceDatabase string
- Name of MySQL Database.
- sourceDatabase stringType 
- Type of MySQL Database.
- sslSecret stringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- sslSecret stringName 
- Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state string
- Indicates lifecycle state of the resource.
- timeConnection stringStatus Updated 
- Time when connection status was last updated.
- timeCreated string
- Connector creation time.
- timeUpdated 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.
- associatedServices String
- Oracle Cloud Infrastructure Services associated with this connector.
- checkConnection NumberStatus Trigger 
- compartmentId String
- OCID of compartment for the External MySQL connector.
- connectionStatus String
- Connection Status
- connectorDetails List<Property Map>
- connectorType String
- Connector Type.
- credentialType String
- Credential type used to connect to database.
- externalDatabase StringId 
- OCID of MySQL Database resource
- externalMy StringSql Database Connector Id 
- hostName String
- Host name for Connector.
- id String
- OCID of MySQL Database Connector.
- isTest BooleanConnection Param 
- macsAgent StringId 
- Agent Id of the MACS agent.
- name String
- External MySQL Database Connector Name.
- networkProtocol String
- Network Protocol.
- port Number
- Connector port.
- sourceDatabase String
- Name of MySQL Database.
- sourceDatabase StringType 
- Type of MySQL Database.
- sslSecret StringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- sslSecret StringName 
- Name of the SSL secret, if TCPS with SSL is used to connect to database.
- state String
- Indicates lifecycle state of the resource.
- timeConnection StringStatus Updated 
- Time when connection status was last updated.
- timeCreated String
- Connector creation time.
- timeUpdated String
- Connector update time.
Supporting Types
GetExternalMySqlDatabaseConnectorConnectorDetail       
- CredentialType string
- Credential type used to connect to database.
- DisplayName string
- ExternalDatabase stringId 
- OCID of MySQL Database resource
- HostName string
- Host name for Connector.
- MacsAgent stringId 
- Agent Id of the MACS agent.
- NetworkProtocol string
- Network Protocol.
- Port int
- Connector port.
- SslSecret stringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- CredentialType string
- Credential type used to connect to database.
- DisplayName string
- ExternalDatabase stringId 
- OCID of MySQL Database resource
- HostName string
- Host name for Connector.
- MacsAgent stringId 
- Agent Id of the MACS agent.
- NetworkProtocol string
- Network Protocol.
- Port int
- Connector port.
- SslSecret stringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- credentialType String
- Credential type used to connect to database.
- displayName String
- externalDatabase StringId 
- OCID of MySQL Database resource
- hostName String
- Host name for Connector.
- macsAgent StringId 
- Agent Id of the MACS agent.
- networkProtocol String
- Network Protocol.
- port Integer
- Connector port.
- sslSecret StringId 
- OCID of the SSL secret, if TCPS with SSL is used to connect to database.
- credentialType string
- Credential type used to connect to database.
- displayName string
- externalDatabase stringId 
- OCID of MySQL Database resource
- hostName string
- Host name for Connector.
- macsAgent stringId 
- Agent Id of the MACS agent.
- networkProtocol string
- Network Protocol.
- port number
- Connector port.
- sslSecret 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.
- credentialType String
- Credential type used to connect to database.
- displayName String
- externalDatabase StringId 
- OCID of MySQL Database resource
- hostName String
- Host name for Connector.
- macsAgent StringId 
- Agent Id of the MACS agent.
- networkProtocol String
- Network Protocol.
- port Number
- Connector port.
- sslSecret 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.