示例#1
0
 ///<summary>GET on /_nodes/{node_id}/shutdown <para>https://www.elastic.co/guide/en/elasticsearch/reference/current</para></summary>
 ///<param name = "nodeId">Which node for which to retrieve the shutdown status</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 ///<remarks>Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
 public TResponse GetNode <TResponse>(string nodeId, GetNodeRequestParameters requestParameters = null)
     where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/shutdown"), null, RequestParams(requestParameters));
示例#2
0
 public Task <TResponse> GetNodeAsync <TResponse>(string nodeId, GetNodeRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(GET, Url($"_nodes/{nodeId:nodeId}/shutdown"), ctx, null, RequestParams(requestParameters));
示例#3
0
 ///<summary>GET on /_nodes/shutdown <para>https://www.elastic.co/guide/en/elasticsearch/reference/current</para></summary>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 ///<remarks>Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.</remarks>
 public TResponse GetNode <TResponse>(GetNodeRequestParameters requestParameters = null)
     where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(GET, "_nodes/shutdown", null, RequestParams(requestParameters));