List name and input from table main_credential. In this example I've done bare minimum where the database name is default awx and I've not set any password for authentication.
apt-kali::~/awx‹24.4.0*›»dockerexec-ittools_postgres_1psqlawx-c"SELECT name,inputs FROM main_credential;"name|inputs-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------DemoCredential| {"username":"admin"}AnsibleGalaxy| {"url":"https://galaxy.ansible.com/"}ssh_localhost| {"password":"$encrypted$UTF8$AESCBC$Z0FBQUFBQm1WeER4Y3FZbklUUUtIbEpFWGNaRk5IbDNvb2tEOWhrd01YU0NQZ0MyNm5QTkxWc0paVFJjWG82V29xSHl3SWpLLWQtQzZqcDZvcXdnUjQ3YjdiVlY0Q1FqTXhITlAxdnAtMkZ6a1h3S3BWY2VyNTA9","username":"root","become_method":"","become_username":""}(3rows)
Decrypt password / secret / ssh_key_data with a simple one-liner: