Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DatabaseManagement.getExternalMySqlDatabaseConnectors
Explore with Pulumi AI
This data source provides the list of External My Sql Database Connectors in Oracle Cloud Infrastructure Database Management service.
Gets the list of External MySQL Database connectors.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalMySqlDatabaseConnectors = oci.DatabaseManagement.getExternalMySqlDatabaseConnectors({
    compartmentId: compartmentId,
    name: externalMySqlDatabaseConnectorName,
});
import pulumi
import pulumi_oci as oci
test_external_my_sql_database_connectors = oci.DatabaseManagement.get_external_my_sql_database_connectors(compartment_id=compartment_id,
    name=external_my_sql_database_connector_name)
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.GetExternalMySqlDatabaseConnectors(ctx, &databasemanagement.GetExternalMySqlDatabaseConnectorsArgs{
			CompartmentId: compartmentId,
			Name:          pulumi.StringRef(externalMySqlDatabaseConnectorName),
		}, 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 testExternalMySqlDatabaseConnectors = Oci.DatabaseManagement.GetExternalMySqlDatabaseConnectors.Invoke(new()
    {
        CompartmentId = compartmentId,
        Name = externalMySqlDatabaseConnectorName,
    });
});
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.GetExternalMySqlDatabaseConnectorsArgs;
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 testExternalMySqlDatabaseConnectors = DatabaseManagementFunctions.getExternalMySqlDatabaseConnectors(GetExternalMySqlDatabaseConnectorsArgs.builder()
            .compartmentId(compartmentId)
            .name(externalMySqlDatabaseConnectorName)
            .build());
    }
}
variables:
  testExternalMySqlDatabaseConnectors:
    fn::invoke:
      function: oci:DatabaseManagement:getExternalMySqlDatabaseConnectors
      arguments:
        compartmentId: ${compartmentId}
        name: ${externalMySqlDatabaseConnectorName}
Using getExternalMySqlDatabaseConnectors
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 getExternalMySqlDatabaseConnectors(args: GetExternalMySqlDatabaseConnectorsArgs, opts?: InvokeOptions): Promise<GetExternalMySqlDatabaseConnectorsResult>
function getExternalMySqlDatabaseConnectorsOutput(args: GetExternalMySqlDatabaseConnectorsOutputArgs, opts?: InvokeOptions): Output<GetExternalMySqlDatabaseConnectorsResult>def get_external_my_sql_database_connectors(compartment_id: Optional[str] = None,
                                            filters: Optional[Sequence[GetExternalMySqlDatabaseConnectorsFilter]] = None,
                                            name: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetExternalMySqlDatabaseConnectorsResult
def get_external_my_sql_database_connectors_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetExternalMySqlDatabaseConnectorsFilterArgs]]]] = None,
                                            name: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetExternalMySqlDatabaseConnectorsResult]func GetExternalMySqlDatabaseConnectors(ctx *Context, args *GetExternalMySqlDatabaseConnectorsArgs, opts ...InvokeOption) (*GetExternalMySqlDatabaseConnectorsResult, error)
func GetExternalMySqlDatabaseConnectorsOutput(ctx *Context, args *GetExternalMySqlDatabaseConnectorsOutputArgs, opts ...InvokeOption) GetExternalMySqlDatabaseConnectorsResultOutput> Note: This function is named GetExternalMySqlDatabaseConnectors in the Go SDK.
public static class GetExternalMySqlDatabaseConnectors 
{
    public static Task<GetExternalMySqlDatabaseConnectorsResult> InvokeAsync(GetExternalMySqlDatabaseConnectorsArgs args, InvokeOptions? opts = null)
    public static Output<GetExternalMySqlDatabaseConnectorsResult> Invoke(GetExternalMySqlDatabaseConnectorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetExternalMySqlDatabaseConnectorsResult> getExternalMySqlDatabaseConnectors(GetExternalMySqlDatabaseConnectorsArgs args, InvokeOptions options)
public static Output<GetExternalMySqlDatabaseConnectorsResult> getExternalMySqlDatabaseConnectors(GetExternalMySqlDatabaseConnectorsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DatabaseManagement/getExternalMySqlDatabaseConnectors:getExternalMySqlDatabaseConnectors
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- Filters
List<GetExternal My Sql Database Connectors Filter> 
- Name string
- The parameter to filter by MySQL Database System type.
- CompartmentId string
- The OCID of the compartment.
- Filters
[]GetExternal My Sql Database Connectors Filter 
- Name string
- The parameter to filter by MySQL Database System type.
- compartmentId String
- The OCID of the compartment.
- filters
List<GetExternal My Sql Database Connectors Filter> 
- name String
- The parameter to filter by MySQL Database System type.
- compartmentId string
- The OCID of the compartment.
- filters
GetExternal My Sql Database Connectors Filter[] 
- name string
- The parameter to filter by MySQL Database System type.
- compartment_id str
- The OCID of the compartment.
- filters
Sequence[GetExternal My Sql Database Connectors Filter] 
- name str
- The parameter to filter by MySQL Database System type.
- compartmentId String
- The OCID of the compartment.
- filters List<Property Map>
- name String
- The parameter to filter by MySQL Database System type.
getExternalMySqlDatabaseConnectors Result
The following output properties are available:
- CompartmentId string
- OCID of compartment for the External MySQL connector.
- Id string
- The provider-assigned unique ID for this managed resource.
- MySql List<GetConnector Collections External My Sql Database Connectors My Sql Connector Collection> 
- The list of my_sql_connector_collection.
- Filters
List<GetExternal My Sql Database Connectors Filter> 
- Name string
- External MySQL Database Connector Name.
- CompartmentId string
- OCID of compartment for the External MySQL connector.
- Id string
- The provider-assigned unique ID for this managed resource.
- MySql []GetConnector Collections External My Sql Database Connectors My Sql Connector Collection 
- The list of my_sql_connector_collection.
- Filters
[]GetExternal My Sql Database Connectors Filter 
- Name string
- External MySQL Database Connector Name.
- compartmentId String
- OCID of compartment for the External MySQL connector.
- id String
- The provider-assigned unique ID for this managed resource.
- mySql List<GetConnector Collections External My Sql Database Connectors My Sql Connector Collection> 
- The list of my_sql_connector_collection.
- filters
List<GetExternal My Sql Database Connectors Filter> 
- name String
- External MySQL Database Connector Name.
- compartmentId string
- OCID of compartment for the External MySQL connector.
- id string
- The provider-assigned unique ID for this managed resource.
- mySql GetConnector Collections External My Sql Database Connectors My Sql Connector Collection[] 
- The list of my_sql_connector_collection.
- filters
GetExternal My Sql Database Connectors Filter[] 
- name string
- External MySQL Database Connector Name.
- compartment_id str
- OCID of compartment for the External MySQL connector.
- id str
- The provider-assigned unique ID for this managed resource.
- my_sql_ Sequence[Getconnector_ collections External My Sql Database Connectors My Sql Connector Collection] 
- The list of my_sql_connector_collection.
- filters
Sequence[GetExternal My Sql Database Connectors Filter] 
- name str
- External MySQL Database Connector Name.
- compartmentId String
- OCID of compartment for the External MySQL connector.
- id String
- The provider-assigned unique ID for this managed resource.
- mySql List<Property Map>Connector Collections 
- The list of my_sql_connector_collection.
- filters List<Property Map>
- name String
- External MySQL Database Connector Name.
Supporting Types
GetExternalMySqlDatabaseConnectorsFilter      
GetExternalMySqlDatabaseConnectorsMySqlConnectorCollection         
GetExternalMySqlDatabaseConnectorsMySqlConnectorCollectionItem          
- AssociatedServices string
- Oracle Cloud Infrastructure Services associated with this connector.
- CheckConnection intStatus Trigger 
- CompartmentId string
- The OCID of the compartment.
- ConnectionStatus string
- Connection Status
- ConnectorDetails List<GetExternal My Sql Database Connectors My Sql Connector Collection Item Connector Detail> 
- ConnectorType string
- Connector Type.
- CredentialType string
- Credential type used to connect to database.
- ExternalDatabase stringId 
- OCID of MySQL Database resource
- 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
- The parameter to filter by MySQL Database System type.
- 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
- The OCID of the compartment.
- ConnectionStatus string
- Connection Status
- ConnectorDetails []GetExternal My Sql Database Connectors My Sql Connector Collection Item Connector Detail 
- ConnectorType string
- Connector Type.
- CredentialType string
- Credential type used to connect to database.
- ExternalDatabase stringId 
- OCID of MySQL Database resource
- 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
- The parameter to filter by MySQL Database System type.
- 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
- The OCID of the compartment.
- connectionStatus String
- Connection Status
- connectorDetails List<GetExternal My Sql Database Connectors My Sql Connector Collection Item Connector Detail> 
- connectorType String
- Connector Type.
- credentialType String
- Credential type used to connect to database.
- externalDatabase StringId 
- OCID of MySQL Database resource
- 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
- The parameter to filter by MySQL Database System type.
- 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
- The OCID of the compartment.
- connectionStatus string
- Connection Status
- connectorDetails GetExternal My Sql Database Connectors My Sql Connector Collection Item Connector Detail[] 
- connectorType string
- Connector Type.
- credentialType string
- Credential type used to connect to database.
- externalDatabase stringId 
- OCID of MySQL Database resource
- 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
- The parameter to filter by MySQL Database System type.
- 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
- The OCID of the compartment.
- connection_status str
- Connection Status
- connector_details Sequence[GetExternal My Sql Database Connectors My Sql Connector Collection Item 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
- 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
- The parameter to filter by MySQL Database System type.
- 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
- The OCID of the compartment.
- 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
- 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
- The parameter to filter by MySQL Database System type.
- 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.
GetExternalMySqlDatabaseConnectorsMySqlConnectorCollectionItemConnectorDetail            
- 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.