DatabaseCredentials

class oci.database_management.models.DatabaseCredentials(**kwargs)

Bases: object

The database credentials used to perform management activity. Provide one of the following attribute set. (userName, password, role) OR (userName, secretId, role) OR (namedCredentialId)

Attributes

ROLE_NORMAL A constant which can be used with the role property of a DatabaseCredentials.
ROLE_SYSDBA A constant which can be used with the role property of a DatabaseCredentials.
password Gets the password of this DatabaseCredentials.
role Gets the role of this DatabaseCredentials.
secret_id Gets the secret_id of this DatabaseCredentials.
user_name Gets the user_name of this DatabaseCredentials.

Methods

__init__(**kwargs) Initializes a new DatabaseCredentials object with values from keyword arguments.
ROLE_NORMAL = 'NORMAL'

A constant which can be used with the role property of a DatabaseCredentials. This constant has a value of “NORMAL”

ROLE_SYSDBA = 'SYSDBA'

A constant which can be used with the role property of a DatabaseCredentials. This constant has a value of “SYSDBA”

__init__(**kwargs)

Initializes a new DatabaseCredentials object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • user_name (str) – The value to assign to the user_name property of this DatabaseCredentials.
  • password (str) – The value to assign to the password property of this DatabaseCredentials.
  • secret_id (str) – The value to assign to the secret_id property of this DatabaseCredentials.
  • role (str) – The value to assign to the role property of this DatabaseCredentials. Allowed values for this property are: “NORMAL”, “SYSDBA”
password

Gets the password of this DatabaseCredentials. The password for the database user name.

Returns:The password of this DatabaseCredentials.
Return type:str
role

Gets the role of this DatabaseCredentials. The role of the database user. Indicates whether the database user is a normal user or sysdba.

Allowed values for this property are: “NORMAL”, “SYSDBA”

Returns:The role of this DatabaseCredentials.
Return type:str
secret_id

Gets the secret_id of this DatabaseCredentials. The OCID of the secret containing the user password.

Returns:The secret_id of this DatabaseCredentials.
Return type:str
user_name

Gets the user_name of this DatabaseCredentials. The database user name used to perform management activity.

Returns:The user_name of this DatabaseCredentials.
Return type:str