Exemplo n.º 1
0
 public Task <TResponse> AllocationExplainAsync <TResponse>(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync <TResponse>(POST, "_cluster/allocation/explain", ctx, body, RequestParams(requestParameters));
Exemplo n.º 2
0
 ///<summary>POST on /_cluster/allocation/explain <para>https://opensearch.org/docs/latest/opensearch/rest-api/cluster-allocation/</para></summary>
 ///<param name = "body">The index, shard, and primary flag to explain. Empty means &#x27;explain the first unassigned shard&#x27;</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse AllocationExplain <TResponse>(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null)
     where TResponse : class, IOpenSearchResponse, new() => DoRequest <TResponse>(POST, "_cluster/allocation/explain", body, RequestParams(requestParameters));