Vault agent template looping through static roles

Is there a way to loop through list of static role secrets similar to consul “range tree”?

I know it’s possible to read a specific static-cred using below format but looking for a way to pull all static-cred using a loop.

{{ with secret “database/static-creds/xxx” }}
{{ end }}

Appreciate your help, if any one have a workaround or a solution to loop through static-cred.