Data source elastic search test and save

how to configure the Elastic search data source credentials(username and password) using HTTP API through python code.

I am not able to understand your post.