@opensearch-project/opensearch 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/OpenSearchApi.d.ts +8 -0
- package/api/OpenSearchApi.js +2 -0
- package/api/_core/exists.d.ts +1 -3
- package/api/_core/existsSource.d.ts +1 -3
- package/api/_core/ping.d.ts +1 -3
- package/api/_types/_common.aggregations.d.ts +143 -71
- package/api/_types/_common.d.ts +2 -1
- package/api/_types/_common.mapping.d.ts +1 -0
- package/api/_types/_common.query_dsl.d.ts +11 -2
- package/api/_types/_core.explain.d.ts +2 -2
- package/api/_types/cluster.stats.d.ts +1 -0
- package/api/_types/flow_framework.common.d.ts +12 -16
- package/api/_types/index.d.ts +2 -0
- package/api/_types/indices._common.d.ts +1 -0
- package/api/_types/insights._common.d.ts +4 -0
- package/api/_types/knn._common.d.ts +8 -7
- package/api/_types/ltr._common.d.ts +55 -0
- package/api/_types/nodes.info.d.ts +2 -2
- package/api/_types/nodes.stats.d.ts +22 -13
- package/api/_types/security._common.d.ts +5 -0
- package/api/_types/snapshot._common.d.ts +38 -38
- package/api/cluster/allocationExplain.js +1 -1
- package/api/cluster/deleteComponentTemplate.js +3 -3
- package/api/cluster/existsComponentTemplate.d.ts +1 -3
- package/api/cluster/existsComponentTemplate.js +2 -2
- package/api/cluster/getComponentTemplate.js +3 -3
- package/api/cluster/getSettings.js +4 -4
- package/api/cluster/health.js +4 -4
- package/api/cluster/pendingTasks.js +2 -2
- package/api/cluster/postVotingConfigExclusions.js +2 -2
- package/api/cluster/putComponentTemplate.js +4 -4
- package/api/cluster/putDecommissionAwareness.js +1 -1
- package/api/cluster/putSettings.js +4 -4
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/reroute.js +4 -4
- package/api/cluster/state.js +4 -4
- package/api/cluster/stats.js +2 -2
- package/api/flowFramework/delete.d.ts +2 -1
- package/api/index.d.ts +2 -0
- package/api/indices/exists.d.ts +1 -3
- package/api/indices/existsAlias.d.ts +1 -3
- package/api/indices/existsIndexTemplate.d.ts +1 -3
- package/api/indices/existsTemplate.d.ts +1 -3
- package/api/ingest/deletePipeline.js +4 -4
- package/api/ingest/getPipeline.js +3 -3
- package/api/ingest/processorGrok.js +2 -2
- package/api/ingest/putPipeline.js +5 -5
- package/api/ingest/simulate.js +3 -3
- package/api/ism/existsPolicy.d.ts +1 -3
- package/api/knn/searchModels.d.ts +4 -4
- package/api/ltr/_api.js +26 -0
- package/api/ltr/stats.d.ts +33 -0
- package/api/ltr/stats.js +51 -0
- package/api/replication/autofollowStats.js +1 -1
- package/api/replication/createReplicationRule.js +1 -1
- package/api/replication/followerStats.js +1 -1
- package/api/replication/leaderStats.js +1 -1
- package/api/replication/pause.js +2 -2
- package/api/replication/resume.js +1 -1
- package/api/replication/start.js +2 -2
- package/api/replication/status.js +2 -2
- package/api/replication/stop.js +2 -2
- package/api/replication/updateSettings.js +2 -2
- package/api/sm/createPolicy.js +1 -1
- package/api/sm/deletePolicy.js +1 -1
- package/api/sm/explainPolicy.js +1 -1
- package/api/sm/getPolicies.js +5 -5
- package/api/sm/getPolicy.js +1 -1
- package/api/sm/startPolicy.js +1 -1
- package/api/sm/stopPolicy.js +1 -1
- package/api/sm/updatePolicy.js +1 -1
- package/api/snapshot/cleanupRepository.js +3 -3
- package/api/snapshot/clone.js +6 -6
- package/api/snapshot/create.js +6 -6
- package/api/snapshot/createRepository.js +6 -6
- package/api/snapshot/delete.js +3 -3
- package/api/snapshot/deleteRepository.js +4 -4
- package/api/snapshot/get.js +5 -5
- package/api/snapshot/getRepository.js +4 -4
- package/api/snapshot/restore.js +5 -5
- package/api/snapshot/status.js +4 -4
- package/api/snapshot/verifyRepository.js +3 -3
- package/api/tasks/cancel.js +5 -5
- package/api/tasks/get.js +3 -3
- package/api/tasks/list.js +7 -7
- package/lib/pool/BaseConnectionPool.js +6 -0
- package/package.json +1 -1
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
19
|
export type FileCountSnapshotStats = {
|
|
20
|
-
file_count
|
|
21
|
-
size_in_bytes
|
|
20
|
+
file_count?: number;
|
|
21
|
+
size_in_bytes?: Common.ByteCount;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export type Repository = {
|
|
25
|
-
settings
|
|
26
|
-
type
|
|
25
|
+
settings?: RepositorySettings;
|
|
26
|
+
type?: string;
|
|
27
27
|
uuid?: Common.Uuid;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -31,18 +31,18 @@ export type RepositorySettings = {
|
|
|
31
31
|
chunk_size?: string;
|
|
32
32
|
compress?: Common.StringifiedBoolean;
|
|
33
33
|
concurrent_streams?: Common.StringifiedInteger;
|
|
34
|
-
location
|
|
34
|
+
location?: string;
|
|
35
35
|
read_only?: Common.StringifiedBoolean;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export type SnapshotIndexStats = {
|
|
39
|
-
shards
|
|
40
|
-
shards_stats
|
|
41
|
-
stats
|
|
39
|
+
shards?: Record<string, SnapshotShardsStatus>;
|
|
40
|
+
shards_stats?: SnapshotShardsStats;
|
|
41
|
+
stats?: SnapshotStats;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export type SnapshotInfo = {
|
|
45
|
-
data_streams
|
|
45
|
+
data_streams?: string[];
|
|
46
46
|
duration?: Common.Duration;
|
|
47
47
|
duration_in_millis?: Common.DurationValueUnitMillis;
|
|
48
48
|
end_time?: Common.DateTime;
|
|
@@ -55,46 +55,46 @@ export type SnapshotInfo = {
|
|
|
55
55
|
reason?: string;
|
|
56
56
|
remote_store_index_shallow_copy?: boolean;
|
|
57
57
|
shards?: Common.ShardStatistics;
|
|
58
|
-
snapshot
|
|
58
|
+
snapshot?: Common.Name;
|
|
59
59
|
start_time?: Common.DateTime;
|
|
60
60
|
start_time_in_millis?: Common.EpochTimeUnitMillis;
|
|
61
61
|
state?: string;
|
|
62
|
-
uuid
|
|
62
|
+
uuid?: Common.Uuid;
|
|
63
63
|
version?: Common.VersionString;
|
|
64
64
|
version_id?: Common.VersionNumber;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export type SnapshotShardFailure = {
|
|
68
|
-
index
|
|
68
|
+
index?: Common.IndexName;
|
|
69
69
|
node_id?: Common.Id;
|
|
70
|
-
reason
|
|
71
|
-
shard_id
|
|
72
|
-
status
|
|
70
|
+
reason?: string;
|
|
71
|
+
shard_id?: Common.Id;
|
|
72
|
+
status?: string;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export type SnapshotShardsStats = {
|
|
76
|
-
done
|
|
77
|
-
failed
|
|
78
|
-
finalizing
|
|
79
|
-
initializing
|
|
80
|
-
started
|
|
81
|
-
total
|
|
76
|
+
done?: number;
|
|
77
|
+
failed?: number;
|
|
78
|
+
finalizing?: number;
|
|
79
|
+
initializing?: number;
|
|
80
|
+
started?: number;
|
|
81
|
+
total?: number;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export type SnapshotShardsStatsStage = 'DONE' | 'FAILURE' | 'FINALIZE' | 'INIT' | 'STARTED'
|
|
85
85
|
|
|
86
86
|
export type SnapshotShardsStatsSummary = {
|
|
87
|
-
incremental
|
|
87
|
+
incremental?: SnapshotShardsStatsSummaryItem;
|
|
88
88
|
processed?: SnapshotShardsStatsSummaryItem;
|
|
89
|
-
start_time_in_millis
|
|
89
|
+
start_time_in_millis?: Common.EpochTimeUnitMillis;
|
|
90
90
|
time?: Common.Duration;
|
|
91
|
-
time_in_millis
|
|
92
|
-
total
|
|
91
|
+
time_in_millis?: Common.DurationValueUnitMillis;
|
|
92
|
+
total?: SnapshotShardsStatsSummaryItem;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export type SnapshotShardsStatsSummaryItem = {
|
|
96
|
-
file_count
|
|
97
|
-
size_in_bytes
|
|
96
|
+
file_count?: number;
|
|
97
|
+
size_in_bytes?: Common.ByteCount;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export type SnapshotShardsStatus = {
|
|
@@ -105,22 +105,22 @@ export type SnapshotShardsStatus = {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
export type SnapshotStats = {
|
|
108
|
-
incremental
|
|
108
|
+
incremental?: FileCountSnapshotStats;
|
|
109
109
|
processed?: FileCountSnapshotStats;
|
|
110
|
-
start_time_in_millis
|
|
110
|
+
start_time_in_millis?: Common.EpochTimeUnitMillis;
|
|
111
111
|
time?: Common.Duration;
|
|
112
|
-
time_in_millis
|
|
113
|
-
total
|
|
112
|
+
time_in_millis?: Common.DurationValueUnitMillis;
|
|
113
|
+
total?: FileCountSnapshotStats;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
export type SnapshotStatus = {
|
|
117
117
|
include_global_state?: boolean;
|
|
118
|
-
indices
|
|
119
|
-
repository
|
|
120
|
-
shards_stats
|
|
121
|
-
snapshot
|
|
122
|
-
state
|
|
123
|
-
stats
|
|
124
|
-
uuid
|
|
118
|
+
indices?: Record<string, SnapshotIndexStats>;
|
|
119
|
+
repository?: string;
|
|
120
|
+
shards_stats?: SnapshotShardsStats;
|
|
121
|
+
snapshot?: string;
|
|
122
|
+
state?: string;
|
|
123
|
+
stats?: SnapshotStats;
|
|
124
|
+
uuid?: Common.Uuid;
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -26,7 +26,7 @@ const { normalizeArguments } = require('../utils');
|
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {boolean} [params.include_disk_info=false] - When `true`, returns information about disk usage and shard sizes.
|
|
29
|
-
* @param {boolean} [params.include_yes_decisions=false] - When `true`, returns any `YES` decisions in the allocation explanation.
|
|
29
|
+
* @param {boolean} [params.include_yes_decisions=false] - When `true`, returns any `YES` decisions in the allocation explanation. `YES` decisions indicate when a particular shard allocation attempt was successful for the given node.
|
|
30
30
|
* @param {object} [params.body] - The index, shard, and primary flag for which to generate an explanation. Leave this empty to generate an explanation for the first unassigned shard.
|
|
31
31
|
*
|
|
32
32
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
30
|
-
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
30
|
+
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
31
31
|
* @param {string} params.name - The name of the component template to delete. Supports wildcard (*) expressions.
|
|
32
32
|
*
|
|
33
33
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -25,9 +25,7 @@ export interface Cluster_ExistsComponentTemplate_Request extends Global.Params {
|
|
|
25
25
|
name: Common.Name;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export
|
|
29
|
-
body: Cluster_ExistsComponentTemplate_ResponseBody;
|
|
30
|
-
}
|
|
28
|
+
export type Cluster_ExistsComponentTemplate_Response = boolean
|
|
31
29
|
|
|
32
30
|
export type Cluster_ExistsComponentTemplate_ResponseBody = Record<string, any>
|
|
33
31
|
|
|
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
29
|
* @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false, information is retrieved from the cluster manager node.
|
|
30
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
30
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
31
31
|
* @param {string} params.name - The name of the component template. Wildcard (*) expressions are supported.
|
|
32
32
|
*
|
|
33
33
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
-
* @param {boolean} [params.flat_settings=false] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
|
+
* @param {boolean} [params.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
|
30
30
|
* @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
|
|
31
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
31
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
32
32
|
* @param {string} [params.name] - The name of the component template to retrieve. Wildcard (`*`) expressions are supported.
|
|
33
33
|
*
|
|
34
34
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -25,11 +25,11 @@ const { normalizeArguments } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
-
* @param {boolean} [params.flat_settings=false] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
|
+
* @param {boolean} [params.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
|
30
30
|
* @param {boolean} [params.include_defaults=false] - When `true`, returns default cluster settings from the local node.
|
|
31
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
32
|
-
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
31
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
32
|
+
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
33
33
|
*
|
|
34
34
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
35
35
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/cluster/health.js
CHANGED
|
@@ -26,16 +26,16 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {string} [params.awareness_attribute] - The name of the awareness attribute for which to return the cluster health status (for example, `zone`). Applicable only if `level` is set to `awareness_attributes`.
|
|
29
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
30
30
|
* @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
|
31
31
|
* @param {string} [params.level] - Controls the amount of detail included in the cluster health response.
|
|
32
32
|
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
33
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
34
|
-
* @param {string} [params.timeout] -
|
|
33
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
34
|
+
* @param {string} [params.timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
35
35
|
* @param {string} [params.wait_for_active_shards] - Waits until the specified number of shards is active before returning a response. Use `all` for all shards.
|
|
36
36
|
* @param {string} [params.wait_for_events] - Waits until all currently queued events with the given priority are processed.
|
|
37
37
|
* @param {boolean} [params.wait_for_no_initializing_shards=false] - Whether to wait until there are no initializing shards in the cluster.
|
|
38
|
-
* @param {boolean} [params.wait_for_no_relocating_shards] - Whether to wait until there are no relocating shards in the cluster.
|
|
38
|
+
* @param {boolean} [params.wait_for_no_relocating_shards=false] - Whether to wait until there are no relocating shards in the cluster.
|
|
39
39
|
* @param {string} [params.wait_for_nodes] - Waits until the specified number of nodes (`N`) is available. Accepts `>=N`, `<=N`, `>N`, and `<N`. You can also use `ge(N)`, `le(N)`, `gt(N)`, and `lt(N)` notation.
|
|
40
40
|
* @param {string} [params.wait_for_status] - Waits until the cluster health reaches the specified status or better.
|
|
41
41
|
* @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
|
|
@@ -26,9 +26,9 @@ or new allocations.
|
|
|
26
26
|
* @memberOf API-Cluster
|
|
27
27
|
*
|
|
28
28
|
* @param {object} [params]
|
|
29
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
30
30
|
* @param {boolean} [params.local=false] - When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
|
|
31
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
31
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
32
32
|
*
|
|
33
33
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
34
34
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -25,8 +25,8 @@ const { normalizeArguments } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.node_ids] - A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specify `node_names`.
|
|
29
|
-
* @param {string} [params.node_names] - A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specify `node_ids`.
|
|
28
|
+
* @param {string} [params.node_ids] - A comma-separated list of node IDs to exclude from the voting configuration. When using this setting, you cannot also specify `node_names`. Either `node_ids` or `node_names` are required to receive a valid response.
|
|
29
|
+
* @param {string} [params.node_names] - A comma-separated list of node names to exclude from the voting configuration. When using this setting, you cannot also specify `node_ids`. Either `node_ids` or `node_names` are required to receive a valid response.
|
|
30
30
|
* @param {string} [params.timeout] - When adding a voting configuration exclusion, the API waits for the specified nodes to be excluded from the voting configuration before returning a response. If the timeout expires before the appropriate condition is satisfied, the request fails and returns an error.
|
|
31
31
|
*
|
|
32
32
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
29
|
* @param {boolean} [params.create=false] - When `true`, this request cannot replace or update existing component templates.
|
|
30
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
31
|
-
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
32
|
-
* @param {string} params.name - The name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings
|
|
30
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
31
|
+
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
32
|
+
* @param {string} params.name - The name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings`, `logs-settings`, `metrics-mappings`, `metrics-settings`, `synthetics-mapping`, and `synthetics-settings`. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template `version` to a higher value than the current version. If you want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the [Cluster Update Settings API](https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/).
|
|
33
33
|
* @param {object} params.body - The template definition.
|
|
34
34
|
*
|
|
35
35
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -26,7 +26,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
28
|
* @param {string} params.awareness_attribute_name - The name of the awareness attribute.
|
|
29
|
-
* @param {string} params.awareness_attribute_value - The value of the awareness attribute.
|
|
29
|
+
* @param {string} params.awareness_attribute_value - The value of the awareness attribute. For example, if you have shards allocated in two different zones, you can give each zone a value of `zone-a` or `zoneb`. The cluster decommission operation decommissions the zone listed in the method.
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
32
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -25,10 +25,10 @@ const { normalizeArguments, handleMissingParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
-
* @param {boolean} [params.flat_settings=false] -
|
|
30
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
31
|
-
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
|
+
* @param {boolean} [params.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
|
30
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
31
|
+
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
32
32
|
* @param {object} params.body - The cluster settings to update.
|
|
33
33
|
*
|
|
34
34
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} params.attribute - The name of
|
|
28
|
+
* @param {string} params.attribute - The name of awareness attribute, usually `zone`.
|
|
29
29
|
* @param {string} [params.body]
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/cluster/reroute.js
CHANGED
|
@@ -25,13 +25,13 @@ const { normalizeArguments } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
29
29
|
* @param {boolean} [params.dry_run] - When `true`, the request simulates the operation and returns the resulting state.
|
|
30
|
-
* @param {boolean} [params.explain] - When `true`, the response contains an explanation of why certain commands can or cannot be executed.
|
|
31
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
30
|
+
* @param {boolean} [params.explain] - When `true`, the response contains an explanation of why reroute certain commands can or cannot be executed.
|
|
31
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
32
32
|
* @param {string} [params.metric] - Limits the information returned to the specified metrics.
|
|
33
33
|
* @param {boolean} [params.retry_failed] - When `true`, retries shard allocation if it was blocked because of too many subsequent failures.
|
|
34
|
-
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
34
|
+
* @param {string} [params.timeout] - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
35
35
|
* @param {object} [params.body] - The definition of `commands` to perform (`move`, `cancel`, `allocate`)
|
|
36
36
|
*
|
|
37
37
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/cluster/state.js
CHANGED
|
@@ -26,15 +26,15 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
28
|
* @param {boolean} [params.allow_no_indices] - Whether to ignore a wildcard index expression that resolves into no concrete indexes. This includes the `_all` string or when no indexes have been specified.
|
|
29
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
29
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
|
|
30
30
|
* @param {string} [params.expand_wildcards] - Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
|
31
|
-
* @param {boolean} [params.flat_settings=false] -
|
|
31
|
+
* @param {boolean} [params.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
|
32
32
|
* @param {boolean} [params.ignore_unavailable] - Whether the specified concrete indexes should be ignored when unavailable (missing or closed).
|
|
33
33
|
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
34
|
-
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
|
34
|
+
* @param {string} [params.master_timeout] DEPRECATED - A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
|
35
35
|
* @param {number} [params.wait_for_metadata_version] - Wait for the metadata version to be equal or greater than the specified metadata version.
|
|
36
36
|
* @param {string} [params.wait_for_timeout] - The maximum time to wait for `wait_for_metadata_version` before timing out.
|
|
37
|
-
* @param {array} [params.metric] - Limits the information returned to only the specified
|
|
37
|
+
* @param {array} [params.metric] - Limits the information returned to only the [specified metric groups](https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/#metric-groups).
|
|
38
38
|
* @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
|
|
39
39
|
*
|
|
40
40
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/cluster/stats.js
CHANGED
|
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Cluster
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {boolean} [params.flat_settings=false] -
|
|
28
|
+
* @param {boolean} [params.flat_settings=false] - Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
|
29
29
|
* @param {string} [params.timeout] - The amount of time to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response's `_nodes.failed` property. Defaults to no timeout.
|
|
30
|
-
* @param {array} [params.index_metric] - A comma-separated list of index metric groups, for example, `docs,store`.
|
|
30
|
+
* @param {array} [params.index_metric] - A comma-separated list of [index metric groups](https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/#index-metric-groups), for example, `docs,store`.
|
|
31
31
|
* @param {array} [params.metric] - Limit the information returned to the specified metrics.
|
|
32
32
|
* @param {string} [params.node_id] - A comma-separated list of node IDs used to filter results. Supports [node filters](https://opensearch.org/docs/latest/api-reference/nodes-apis/index/#node-filters).
|
|
33
33
|
*
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Common from '../_types/_common'
|
|
18
19
|
import * as FlowFramework_Common from '../_types/flow_framework.common'
|
|
19
20
|
import * as Global from '../_types/_global'
|
|
20
21
|
|
|
@@ -27,5 +28,5 @@ export interface FlowFramework_Delete_Response extends ApiResponse {
|
|
|
27
28
|
body: FlowFramework_Delete_ResponseBody;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
export type FlowFramework_Delete_ResponseBody =
|
|
31
|
+
export type FlowFramework_Delete_ResponseBody = Common.WriteResponseBase
|
|
31
32
|
|
package/api/index.d.ts
CHANGED
|
@@ -275,6 +275,7 @@ import { Knn_TrainModel_Request, Knn_TrainModel_Response, Knn_TrainModel_Respons
|
|
|
275
275
|
import { Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody } from './knn/deleteModel';
|
|
276
276
|
import { Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody } from './knn/getModel';
|
|
277
277
|
import { Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody } from './knn/warmup';
|
|
278
|
+
import { Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody } from './ltr/stats';
|
|
278
279
|
import { Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody } from './ml/executeAlgorithm';
|
|
279
280
|
import { Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody } from './ml/predict';
|
|
280
281
|
import { Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody } from './ml/trainPredict';
|
|
@@ -683,6 +684,7 @@ export {
|
|
|
683
684
|
Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody,
|
|
684
685
|
Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody,
|
|
685
686
|
Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody,
|
|
687
|
+
Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody,
|
|
686
688
|
Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody,
|
|
687
689
|
Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody,
|
|
688
690
|
Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody,
|
package/api/indices/exists.d.ts
CHANGED
|
@@ -29,9 +29,7 @@ export interface Indices_Exists_Request extends Global.Params {
|
|
|
29
29
|
local?: boolean;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export
|
|
33
|
-
body: Indices_Exists_ResponseBody;
|
|
34
|
-
}
|
|
32
|
+
export type Indices_Exists_Response = boolean
|
|
35
33
|
|
|
36
34
|
export type Indices_Exists_ResponseBody = Record<string, any>
|
|
37
35
|
|
|
@@ -27,9 +27,7 @@ export interface Indices_ExistsAlias_Request extends Global.Params {
|
|
|
27
27
|
name: Common.Names;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export
|
|
31
|
-
body: Indices_ExistsAlias_ResponseBody;
|
|
32
|
-
}
|
|
30
|
+
export type Indices_ExistsAlias_Response = boolean
|
|
33
31
|
|
|
34
32
|
export type Indices_ExistsAlias_ResponseBody = Record<string, any>
|
|
35
33
|
|
|
@@ -26,9 +26,7 @@ export interface Indices_ExistsIndexTemplate_Request extends Global.Params {
|
|
|
26
26
|
name: Common.Name;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export
|
|
30
|
-
body: Indices_ExistsIndexTemplate_ResponseBody;
|
|
31
|
-
}
|
|
29
|
+
export type Indices_ExistsIndexTemplate_Response = boolean
|
|
32
30
|
|
|
33
31
|
export type Indices_ExistsIndexTemplate_ResponseBody = Record<string, any>
|
|
34
32
|
|
|
@@ -26,9 +26,7 @@ export interface Indices_ExistsTemplate_Request extends Global.Params {
|
|
|
26
26
|
name: Common.Names;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export
|
|
30
|
-
body: Indices_ExistsTemplate_ResponseBody;
|
|
31
|
-
}
|
|
29
|
+
export type Indices_ExistsTemplate_Response = boolean
|
|
32
30
|
|
|
33
31
|
export type Indices_ExistsTemplate_ResponseBody = Record<string, any>
|
|
34
32
|
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Deletes
|
|
22
|
+
* Deletes an ingest pipeline.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/ingest-apis/delete-ingest/ - ingest.delete_pipeline}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ingest
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
|
|
29
29
|
* @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
|
|
30
|
-
* @param {string} [params.timeout] -
|
|
31
|
-
* @param {string} params.id -
|
|
30
|
+
* @param {string} [params.timeout] - The amount of time to wait for a response.
|
|
31
|
+
* @param {string} params.id - The pipeline ID or wildcard expression of pipeline IDs used to limit the request. To delete all ingest pipelines in a cluster, use a value of `*`.
|
|
32
32
|
*
|
|
33
33
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
34
34
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Returns
|
|
22
|
+
* Returns an ingest pipeline.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/ingest-apis/get-ingest/ - ingest.get_pipeline}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ingest
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
|
|
29
29
|
* @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
|
|
30
|
-
* @param {string} [params.id] -
|
|
30
|
+
* @param {string} [params.id] - A comma-separated list of pipeline IDs to retrieve. Wildcard (`*`) expressions are supported. To get all ingest pipelines, omit this parameter or use `*`.
|
|
31
31
|
*
|
|
32
32
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
33
33
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
const { normalizeArguments } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Returns a list of
|
|
22
|
+
* Returns a list of built-in grok patterns.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest - ingest.processor_grok}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ingest
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {boolean} [params.s=false] -
|
|
28
|
+
* @param {boolean} [params.s=false] - Determines how to sort returned grok patterns by key name.
|
|
29
29
|
*
|
|
30
30
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
31
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Creates or updates
|
|
22
|
+
* Creates or updates an ingest pipeline.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/ingest-apis/create-update-ingest/ - ingest.put_pipeline}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ingest
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.cluster_manager_timeout] -
|
|
28
|
+
* @param {string} [params.cluster_manager_timeout] - The amount of time allowed to establish a connection to the cluster manager node.
|
|
29
29
|
* @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
|
|
30
|
-
* @param {string} [params.timeout] -
|
|
31
|
-
* @param {string} params.id - ID of the ingest pipeline
|
|
32
|
-
* @param {object} params.body - The ingest definition
|
|
30
|
+
* @param {string} [params.timeout] - The amount of time to wait for a response.
|
|
31
|
+
* @param {string} params.id - The ID of the ingest pipeline.
|
|
32
|
+
* @param {object} params.body - The ingest definition.
|
|
33
33
|
*
|
|
34
34
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
35
35
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/ingest/simulate.js
CHANGED
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Simulates an ingest pipeline with example documents.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/ingest-apis/simulate-ingest/ - ingest.simulate}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ingest
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {boolean} [params.verbose=false] -
|
|
29
|
-
* @param {string} [params.id] -
|
|
28
|
+
* @param {boolean} [params.verbose=false] - When `true`, the response includes output data for each processor in the pipeline
|
|
29
|
+
* @param {string} [params.id] - The pipeline to test. If you don't specify a `pipeline` in the request body, this parameter is required.
|
|
30
30
|
* @param {object} params.body - The simulate definition
|
|
31
31
|
*
|
|
32
32
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -21,9 +21,7 @@ export interface Ism_ExistsPolicy_Request extends Global.Params {
|
|
|
21
21
|
policy_id: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export
|
|
25
|
-
body: Ism_ExistsPolicy_ResponseBody;
|
|
26
|
-
}
|
|
24
|
+
export type Ism_ExistsPolicy_Response = boolean
|
|
27
25
|
|
|
28
26
|
export type Ism_ExistsPolicy_ResponseBody = any
|
|
29
27
|
|