ConnectionDetails¶
- class oci.stack_monitoring.models.ConnectionDetails(**kwargs)¶
Bases:
objectConnection details for the database.
Attributes:
A constant which can be used with the protocol property of a ConnectionDetails.
A constant which can be used with the protocol property of a ConnectionDetails.
Gets the connector_id of this ConnectionDetails.
Gets the db_id of this ConnectionDetails.
Gets the db_unique_name of this ConnectionDetails.
[Required] Gets the port of this ConnectionDetails.
[Required] Gets the protocol of this ConnectionDetails.
[Required] Gets the service_name of this ConnectionDetails.
Gets the ssl_secret_id of this ConnectionDetails.
Methods:
__init__(**kwargs)Initializes a new ConnectionDetails object with values from keyword arguments.
- PROTOCOL_TCP = 'TCP'¶
A constant which can be used with the protocol property of a ConnectionDetails. This constant has a value of “TCP”
- PROTOCOL_TCPS = 'TCPS'¶
A constant which can be used with the protocol property of a ConnectionDetails. This constant has a value of “TCPS”
- __init__(**kwargs)¶
Initializes a new ConnectionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
protocol (str) – The value to assign to the protocol property of this ConnectionDetails. Allowed values for this property are: “TCP”, “TCPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
port (int) – The value to assign to the port property of this ConnectionDetails.
connector_id (str) – The value to assign to the connector_id property of this ConnectionDetails.
service_name (str) – The value to assign to the service_name property of this ConnectionDetails.
db_unique_name (str) – The value to assign to the db_unique_name property of this ConnectionDetails.
db_id (str) – The value to assign to the db_id property of this ConnectionDetails.
ssl_secret_id (str) – The value to assign to the ssl_secret_id property of this ConnectionDetails.
- property connector_id¶
Gets the connector_id of this ConnectionDetails. Database connector Identifier `OCID`__.
- Returns
The connector_id of this ConnectionDetails.
- Return type
str
- property db_id¶
Gets the db_id of this ConnectionDetails. dbId of the database.
- Returns
The db_id of this ConnectionDetails.
- Return type
str
- property db_unique_name¶
Gets the db_unique_name of this ConnectionDetails. UniqueName used for database connection requests.
- Returns
The db_unique_name of this ConnectionDetails.
- Return type
str
- property port¶
[Required] Gets the port of this ConnectionDetails. Listener Port number used for connection requests.
- Returns
The port of this ConnectionDetails.
- Return type
int
- property protocol¶
[Required] Gets the protocol of this ConnectionDetails. Protocol used in DB connection string when connecting to external database service.
Allowed values for this property are: “TCP”, “TCPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The protocol of this ConnectionDetails.
- Return type
str
- property service_name¶
[Required] Gets the service_name of this ConnectionDetails. Service name used for connection requests.
- Returns
The service_name of this ConnectionDetails.
- Return type
str
- property ssl_secret_id¶
Gets the ssl_secret_id of this ConnectionDetails. SSL Secret Identifier for TCPS connector in OCI Vault`OCID`__.
- Returns
The ssl_secret_id of this ConnectionDetails.
- Return type
str