opensearch-ruby 4.0.0.pre.beta.1 → 4.0.0.pre.beta.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/USER_GUIDE.md +23 -5
- data/lib/opensearch/api/actions/asynchronous_search/delete.rb +2 -4
- data/lib/opensearch/api/actions/asynchronous_search/get.rb +1 -1
- data/lib/opensearch/api/actions/asynchronous_search/search.rb +4 -4
- data/lib/opensearch/api/actions/asynchronous_search/stats.rb +1 -1
- data/lib/opensearch/api/actions/cat/aliases.rb +8 -8
- data/lib/opensearch/api/actions/cat/all_pit_segments.rb +7 -7
- data/lib/opensearch/api/actions/cat/allocation.rb +10 -10
- data/lib/opensearch/api/actions/cat/cluster_manager.rb +8 -8
- data/lib/opensearch/api/actions/cat/count.rb +6 -6
- data/lib/opensearch/api/actions/cat/fielddata.rb +7 -7
- data/lib/opensearch/api/actions/cat/health.rb +6 -6
- data/lib/opensearch/api/actions/cat/indices.rb +16 -16
- data/lib/opensearch/api/actions/cat/master.rb +8 -8
- data/lib/opensearch/api/actions/cat/nodeattrs.rb +8 -8
- data/lib/opensearch/api/actions/cat/nodes.rb +12 -12
- data/lib/opensearch/api/actions/cat/pending_tasks.rb +10 -10
- data/lib/opensearch/api/actions/cat/pit_segments.rb +7 -7
- data/lib/opensearch/api/actions/cat/plugins.rb +9 -9
- data/lib/opensearch/api/actions/cat/recovery.rb +10 -10
- data/lib/opensearch/api/actions/cat/repositories.rb +9 -9
- data/lib/opensearch/api/actions/cat/segment_replication.rb +19 -18
- data/lib/opensearch/api/actions/cat/segments.rb +8 -8
- data/lib/opensearch/api/actions/cat/shards.rb +11 -11
- data/lib/opensearch/api/actions/cat/snapshots.rb +10 -10
- data/lib/opensearch/api/actions/cat/tasks.rb +9 -9
- data/lib/opensearch/api/actions/cat/templates.rb +9 -9
- data/lib/opensearch/api/actions/cat/thread_pool.rb +9 -9
- data/lib/opensearch/api/actions/clear_scroll.rb +1 -3
- data/lib/opensearch/api/actions/cluster/allocation_explain.rb +4 -4
- data/lib/opensearch/api/actions/cluster/delete_component_template.rb +5 -7
- data/lib/opensearch/api/actions/cluster/delete_decommission_awareness.rb +2 -4
- data/lib/opensearch/api/actions/cluster/delete_voting_config_exclusions.rb +3 -5
- data/lib/opensearch/api/actions/cluster/delete_weighted_routing.rb +1 -3
- data/lib/opensearch/api/actions/cluster/exists_component_template.rb +4 -4
- data/lib/opensearch/api/actions/cluster/get_component_template.rb +6 -4
- data/lib/opensearch/api/actions/cluster/get_decommission_awareness.rb +2 -2
- data/lib/opensearch/api/actions/cluster/get_settings.rb +5 -5
- data/lib/opensearch/api/actions/cluster/get_weighted_routing.rb +1 -1
- data/lib/opensearch/api/actions/cluster/health.rb +14 -14
- data/lib/opensearch/api/actions/cluster/pending_tasks.rb +5 -5
- data/lib/opensearch/api/actions/cluster/post_voting_config_exclusions.rb +4 -4
- data/lib/opensearch/api/actions/cluster/put_component_template.rb +6 -6
- data/lib/opensearch/api/actions/cluster/put_decommission_awareness.rb +3 -3
- data/lib/opensearch/api/actions/cluster/put_settings.rb +5 -5
- data/lib/opensearch/api/actions/cluster/put_weighted_routing.rb +1 -1
- data/lib/opensearch/api/actions/cluster/reroute.rb +6 -6
- data/lib/opensearch/api/actions/cluster/state.rb +10 -10
- data/lib/opensearch/api/actions/cluster/stats.rb +5 -5
- data/lib/opensearch/api/actions/count.rb +1 -1
- data/lib/opensearch/api/actions/dangling_indices/delete_dangling_index.rb +1 -3
- data/lib/opensearch/api/actions/delete.rb +1 -3
- data/lib/opensearch/api/actions/delete_all_pits.rb +1 -3
- data/lib/opensearch/api/actions/delete_by_query.rb +2 -2
- data/lib/opensearch/api/actions/delete_by_query_rethrottle.rb +1 -1
- data/lib/opensearch/api/actions/delete_pit.rb +1 -3
- data/lib/opensearch/api/actions/delete_script.rb +1 -3
- data/lib/opensearch/api/actions/flow_framework/delete.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_alias.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_data_stream.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_index_template.rb +1 -3
- data/lib/opensearch/api/actions/indices/delete_template.rb +1 -3
- data/lib/opensearch/api/actions/indices/forcemerge.rb +1 -1
- data/lib/opensearch/api/actions/indices/put_template.rb +1 -1
- data/lib/opensearch/api/actions/indices/upgrade.rb +0 -1
- data/lib/opensearch/api/actions/ingest/delete_pipeline.rb +5 -7
- data/lib/opensearch/api/actions/ingest/get_pipeline.rb +3 -3
- data/lib/opensearch/api/actions/ingest/processor_grok.rb +2 -2
- data/lib/opensearch/api/actions/ingest/put_pipeline.rb +5 -5
- data/lib/opensearch/api/actions/ingest/simulate.rb +3 -3
- data/lib/opensearch/api/actions/ism/delete_policy.rb +1 -3
- data/lib/opensearch/api/actions/knn/delete_model.rb +1 -3
- data/lib/opensearch/api/actions/ltr/stats.rb +41 -0
- data/lib/opensearch/api/actions/ml/chunk_model.rb +40 -0
- data/lib/opensearch/api/actions/ml/create_controller.rb +37 -0
- data/lib/opensearch/api/actions/ml/create_memory.rb +32 -0
- data/lib/opensearch/api/actions/ml/create_message.rb +37 -0
- data/lib/opensearch/api/actions/ml/create_model_meta.rb +32 -0
- data/lib/opensearch/api/actions/ml/delete_agent.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_connector.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_controller.rb +36 -0
- data/lib/opensearch/api/actions/ml/delete_memory.rb +36 -0
- data/lib/opensearch/api/actions/ml/delete_model.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_model_group.rb +1 -3
- data/lib/opensearch/api/actions/ml/delete_task.rb +1 -3
- data/lib/opensearch/api/actions/ml/execute_agent.rb +37 -0
- data/lib/opensearch/api/actions/ml/execute_algorithm.rb +37 -0
- data/lib/opensearch/api/actions/ml/get_agent.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_all_memories.rb +38 -0
- data/lib/opensearch/api/actions/ml/get_all_messages.rb +43 -0
- data/lib/opensearch/api/actions/ml/get_all_tools.rb +31 -0
- data/lib/opensearch/api/actions/ml/get_connector.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_controller.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_memory.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_message.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_message_traces.rb +43 -0
- data/lib/opensearch/api/actions/ml/get_model.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_profile.rb +32 -0
- data/lib/opensearch/api/actions/ml/get_profile_models.rb +35 -0
- data/lib/opensearch/api/actions/ml/get_profile_tasks.rb +35 -0
- data/lib/opensearch/api/actions/ml/get_stats.rb +36 -0
- data/lib/opensearch/api/actions/ml/get_tool.rb +36 -0
- data/lib/opensearch/api/actions/ml/load_model.rb +36 -0
- data/lib/opensearch/api/actions/ml/predict.rb +40 -0
- data/lib/opensearch/api/actions/ml/predict_model.rb +37 -0
- data/lib/opensearch/api/actions/ml/register_model_meta.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_agents.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_connectors.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_memory.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_message.rb +37 -0
- data/lib/opensearch/api/actions/ml/search_model_group.rb +32 -0
- data/lib/opensearch/api/actions/ml/search_models.rb +1 -1
- data/lib/opensearch/api/actions/ml/search_tasks.rb +32 -0
- data/lib/opensearch/api/actions/ml/train.rb +37 -0
- data/lib/opensearch/api/actions/ml/train_predict.rb +37 -0
- data/lib/opensearch/api/actions/ml/undeploy_model.rb +2 -3
- data/lib/opensearch/api/actions/ml/unload_model.rb +35 -0
- data/lib/opensearch/api/actions/ml/update_connector.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_controller.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_memory.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_message.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_model.rb +37 -0
- data/lib/opensearch/api/actions/ml/update_model_group.rb +37 -0
- data/lib/opensearch/api/actions/ml/upload_chunk.rb +40 -0
- data/lib/opensearch/api/actions/ml/upload_model.rb +32 -0
- data/lib/opensearch/api/actions/notifications/delete_config.rb +1 -3
- data/lib/opensearch/api/actions/notifications/delete_configs.rb +1 -3
- data/lib/opensearch/api/actions/observability/delete_object.rb +1 -3
- data/lib/opensearch/api/actions/observability/delete_objects.rb +1 -3
- data/lib/opensearch/api/actions/query/datasource_delete.rb +1 -3
- data/lib/opensearch/api/actions/reindex.rb +3 -1
- data/lib/opensearch/api/actions/reindex_rethrottle.rb +1 -1
- data/lib/opensearch/api/actions/replication/delete_replication_rule.rb +1 -3
- data/lib/opensearch/api/actions/rollups/delete.rb +1 -3
- data/lib/opensearch/api/actions/scroll.rb +1 -1
- data/lib/opensearch/api/actions/search_pipeline/delete.rb +1 -3
- data/lib/opensearch/api/actions/search_shards.rb +0 -1
- data/lib/opensearch/api/actions/security/authinfo.rb +3 -3
- data/lib/opensearch/api/actions/security/authtoken.rb +1 -1
- data/lib/opensearch/api/actions/security/config_upgrade_check.rb +1 -1
- data/lib/opensearch/api/actions/security/config_upgrade_perform.rb +1 -1
- data/lib/opensearch/api/actions/security/create_allowlist.rb +1 -1
- data/lib/opensearch/api/actions/security/create_role.rb +1 -1
- data/lib/opensearch/api/actions/security/create_role_mapping.rb +1 -1
- data/lib/opensearch/api/actions/security/create_tenant.rb +1 -1
- data/lib/opensearch/api/actions/security/create_update_tenancy_config.rb +1 -1
- data/lib/opensearch/api/actions/security/create_user.rb +1 -1
- data/lib/opensearch/api/actions/security/create_user_legacy.rb +1 -1
- data/lib/opensearch/api/actions/security/delete_action_group.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_distinguished_name.rb +3 -5
- data/lib/opensearch/api/actions/security/delete_role.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_role_mapping.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_tenant.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_user.rb +2 -4
- data/lib/opensearch/api/actions/security/delete_user_legacy.rb +1 -3
- data/lib/opensearch/api/actions/security/flush_cache.rb +2 -4
- data/lib/opensearch/api/actions/security/generate_obo_token.rb +1 -1
- data/lib/opensearch/api/actions/security/generate_user_token.rb +2 -2
- data/lib/opensearch/api/actions/security/generate_user_token_legacy.rb +1 -1
- data/lib/opensearch/api/actions/security/get_account_details.rb +1 -1
- data/lib/opensearch/api/actions/security/get_all_certificates.rb +2 -2
- data/lib/opensearch/api/actions/security/get_allowlist.rb +1 -1
- data/lib/opensearch/api/actions/security/get_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/get_dashboards_info.rb +1 -1
- data/lib/opensearch/api/actions/security/get_distinguished_name.rb +3 -3
- data/lib/opensearch/api/actions/security/get_distinguished_names.rb +2 -2
- data/lib/opensearch/api/actions/security/get_node_certificates.rb +4 -4
- data/lib/opensearch/api/actions/security/get_permissions_info.rb +1 -1
- data/lib/opensearch/api/actions/security/get_role.rb +1 -1
- data/lib/opensearch/api/actions/security/get_role_mapping.rb +2 -2
- data/lib/opensearch/api/actions/security/get_sslinfo.rb +2 -2
- data/lib/opensearch/api/actions/security/get_tenancy_config.rb +1 -1
- data/lib/opensearch/api/actions/security/get_tenant.rb +1 -1
- data/lib/opensearch/api/actions/security/get_user.rb +1 -1
- data/lib/opensearch/api/actions/security/health.rb +2 -2
- data/lib/opensearch/api/actions/security/migrate.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_action_group.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_action_groups.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_allowlist.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_audit_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_distinguished_name.rb +5 -5
- data/lib/opensearch/api/actions/security/patch_distinguished_names.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_role.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_role_mapping.rb +2 -2
- data/lib/opensearch/api/actions/security/patch_role_mappings.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_tenant.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_tenants.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_user.rb +1 -1
- data/lib/opensearch/api/actions/security/patch_users.rb +1 -1
- data/lib/opensearch/api/actions/security/post_dashboards_info.rb +1 -1
- data/lib/opensearch/api/actions/security/reload_http_certificates.rb +1 -1
- data/lib/opensearch/api/actions/security/reload_transport_certificates.rb +1 -1
- data/lib/opensearch/api/actions/security/tenant_info.rb +1 -1
- data/lib/opensearch/api/actions/security/update_configuration.rb +1 -1
- data/lib/opensearch/api/actions/security/update_distinguished_name.rb +2 -2
- data/lib/opensearch/api/actions/security/validate.rb +1 -1
- data/lib/opensearch/api/actions/security/who_am_i.rb +1 -1
- data/lib/opensearch/api/actions/security/who_am_i_protected.rb +1 -1
- data/lib/opensearch/api/actions/sm/create_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/delete_policy.rb +2 -4
- data/lib/opensearch/api/actions/sm/explain_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/get_policies.rb +5 -5
- data/lib/opensearch/api/actions/sm/get_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/start_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/stop_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/update_policy.rb +1 -1
- data/lib/opensearch/api/actions/snapshot/cleanup_repository.rb +3 -3
- data/lib/opensearch/api/actions/snapshot/clone.rb +6 -6
- data/lib/opensearch/api/actions/snapshot/create.rb +6 -6
- data/lib/opensearch/api/actions/snapshot/create_repository.rb +6 -6
- data/lib/opensearch/api/actions/snapshot/delete.rb +4 -6
- data/lib/opensearch/api/actions/snapshot/delete_repository.rb +5 -7
- data/lib/opensearch/api/actions/snapshot/get.rb +5 -5
- data/lib/opensearch/api/actions/snapshot/get_repository.rb +4 -4
- data/lib/opensearch/api/actions/snapshot/restore.rb +5 -5
- data/lib/opensearch/api/actions/snapshot/status.rb +4 -4
- data/lib/opensearch/api/actions/snapshot/verify_repository.rb +3 -3
- data/lib/opensearch/api/actions/tasks/cancel.rb +5 -5
- data/lib/opensearch/api/actions/tasks/get.rb +3 -3
- data/lib/opensearch/api/actions/tasks/list.rb +7 -7
- data/lib/opensearch/api/actions/transforms/delete.rb +1 -3
- data/lib/opensearch/api/actions/update_by_query.rb +2 -2
- data/lib/opensearch/api/actions/wlm/delete_query_group.rb +1 -3
- data/lib/opensearch/api/utils.rb +1 -1
- data/lib/opensearch/transport/client.rb +21 -6
- data/lib/opensearch/transport/transport/base.rb +3 -8
- data/lib/opensearch/version.rb +1 -1
- data/lib/opensearch.rb +4 -0
- data/opensearch-ruby.gemspec +1 -0
- data/test/transport/unit/transport_base_test.rb +0 -26
- data.tar.gz.sig +0 -0
- metadata +62 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52165e3bcc6883923f6bbfc57aeaf73b0cd9d054983804de6432baece83483ee
|
4
|
+
data.tar.gz: 0eb577153a23b0d91f091e901e8a209b6a880da271a5e426a27586bdccaa2710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 900fd3c53f3b222fece0968e1094a87f5ce2cd6a7174d8a54470d74a19af5db6982351459d5efdedd03545ac824123daefb2373ae109a263fca50bbd755ba357
|
7
|
+
data.tar.gz: c72d67452b64da318baf2d9f71b2aff32ebb7c0e6f1eb493b5c91ddd7ab3b54590108b56dcc2ce5a705868cbf2c7772742029d55a85629de7a42cea129ce52e2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/USER_GUIDE.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
- [Basic Usage](#basic-usage)
|
4
4
|
- [OpenSearch DSL](#opensearch-dsl)
|
5
5
|
- [Guides by Topics](#guides-by-topics)
|
6
|
+
- [Using a Request Signer](#using-a-request-signer)
|
6
7
|
- [Amazon OpenSearch Service](#amazon-opensearch-service)
|
7
8
|
|
8
9
|
# User Guide
|
@@ -24,12 +25,12 @@ bundle install
|
|
24
25
|
Import the client:
|
25
26
|
|
26
27
|
```ruby
|
27
|
-
require 'opensearch'
|
28
|
+
require 'opensearch-ruby'
|
28
29
|
```
|
29
30
|
|
30
31
|
## Basic Usage
|
31
32
|
```ruby
|
32
|
-
require 'opensearch'
|
33
|
+
require 'opensearch-ruby'
|
33
34
|
|
34
35
|
client = OpenSearch::Client.new(
|
35
36
|
host: 'https://localhost:9200',
|
@@ -114,8 +115,8 @@ puts response
|
|
114
115
|
The `opensearch-dsl` library is designed as a group of standalone Ruby modules, classes and DSL methods, which provide an idiomatic way to build complex search definitions
|
115
116
|
|
116
117
|
```ruby
|
117
|
-
require 'opensearch'
|
118
|
-
require 'opensearch
|
118
|
+
require 'opensearch-ruby'
|
119
|
+
require 'opensearch-dsl'
|
119
120
|
include OpenSearch::DSL
|
120
121
|
|
121
122
|
response = client.search index: index_name, body: search {
|
@@ -142,8 +143,25 @@ response = client.search index: index_name, body: search {
|
|
142
143
|
- [Transport Options](guides/transport_options.md)
|
143
144
|
- [Custom HTTP Requests](guides/json.md)
|
144
145
|
|
146
|
+
|
147
|
+
## Using a Request Signer
|
148
|
+
The OpenSearch ruby client supports request signing as an authentication mechanism. When instantiating a client, you can pass a request signer object to sign requests. This object is often created via a 3rd party library such as `opensearch-aws-sigv4`, but you can also create your own (Check the [DEVELOPER_GUIDE](./DEVELOPER_GUIDE.md) for more details). Below is a very simple example of a request signer object that simply signs the request with a timestamp:
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
require 'opensearch-ruby'
|
152
|
+
|
153
|
+
client = OpenSearch::Client.new(
|
154
|
+
host: 'https://localhost:9200',
|
155
|
+
request_signer: Struct.new(:signer) do
|
156
|
+
def self.sign_request(**args)
|
157
|
+
args[:headers].merge({ 'X-signature' => Time.now.utc })
|
158
|
+
end
|
159
|
+
end
|
160
|
+
)
|
161
|
+
```
|
162
|
+
|
145
163
|
## Amazon OpenSearch Service
|
146
164
|
|
147
|
-
Requests to [OpenSearch Service and OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/index.html) must be signed using the AWS signing protocol.
|
165
|
+
Requests to [OpenSearch Service and OpenSearch Serverless](https://docs.aws.amazon.com/opensearch-service/index.html) must be signed using the AWS signing protocol. The `opensearch-aws-sigv4` gem provides a request signer object that can be passed to the `OpenSearch::Client` during instantiation to sign requests.
|
148
166
|
|
149
167
|
For more information, checkout the [USER_GUIDE](https://github.com/opensearch-project/opensearch-ruby-aws-sigv4/blob/main/USER_GUIDE.md) of [opensearch-aws-sigv4 gem](https://github.com/opensearch-project/opensearch-ruby-aws-sigv4).
|
@@ -13,24 +13,22 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module AsynchronousSearch
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Deletes any responses from an asynchronous search.
|
17
17
|
#
|
18
18
|
# @option args [String] :id *Required*
|
19
|
-
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request
|
20
19
|
def delete(args = {})
|
21
20
|
args = Utils.clone_and_normalize_arguments(args)
|
22
21
|
raise ArgumentError, "Required argument 'id' missing" if args['id'].nil?
|
23
22
|
|
24
23
|
_id = args.delete('id')
|
25
24
|
|
26
|
-
ignore = args.delete('ignore') || []
|
27
25
|
headers = args.delete('headers') || {}
|
28
26
|
body = args.delete('body')
|
29
27
|
method = 'DELETE'
|
30
28
|
url = Utils.build_url('_plugins/_asynchronous_search', _id)
|
31
29
|
|
32
30
|
Utils.validate_query_params! args
|
33
|
-
transport.perform_delete_request method, url, args, body, headers
|
31
|
+
transport.perform_delete_request method, url, args, body, headers
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
@@ -13,12 +13,12 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module AsynchronousSearch
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Performs an asynchronous search.
|
17
17
|
#
|
18
18
|
# @option args [String] :index The name of the index to be searched. Can be an individual name, a comma-separated list of indexes, or a wildcard expression of index names.
|
19
|
-
# @option args [String] :keep_alive The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours.
|
20
|
-
# @option args [Boolean] :keep_on_completion Whether
|
21
|
-
# @option args [String] :wait_for_completion_timeout The amount of time
|
19
|
+
# @option args [String] :keep_alive The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution time. If the query exceeds this amount of time, the process cancels this query automatically.
|
20
|
+
# @option args [Boolean] :keep_on_completion Whether to save the results in the cluster after the search is complete. You can examine the stored results at a later time.
|
21
|
+
# @option args [String] :wait_for_completion_timeout The amount of time to wait for the results. You can poll the remaining results based on an ID. The maximum value is 300 seconds. Default is `1s`.
|
22
22
|
# @option args [Hash] :body The search definition using the Query DSL.
|
23
23
|
def search(args = {})
|
24
24
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module AsynchronousSearch
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Monitors any asynchronous searches that are `running`, `completed`, or `persisted`.
|
17
17
|
#
|
18
18
|
def stats(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,15 +13,15 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Shows information about currently configured
|
16
|
+
# Shows information about aliases currently configured to indexes, including filter and routing information.
|
17
17
|
#
|
18
|
-
# @option args [Enumerable<String>, String] :expand_wildcards
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [Enumerable<String>] :s
|
24
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [Enumerable<String>, String] :expand_wildcards Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Whether to return information from the local node only instead of from the cluster manager node.
|
23
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
24
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
25
25
|
# @option args [Enumerable<String>, String] :name A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
|
26
26
|
def aliases(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,14 +13,14 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Lists all active point-in-time segments.
|
16
|
+
# Lists all active CAT point-in-time segments.
|
17
17
|
#
|
18
|
-
# @option args [String] :bytes The
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Enumerable<String>] :s
|
23
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :bytes The units used to display byte values.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
23
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
24
24
|
def all_pit_segments(args = {})
|
25
25
|
args = Utils.clone_and_normalize_arguments(args)
|
26
26
|
headers = args.delete('headers') || {}
|
@@ -15,16 +15,16 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
|
17
17
|
#
|
18
|
-
# @option args [String] :bytes The
|
19
|
-
# @option args [String] :cluster_manager_timeout
|
20
|
-
# @option args [String] :format A short version of the Accept header
|
21
|
-
# @option args [Enumerable<String>] :h
|
22
|
-
# @option args [Boolean] :help
|
23
|
-
# @option args [Boolean] :local
|
24
|
-
# @option args [String] :master_timeout DEPRECATED
|
25
|
-
# @option args [Enumerable<String>] :s
|
26
|
-
# @option args [Boolean] :v
|
27
|
-
# @option args [Enumerable<String>, String] :node_id
|
18
|
+
# @option args [String] :bytes The units used to display byte values.
|
19
|
+
# @option args [String] :cluster_manager_timeout A timeout for connection to the cluster manager node.
|
20
|
+
# @option args [String] :format A short version of the HTTP `Accept` header, such as `json` or `yaml`.
|
21
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
22
|
+
# @option args [Boolean] :help Returns help information.
|
23
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from cluster-manager node.
|
24
|
+
# @option args [String] :master_timeout DEPRECATED A timeout for connection to the cluster manager node.
|
25
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
26
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
27
|
+
# @option args [Enumerable<String>, String] :node_id A comma-separated list of node IDs or names used to limit the returned information.
|
28
28
|
def allocation(args = {})
|
29
29
|
args = Utils.clone_and_normalize_arguments(args)
|
30
30
|
_node_id = args.delete('node_id')
|
@@ -15,14 +15,14 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Returns information about the cluster-manager node.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_manager_timeout
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [String] :master_timeout DEPRECATED
|
24
|
-
# @option args [Enumerable<String>] :s
|
25
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :cluster_manager_timeout A timeout for connection to the cluster manager node.
|
19
|
+
# @option args [String] :format A short version of the HTTP `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
23
|
+
# @option args [String] :master_timeout DEPRECATED A timeout for connection to the cluster manager node.
|
24
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
25
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
26
26
|
def cluster_manager(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
28
28
|
headers = args.delete('headers') || {}
|
@@ -13,13 +13,13 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Provides quick access to the document count of the entire cluster
|
16
|
+
# Provides quick access to the document count of the entire cluster or of an individual index.
|
17
17
|
#
|
18
|
-
# @option args [String] :format A short version of the Accept header
|
19
|
-
# @option args [Enumerable<String>] :h
|
20
|
-
# @option args [Boolean] :help
|
21
|
-
# @option args [Enumerable<String>] :s
|
22
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
19
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
20
|
+
# @option args [Boolean] :help Returns help information.
|
21
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
22
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
23
23
|
# @option args [Enumerable<String>, String] :index 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`.
|
24
24
|
def count(args = {})
|
25
25
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,13 +15,13 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Shows how much heap memory is currently being used by field data on every data node in the cluster.
|
17
17
|
#
|
18
|
-
# @option args [String] :bytes The
|
19
|
-
# @option args [Enumerable<String>, String] :fields
|
20
|
-
# @option args [String] :format A short version of the Accept header
|
21
|
-
# @option args [Enumerable<String>] :h
|
22
|
-
# @option args [Boolean] :help
|
23
|
-
# @option args [Enumerable<String>] :s
|
24
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :bytes The units used to display byte values.
|
19
|
+
# @option args [Enumerable<String>, String] :fields A comma-separated list of fields used to limit the amount of returned information.
|
20
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
21
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
22
|
+
# @option args [Boolean] :help Returns help information.
|
23
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
24
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
25
25
|
def fielddata(args = {})
|
26
26
|
args = Utils.clone_and_normalize_arguments(args)
|
27
27
|
_fields = args.delete('fields')
|
@@ -15,13 +15,13 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Returns a concise representation of the cluster health.
|
17
17
|
#
|
18
|
-
# @option args [String] :format A short version of the Accept header
|
19
|
-
# @option args [Enumerable<String>] :h
|
20
|
-
# @option args [Boolean] :help
|
21
|
-
# @option args [Enumerable<String>] :s
|
18
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
19
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
20
|
+
# @option args [Boolean] :help Returns help information.
|
21
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
22
22
|
# @option args [String] :time The unit used to display time values.
|
23
|
-
# @option args [Boolean] :ts (default: true)
|
24
|
-
# @option args [Boolean] :v
|
23
|
+
# @option args [Boolean] :ts (default: true) When `true`, returns `HH:MM:SS` and Unix epoch timestamps.
|
24
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
25
25
|
def health(args = {})
|
26
26
|
args = Utils.clone_and_normalize_arguments(args)
|
27
27
|
headers = args.delete('headers') || {}
|
@@ -13,23 +13,23 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Lists information related to indexes, that is, how much disk space they are using, how many shards they have, their health status, and so on.
|
17
17
|
#
|
18
|
-
# @option args [String] :bytes The
|
19
|
-
# @option args [String] :cluster_manager_timeout
|
20
|
-
# @option args [Enumerable<String>, String] :expand_wildcards
|
21
|
-
# @option args [String] :format A short version of the Accept header
|
22
|
-
# @option args [Enumerable<String>] :h
|
23
|
-
# @option args [String] :health
|
24
|
-
# @option args [Boolean] :help
|
25
|
-
# @option args [Boolean] :include_unloaded_segments
|
26
|
-
# @option args [Boolean] :local
|
27
|
-
# @option args [String] :master_timeout DEPRECATED
|
28
|
-
# @option args [Boolean] :pri
|
29
|
-
# @option args [Enumerable<String>] :s
|
30
|
-
# @option args [String] :time
|
31
|
-
# @option args [Boolean] :v
|
32
|
-
# @option args [Enumerable<String>, String] :index
|
18
|
+
# @option args [String] :bytes The units used to display byte values.
|
19
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
20
|
+
# @option args [Enumerable<String>, String] :expand_wildcards Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
21
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
22
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
23
|
+
# @option args [String] :health Limits indexes based on their health status. Supported values are `green`, `yellow`, and `red`.
|
24
|
+
# @option args [Boolean] :help Returns help information.
|
25
|
+
# @option args [Boolean] :include_unloaded_segments Whether to include information from segments not loaded into memory.
|
26
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
27
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
28
|
+
# @option args [Boolean] :pri When `true`, returns information only from the primary shards.
|
29
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
30
|
+
# @option args [String] :time Specifies the time units.
|
31
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
32
|
+
# @option args [Enumerable<String>, String] :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`.
|
33
33
|
def indices(args = {})
|
34
34
|
args = Utils.clone_and_normalize_arguments(args)
|
35
35
|
_index = args.delete('index')
|
@@ -15,14 +15,14 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Returns information about the cluster-manager node.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_manager_timeout
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [String] :master_timeout DEPRECATED
|
24
|
-
# @option args [Enumerable<String>] :s
|
25
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
23
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
24
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
25
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
26
26
|
def master(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
28
28
|
headers = args.delete('headers') || {}
|
@@ -15,14 +15,14 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Returns information about custom node attributes.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_manager_timeout
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [String] :master_timeout DEPRECATED
|
24
|
-
# @option args [Enumerable<String>] :s
|
25
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
23
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
24
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
25
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
26
26
|
def nodeattrs(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
28
28
|
headers = args.delete('headers') || {}
|
@@ -13,19 +13,19 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Returns basic statistics about performance of cluster nodes.
|
16
|
+
# Returns basic statistics about the performance of cluster nodes.
|
17
17
|
#
|
18
|
-
# @option args [String] :bytes The
|
19
|
-
# @option args [String] :cluster_manager_timeout
|
20
|
-
# @option args [String] :format A short version of the Accept header
|
21
|
-
# @option args [Boolean, String] :full_id
|
22
|
-
# @option args [Enumerable<String>] :h
|
23
|
-
# @option args [Boolean] :help
|
24
|
-
# @option args [Boolean] :local DEPRECATED
|
25
|
-
# @option args [String] :master_timeout DEPRECATED
|
26
|
-
# @option args [Enumerable<String>] :s
|
27
|
-
# @option args [String] :time
|
28
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :bytes The units used to display byte values.
|
19
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
20
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
21
|
+
# @option args [Boolean, String] :full_id When `true`, returns the full node ID. When `false`, returns the shortened node ID.
|
22
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
23
|
+
# @option args [Boolean] :help Returns help information.
|
24
|
+
# @option args [Boolean] :local DEPRECATED Returns local information but does not retrieve the state from the cluster manager node.
|
25
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
26
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
27
|
+
# @option args [String] :time Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
|
28
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
29
29
|
def nodes(args = {})
|
30
30
|
args = Utils.clone_and_normalize_arguments(args)
|
31
31
|
headers = args.delete('headers') || {}
|
@@ -13,17 +13,17 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Returns a concise representation of the cluster pending tasks.
|
16
|
+
# Returns a concise representation of the cluster's pending tasks.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_manager_timeout
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [String] :master_timeout DEPRECATED
|
24
|
-
# @option args [Enumerable<String>] :s
|
25
|
-
# @option args [String] :time
|
26
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
23
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
24
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
25
|
+
# @option args [String] :time Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
|
26
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
27
27
|
def pending_tasks(args = {})
|
28
28
|
args = Utils.clone_and_normalize_arguments(args)
|
29
29
|
headers = args.delete('headers') || {}
|
@@ -13,14 +13,14 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Lists one or several CAT point-in-time segments.
|
17
17
|
#
|
18
|
-
# @option args [String] :bytes The
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Enumerable<String>] :s
|
23
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :bytes The units used to display byte values.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
23
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
24
24
|
# @option args [Hash] :body
|
25
25
|
def pit_segments(args = {})
|
26
26
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,16 +13,16 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Returns information about
|
16
|
+
# Returns information about the names, components, and versions of the installed plugins.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_manager_timeout
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [String] :master_timeout DEPRECATED
|
24
|
-
# @option args [Enumerable<String>] :s
|
25
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
23
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
24
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
25
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
26
26
|
def plugins(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
28
28
|
headers = args.delete('headers') || {}
|
@@ -13,18 +13,18 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Returns
|
16
|
+
# Returns all completed and ongoing index and shard recoveries.
|
17
17
|
#
|
18
18
|
# @option args [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries.
|
19
|
-
# @option args [String] :bytes The
|
20
|
-
# @option args [Boolean] :detailed
|
21
|
-
# @option args [String] :format A short version of the Accept header
|
22
|
-
# @option args [Enumerable<String>] :h
|
23
|
-
# @option args [Boolean] :help
|
24
|
-
# @option args [Enumerable<String>] :index
|
25
|
-
# @option args [Enumerable<String>] :s
|
26
|
-
# @option args [String] :time
|
27
|
-
# @option args [Boolean] :v
|
19
|
+
# @option args [String] :bytes The units used to display byte values.
|
20
|
+
# @option args [Boolean] :detailed When `true`, includes detailed information about shard recoveries.
|
21
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
22
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
23
|
+
# @option args [Boolean] :help Returns help information.
|
24
|
+
# @option args [Enumerable<String>] :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`.
|
25
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
26
|
+
# @option args [String] :time Specifies the time units, for example, `5d` or `7h`. For more information, see [Supported units](https://opensearch.org/docs/latest/api-reference/units/).
|
27
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
28
28
|
def recovery(args = {})
|
29
29
|
args = Utils.clone_and_normalize_arguments(args)
|
30
30
|
_index = args.delete('index')
|
@@ -13,16 +13,16 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Cat
|
15
15
|
module Actions
|
16
|
-
# Returns information about snapshot repositories
|
16
|
+
# Returns information about all snapshot repositories for a cluster.
|
17
17
|
#
|
18
|
-
# @option args [String] :cluster_manager_timeout
|
19
|
-
# @option args [String] :format A short version of the Accept header
|
20
|
-
# @option args [Enumerable<String>] :h
|
21
|
-
# @option args [Boolean] :help
|
22
|
-
# @option args [Boolean] :local
|
23
|
-
# @option args [String] :master_timeout DEPRECATED
|
24
|
-
# @option args [Enumerable<String>] :s
|
25
|
-
# @option args [Boolean] :v
|
18
|
+
# @option args [String] :cluster_manager_timeout The amount of time allowed to establish a connection to the cluster manager node.
|
19
|
+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
|
20
|
+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
|
21
|
+
# @option args [Boolean] :help Returns help information.
|
22
|
+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
|
23
|
+
# @option args [String] :master_timeout DEPRECATED The amount of time allowed to establish a connection to the cluster manager node.
|
24
|
+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
|
25
|
+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
|
26
26
|
def repositories(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
28
28
|
headers = args.delete('headers') || {}
|