Postgres datasource configure ssl

Hi community,
I want to connect to my postgres cluster which has tls enabled. How can I connect to my postgres cluster? My postgres datasource looks something like this in json format-

{
“access”: “proxy”,
“name”: “PostgreSQL”,
“type”: “postgres”,
“typeLogoUrl”: “public/app/plugins/datasource/postgres/img/postgresql_logo.svg”,
“url”: “pgcluster:5432”,
“user”: “test-user”,
“database”: “test”,
“secureJsonData”: {
“password”: “passwd”
},
“editable”: false,
“jsonData”: {
“postgresVersion”: 1200,
“sslmode”: “verify-full”
}
}

Am I missing something? I am getting errors while connecting to db.