2020-05-15 09:36:47 -05:00
|
|
|
# Licensed to Elasticsearch B.V under one or more agreements.
|
|
|
|
|
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
|
|
|
|
# See the LICENSE file in the project root for more information
|
|
|
|
|
|
|
|
|
|
from .utils import NamespacedClient, query_params
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RemoteClient(NamespacedClient):
|
|
|
|
|
@query_params()
|
2020-05-20 12:34:29 -05:00
|
|
|
async def info(self, params=None, headers=None):
|
2020-05-15 09:36:47 -05:00
|
|
|
"""
|
2020-05-20 12:34:29 -05:00
|
|
|
`<http://www.elastic.co/guide/en/elasticsearch/reference/7.x/cluster-remote-info.html>`_
|
2020-05-15 09:36:47 -05:00
|
|
|
"""
|
2020-05-20 12:34:29 -05:00
|
|
|
return await self.transport.perform_request(
|
2020-05-15 09:36:47 -05:00
|
|
|
"GET", "/_remote/info", params=params, headers=headers
|
|
|
|
|
)
|