Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 36 additions & 12 deletions docs/reference/api-reference.md

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/api/api/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ export default class Cluster {
'cluster.allocation_explain': {
path: [],
body: [
'current_node',
'index',
'shard',
'primary',
'shard'
'current_node'
],
query: [
'index',
'shard',
'primary',
'current_node',
'include_disk_info',
'include_yes_decisions',
'master_timeout'
Expand Down Expand Up @@ -222,7 +226,7 @@ export default class Cluster {
}

/**
* Explain the shard allocations. Get explanations for shard allocations in the cluster. For unassigned shards, it provides an explanation for why the shard is unassigned. For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API.
* Explain the shard allocations. Get explanations for shard allocations in the cluster. This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time. For unassigned shards, it provides an explanation for why the shard is unassigned. For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API.
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-allocation-explain | Elasticsearch API documentation}
*/
async allocationExplain (this: That, params?: T.ClusterAllocationExplainRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterAllocationExplainResponse>
Expand Down
3 changes: 0 additions & 3 deletions src/api/api/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ const acceptedParams: Record<string, { path: string[], body: string[], query: st
'document'
],
query: [
'if_primary_term',
'if_seq_no',
'include_source_on_error',
'op_type',
'pipeline',
'refresh',
'require_alias',
Expand Down
1 change: 1 addition & 0 deletions src/api/api/eql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default class Eql {
'allow_partial_search_results',
'allow_partial_sequence_results',
'expand_wildcards',
'ccs_minimize_roundtrips',
'ignore_unavailable',
'keep_alive',
'keep_on_completion',
Expand Down
5 changes: 4 additions & 1 deletion src/api/api/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,10 @@ export default class Indices {
body: [],
query: [
'active_only',
'detailed'
'detailed',
'allow_no_indices',
'expand_wildcards',
'ignore_unavailable'
]
},
'indices.refresh': {
Expand Down
76 changes: 57 additions & 19 deletions src/api/api/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ export default class Inference {
body: [
'inference_config'
],
query: []
query: [
'timeout'
]
},
'inference.put_alibabacloud': {
path: [
Expand All @@ -113,7 +115,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_amazonbedrock': {
path: [
Expand All @@ -126,7 +130,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_amazonsagemaker': {
path: [
Expand All @@ -147,7 +153,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_azureaistudio': {
path: [
Expand All @@ -160,7 +168,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_azureopenai': {
path: [
Expand All @@ -173,7 +183,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_cohere': {
path: [
Expand All @@ -186,7 +198,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_deepseek': {
path: [
Expand All @@ -198,7 +212,9 @@ export default class Inference {
'service',
'service_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_elasticsearch': {
path: [
Expand All @@ -211,7 +227,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_elser': {
path: [
Expand All @@ -223,7 +241,9 @@ export default class Inference {
'service',
'service_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_googleaistudio': {
path: [
Expand All @@ -235,7 +255,9 @@ export default class Inference {
'service',
'service_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_googlevertexai': {
path: [
Expand All @@ -248,7 +270,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_hugging_face': {
path: [
Expand All @@ -261,7 +285,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_jinaai': {
path: [
Expand All @@ -274,7 +300,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_mistral': {
path: [
Expand All @@ -286,7 +314,9 @@ export default class Inference {
'service',
'service_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_openai': {
path: [
Expand All @@ -299,7 +329,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_voyageai': {
path: [
Expand All @@ -312,7 +344,9 @@ export default class Inference {
'service_settings',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.put_watsonx': {
path: [
Expand All @@ -323,7 +357,9 @@ export default class Inference {
'service',
'service_settings'
],
query: []
query: [
'timeout'
]
},
'inference.rerank': {
path: [
Expand Down Expand Up @@ -358,7 +394,9 @@ export default class Inference {
'input',
'task_settings'
],
query: []
query: [
'timeout'
]
},
'inference.text_embedding': {
path: [
Expand Down
Loading
Loading