Data Source: oci_database_management_managed_database_preferred_credential
This data source provides details about a specific Managed Database Preferred Credential resource in Oracle Cloud Infrastructure Database Management service.
Gets the preferred credential details for a Managed Database based on credentialName.
Example Usage
data "oci_database_management_managed_database_preferred_credential" "test_managed_database_preferred_credential" {
#Required
credential_name = var.managed_database_preferred_credential_credential_name
managed_database_id = oci_database_management_managed_database.test_managed_database.id
}
Argument Reference
The following arguments are supported:
credential_name
- (Required) The name of the preferred credential.managed_database_id
- (Required) The OCID of the Managed Database.
Attributes Reference
The following attributes are exported:
credential_name
- The name of the preferred credential.is_accessible
- Indicates whether the preferred credential is accessible.named_credential_id
- The OCID of the Named Credential that contains the database user password metadata.password_secret_id
- The OCID of the Vault service secret that contains the database user password.role
- The role of the database user.status
- The status of the preferred credential.type
- The type of preferred credential. Only ‘BASIC’ is supported currently.user_name
- The user name used to connect to the database.