Unable to pass Azure snapshot repository Setting "client" in java API

Hello :slight_smile:

I want to register an Azure repository for Elasticsearch snapshot restoration, from a client other than default. It mentions in the documentation that I should set the client in repository settings. and it works like this indeed

PUT _snapshot/my_old_repo { "type": "azure", "settings": { "client": "old" } }

But I am not able to do it via the Java Api. I get the error : Unknown field 'client' for type 'co.elastic.clients.elasticsearch.snapshot.RepositorySettings$Builder'

Could you please let me know if there is a way to do it in Java?
Although I have used the underlying org.elasticsearch.client.RestClient to send a PUT request. But I prefer to use the co.elastic.clients.elasticsearch.ElasticsearchClient

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.