CreateMySqlDatabaseConnectorDetails¶
- class oci.database_management.models.CreateMySqlDatabaseConnectorDetails(**kwargs)¶
Bases:
objectCreate Details of external database connector. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026.
Attributes:
A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails.
A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails.
A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails.
A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails.
A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails.
A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails.
[Required] Gets the credential_type of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the display_name of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the external_database_id of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the host_name of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the macs_agent_id of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the network_protocol of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the port of this CreateMySqlDatabaseConnectorDetails.
[Required] Gets the ssl_secret_id of this CreateMySqlDatabaseConnectorDetails.
Methods:
__init__(**kwargs)Initializes a new CreateMySqlDatabaseConnectorDetails object with values from keyword arguments.
- CREDENTIAL_TYPE_MYSQL_EXTERNAL_NON_SSL_CREDENTIALS = 'MYSQL_EXTERNAL_NON_SSL_CREDENTIALS'¶
A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “MYSQL_EXTERNAL_NON_SSL_CREDENTIALS”
- CREDENTIAL_TYPE_MYSQL_EXTERNAL_SOCKET_CREDENTIALS = 'MYSQL_EXTERNAL_SOCKET_CREDENTIALS'¶
A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “MYSQL_EXTERNAL_SOCKET_CREDENTIALS”
- CREDENTIAL_TYPE_MYSQL_EXTERNAL_SSL_CREDENTIALS = 'MYSQL_EXTERNAL_SSL_CREDENTIALS'¶
A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “MYSQL_EXTERNAL_SSL_CREDENTIALS”
- NETWORK_PROTOCOL_SOCKETS = 'SOCKETS'¶
A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “SOCKETS”
- NETWORK_PROTOCOL_TCP = 'TCP'¶
A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “TCP”
- NETWORK_PROTOCOL_TCPS = 'TCPS'¶
A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “TCPS”
- __init__(**kwargs)¶
Initializes a new CreateMySqlDatabaseConnectorDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this CreateMySqlDatabaseConnectorDetails.
macs_agent_id (str) – The value to assign to the macs_agent_id property of this CreateMySqlDatabaseConnectorDetails.
host_name (str) – The value to assign to the host_name property of this CreateMySqlDatabaseConnectorDetails.
port (int) – The value to assign to the port property of this CreateMySqlDatabaseConnectorDetails.
network_protocol (str) – The value to assign to the network_protocol property of this CreateMySqlDatabaseConnectorDetails. Allowed values for this property are: “TCP”, “TCPS”, “SOCKETS”
external_database_id (str) – The value to assign to the external_database_id property of this CreateMySqlDatabaseConnectorDetails.
credential_type (str) – The value to assign to the credential_type property of this CreateMySqlDatabaseConnectorDetails. Allowed values for this property are: “MYSQL_EXTERNAL_NON_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SOCKET_CREDENTIALS”
ssl_secret_id (str) – The value to assign to the ssl_secret_id property of this CreateMySqlDatabaseConnectorDetails.
- property credential_type¶
[Required] Gets the credential_type of this CreateMySqlDatabaseConnectorDetails. Type of the credential.
Allowed values for this property are: “MYSQL_EXTERNAL_NON_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SOCKET_CREDENTIALS”
- Returns
The credential_type of this CreateMySqlDatabaseConnectorDetails.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this CreateMySqlDatabaseConnectorDetails. External MySQL Database Connector Name.
- Returns
The display_name of this CreateMySqlDatabaseConnectorDetails.
- Return type
str
- property external_database_id¶
[Required] Gets the external_database_id of this CreateMySqlDatabaseConnectorDetails. OCID of MySQL Database resource.
- Returns
The external_database_id of this CreateMySqlDatabaseConnectorDetails.
- Return type
str
- property host_name¶
[Required] Gets the host_name of this CreateMySqlDatabaseConnectorDetails. Host name for Connector.
- Returns
The host_name of this CreateMySqlDatabaseConnectorDetails.
- Return type
str
- property macs_agent_id¶
[Required] Gets the macs_agent_id of this CreateMySqlDatabaseConnectorDetails. Agent Id of the MACS agent.
- Returns
The macs_agent_id of this CreateMySqlDatabaseConnectorDetails.
- Return type
str
- property network_protocol¶
[Required] Gets the network_protocol of this CreateMySqlDatabaseConnectorDetails. Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket.
Allowed values for this property are: “TCP”, “TCPS”, “SOCKETS”
- Returns
The network_protocol of this CreateMySqlDatabaseConnectorDetails.
- Return type
str
- property port¶
[Required] Gets the port of this CreateMySqlDatabaseConnectorDetails. Port number to connect to External MySQL Database.
- Returns
The port of this CreateMySqlDatabaseConnectorDetails.
- Return type
int
- property ssl_secret_id¶
[Required] Gets the ssl_secret_id of this CreateMySqlDatabaseConnectorDetails. If using existing SSL secret to connect, OCID for the secret resource.
- Returns
The ssl_secret_id of this CreateMySqlDatabaseConnectorDetails.
- Return type
str