Module: Antbird::RestApi::RestApiOpensearchV3_0
- Defined in:
- lib/antbird/rest_api/rest_api_opensearch_v3_0.rb
Instance Method Summary collapse
-
#bulk(params = {}) ⇒ Object
bulk => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html”, “description” => “Allows to perform multiple index/update/delete operations in a single request.”.
-
#cat_aliases(params = {}) ⇒ Object
cat.aliases => “opensearch.org/docs/latest/api-reference/cat/cat-aliases/”, “description” => “Shows information about currently configured aliases to indices including filter and routing infos.”.
-
#cat_allocation(params = {}) ⇒ Object
cat.allocation => “opensearch.org/docs/latest/api-reference/cat/cat-allocation/”, “description” => “Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.”.
-
#cat_cluster_manager(params = {}) ⇒ Object
cat.cluster_manager => “opensearch.org/docs/latest/api-reference/cat/cat-cluster_manager/”, “description” => “Returns information about the cluster-manager node.”.
-
#cat_count(params = {}) ⇒ Object
cat.count => “opensearch.org/docs/latest/api-reference/cat/cat-count/”, “description” => “Provides quick access to the document count of the entire cluster, or individual indices.”.
-
#cat_fielddata(params = {}) ⇒ Object
cat.fielddata => “opensearch.org/docs/latest/api-reference/cat/cat-field-data/”, “description” => “Shows how much heap memory is currently being used by fielddata on every data node in the cluster.”.
-
#cat_health(params = {}) ⇒ Object
cat.health => “www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html”, “description” => “Returns a concise representation of the cluster health.”.
-
#cat_help(params = {}) ⇒ Object
cat.help => “opensearch.org/docs/latest/api-reference/cat/index/”, “description” => “Returns help for the Cat APIs.”.
-
#cat_indices(params = {}) ⇒ Object
cat.indices => “opensearch.org/docs/latest/api-reference/cat/cat-indices/”, “description” => “Returns information about indices: number of primaries and replicas, document counts, disk size, …”.
-
#cat_nodeattrs(params = {}) ⇒ Object
cat.nodeattrs => “opensearch.org/docs/latest/api-reference/cat/cat-nodeattrs/”, “description” => “Returns information about custom node attributes.”.
-
#cat_nodes(params = {}) ⇒ Object
cat.nodes => “opensearch.org/docs/latest/api-reference/cat/cat-nodes/”, “description” => “Returns basic statistics about performance of cluster nodes.”.
-
#cat_pending_tasks(params = {}) ⇒ Object
cat.pending_tasks => “opensearch.org/docs/latest/api-reference/cat/cat-pending-tasks/”, “description” => “Returns a concise representation of the cluster pending tasks.”.
-
#cat_plugins(params = {}) ⇒ Object
cat.plugins => “opensearch.org/docs/latest/api-reference/cat/cat-plugins/”, “description” => “Returns information about installed plugins across nodes node.”.
-
#cat_recovery(params = {}) ⇒ Object
cat.recovery => “opensearch.org/docs/latest/api-reference/cat/cat-recovery/”, “description” => “Returns information about index shard recoveries, both on-going completed.”.
-
#cat_repositories(params = {}) ⇒ Object
cat.repositories => “opensearch.org/docs/latest/api-reference/cat/cat-repositories/”, “description” => “Returns information about snapshot repositories registered in the cluster.”.
-
#cat_segment_replication(params = {}) ⇒ Object
cat.segment_replication => “opensearch.org/docs/latest/api-reference/cat/cat-segment-replication/”, “description” => “Returns information about both on-going and latest completed Segment Replication events”.
-
#cat_segments(params = {}) ⇒ Object
cat.segments => “opensearch.org/docs/latest/api-reference/cat/cat-segments/”, “description” => “Provides low-level information about the segments in the shards of an index.”.
-
#cat_shards(params = {}) ⇒ Object
cat.shards => “opensearch.org/docs/latest/api-reference/cat/cat-shards/”, “description” => “Provides a detailed view of shard allocation on nodes.”.
-
#cat_snapshots(params = {}) ⇒ Object
cat.snapshots => “opensearch.org/docs/latest/api-reference/cat/cat-snapshots/”, “description” => “Returns all snapshots in a specific repository.”.
-
#cat_tasks(params = {}) ⇒ Object
cat.tasks => “opensearch.org/docs/latest/api-reference/cat/cat-tasks/”, “description” => “Returns information about the tasks currently executing on one or more nodes in the cluster.”.
-
#cat_templates(params = {}) ⇒ Object
cat.templates => “opensearch.org/docs/latest/api-reference/cat/cat-templates/”, “description” => “Returns information about existing templates.”.
-
#cat_thread_pool(params = {}) ⇒ Object
cat.thread_pool => “opensearch.org/docs/latest/api-reference/cat/cat-thread-pool/”, “description” => “Returns cluster-wide thread pool statistics per node.nBy default the active, queue and rejected statistics are returned for all thread pools.”.
-
#clear_scroll(params = {}) ⇒ Object
clear_scroll => “opensearch.org/docs/latest/api-reference/scroll/”, “description” => “Explicitly clears the search context for a scroll.”.
-
#cluster_allocation_explain(params = {}) ⇒ Object
cluster.allocation_explain => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-allocation/”, “description” => “Provides explanations for shard allocations in the cluster.”.
-
#cluster_delete_component_template(params = {}) ⇒ Object
cluster.delete_component_template => “opensearch.org/docs/latest/im-plugin/index-templates/#create-a-component-template”, “description” => “Deletes a component template”.
-
#cluster_delete_decommission_awareness(params = {}) ⇒ Object
cluster.delete_decommission_awareness => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/”, “description” => “Delete any existing decommission.”.
-
#cluster_delete_voting_config_exclusions(params = {}) ⇒ Object
cluster.delete_voting_config_exclusions => “www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html”, “description” => “Clears cluster voting config exclusions.”.
-
#cluster_delete_weighted_routing(params = {}) ⇒ Object
cluster.delete_weighted_routing => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness”, “description” => “Delete weighted shard routing weights”.
-
#cluster_exists_component_template(params = {}) ⇒ Object
(also: #cluster_exists_component_template?)
cluster.exists_component_template => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html”, “description” => “Returns information about whether a particular component template exist”.
-
#cluster_get_component_template(params = {}) ⇒ Object
cluster.get_component_template => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html”, “description” => “Returns one or more component templates”.
-
#cluster_get_decommission_awareness(params = {}) ⇒ Object
cluster.get_decommission_awareness => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/”, “description” => “Get details and status of decommissioned attribute”.
-
#cluster_get_settings(params = {}) ⇒ Object
cluster.get_settings => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/”, “description” => “Returns cluster settings.”.
-
#cluster_get_weighted_routing(params = {}) ⇒ Object
cluster.get_weighted_routing => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/”, “description” => “Fetches weighted shard routing weights”.
-
#cluster_health(params = {}) ⇒ Object
cluster.health => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/”, “description” => “Returns basic information about the health of the cluster.”.
-
#cluster_pending_tasks(params = {}) ⇒ Object
cluster.pending_tasks => “www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html”, “description” => “Returns a list of any cluster-level changes (e.g. create index, update mapping,nallocate or fail shard) which have not yet been executed.”.
-
#cluster_post_voting_config_exclusions(params = {}) ⇒ Object
cluster.post_voting_config_exclusions => “www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html”, “description” => “Updates the cluster voting config exclusions by node ids or node names.”.
-
#cluster_put_component_template(params = {}) ⇒ Object
cluster.put_component_template => “opensearch.org/docs/latest/im-plugin/index-templates/#create-a-component-template”, “description” => “Creates or updates a component template”.
-
#cluster_put_decommission_awareness(params = {}) ⇒ Object
cluster.put_decommission_awareness => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/”, “description” => “Decommissions an awareness attribute”.
-
#cluster_put_settings(params = {}) ⇒ Object
cluster.put_settings => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/”, “description” => “Updates the cluster settings.”.
-
#cluster_put_weighted_routing(params = {}) ⇒ Object
cluster.put_weighted_routing => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness”, “description” => “Updates weighted shard routing weights”.
-
#cluster_remote_info(params = {}) ⇒ Object
cluster.remote_info => “opensearch.org/docs/latest/api-reference/remote-info/”, “description” => “Returns the information about configured remote clusters.”.
-
#cluster_reroute(params = {}) ⇒ Object
cluster.reroute => “www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html”, “description” => “Allows to manually change the allocation of individual shards in the cluster.”.
-
#cluster_state(params = {}) ⇒ Object
cluster.state => “opensearch.org/docs/latest/api-reference/count/”, “description” => “Returns a comprehensive information about the state of the cluster.”.
-
#cluster_stats(params = {}) ⇒ Object
cluster.stats => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/”, “description” => “Returns high-level overview of cluster statistics.”.
- #common_params ⇒ Object
-
#count(params = {}) ⇒ Object
count => “opensearch.org/docs/latest/api-reference/count/”, “description” => “Returns number of documents matching a query.”.
-
#create(params = {}) ⇒ Object
create => “opensearch.org/docs/latest/api-reference/document-apis/index-document/”, “description” => “Creates a new document in the index.nnReturns a 409 response when a document with a same ID already exists in the index.”.
-
#create_pit(params = {}) ⇒ Object
create_pit => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Creates point in time context.”.
-
#dangling_indices_delete_dangling_index(params = {}) ⇒ Object
dangling_indices.delete_dangling_index => “opensearch.org/docs/latest/api-reference/index-apis/dangling-index/”, “description” => “Deletes the specified dangling index”.
-
#dangling_indices_import_dangling_index(params = {}) ⇒ Object
dangling_indices.import_dangling_index => “opensearch.org/docs/latest/api-reference/index-apis/dangling-index/”, “description” => “Imports the specified dangling index”.
-
#dangling_indices_list_dangling_indices(params = {}) ⇒ Object
dangling_indices.list_dangling_indices => “opensearch.org/docs/latest/api-reference/index-apis/dangling-index/”, “description” => “Returns all dangling indices.”.
-
#delete(params = {}) ⇒ Object
delete => “opensearch.org/docs/latest/api-reference/document-apis/delete-document/”, “description” => “Removes a document from the index.”.
-
#delete_all_pits(params = {}) ⇒ Object
delete_all_pits => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Deletes all active point in time searches.”.
-
#delete_by_query(params = {}) ⇒ Object
delete_by_query => “opensearch.org/docs/latest/api-reference/document-apis/delete-by-query/”, “description” => “Deletes documents matching the provided query.”.
-
#delete_by_query_rethrottle(params = {}) ⇒ Object
delete_by_query_rethrottle => “opensearch.org/docs/latest/api-reference/document-apis/delete-by-query/”, “description” => “Changes the number of requests per second for a particular Delete By Query operation.”.
-
#delete_pit(params = {}) ⇒ Object
delete_pit => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Deletes one or more point in time searches based on the IDs passed.”.
-
#delete_script(params = {}) ⇒ Object
delete_script => “opensearch.org/docs/latest/api-reference/script-apis/delete-script/”, “description” => “Deletes a script.”.
-
#exists(params = {}) ⇒ Object
(also: #exists?)
exists => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns information about whether a document exists in an index.”.
-
#exists_source(params = {}) ⇒ Object
(also: #exists_source?)
exists_source => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns information about whether a document source exists in an index.”.
-
#explain(params = {}) ⇒ Object
explain => “opensearch.org/docs/latest/api-reference/explain/”, “description” => “Returns information about why a specific matches (or doesn’t match) a query.”.
-
#field_caps(params = {}) ⇒ Object
field_caps => “www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html”, “description” => “Returns the information about the capabilities of fields among multiple indices.”.
-
#get(params = {}) ⇒ Object
get => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns a document.”.
-
#get_all_pits(params = {}) ⇒ Object
get_all_pits => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Lists all active point in time searches.”.
-
#get_script(params = {}) ⇒ Object
get_script => “www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html”, “description” => “Returns a script.”.
-
#get_script_context(params = {}) ⇒ Object
get_script_context => “opensearch.org/docs/latest/api-reference/script-apis/get-script-language/”, “description” => “Returns all script contexts.”.
-
#get_script_languages(params = {}) ⇒ Object
get_script_languages => “opensearch.org/docs/latest/api-reference/script-apis/get-script-language/”, “description” => “Returns available script types, languages and contexts”.
-
#get_source(params = {}) ⇒ Object
get_source => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns the source of a document.”.
-
#index(params = {}) ⇒ Object
index => “opensearch.org/docs/latest/api-reference/document-apis/index-document/”, “description” => “Creates or updates a document in an index.”.
-
#indices_add_block(params = {}) ⇒ Object
indices.add_block => “www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html”, “description” => “Adds a block to an index.”.
-
#indices_analyze(params = {}) ⇒ Object
indices.analyze => “opensearch.org/docs/latest/api-reference/analyze-apis/”, “description” => “Performs the analysis process on a text and return the tokens breakdown of the text.”.
-
#indices_clear_cache(params = {}) ⇒ Object
indices.clear_cache => “opensearch.org/docs/latest/api-reference/index-apis/clear-index-cache/”, “description” => “Clears all or specific caches for one or more indices.”.
-
#indices_clone(params = {}) ⇒ Object
indices.clone => “opensearch.org/docs/latest/api-reference/index-apis/clone/”, “description” => “Clones an index”.
-
#indices_close(params = {}) ⇒ Object
indices.close => “opensearch.org/docs/latest/api-reference/index-apis/close-index/”, “description” => “Closes an index.”.
-
#indices_create(params = {}) ⇒ Object
indices.create => “opensearch.org/docs/latest/api-reference/index-apis/create-index/”, “description” => “Creates an index with optional settings and mappings.”.
-
#indices_create_data_stream(params = {}) ⇒ Object
indices.create_data_stream => “www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html”, “description” => “Creates or updates a data stream”.
-
#indices_data_streams_stats(params = {}) ⇒ Object
indices.data_streams_stats => “opensearch.org/docs/latest/im-plugin/data-streams/”, “description” => “Provides statistics on operations happening in a data stream.”.
-
#indices_delete(params = {}) ⇒ Object
indices.delete => “opensearch.org/docs/latest/api-reference/index-apis/delete-index/”, “description” => “Deletes an index.”.
-
#indices_delete_alias(params = {}) ⇒ Object
indices.delete_alias => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html”, “description” => “Deletes an alias.”.
-
#indices_delete_data_stream(params = {}) ⇒ Object
indices.delete_data_stream => “opensearch.org/docs/latest/im-plugin/data-streams/”, “description” => “Deletes a data stream.”.
-
#indices_delete_index_template(params = {}) ⇒ Object
indices.delete_index_template => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html”, “description” => “Deletes an index template.”.
-
#indices_delete_template(params = {}) ⇒ Object
indices.delete_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Deletes an index template.”.
-
#indices_exists(params = {}) ⇒ Object
(also: #indices_exists?)
indices.exists => “opensearch.org/docs/latest/api-reference/index-apis/exists/”, “description” => “Returns information about whether a particular index exists.”.
-
#indices_exists_alias(params = {}) ⇒ Object
(also: #indices_exists_alias?)
indices.exists_alias => “opensearch.org/docs/latest/api-reference/index-apis/alias/”, “description” => “Returns information about whether a particular alias exists.”.
-
#indices_exists_index_template(params = {}) ⇒ Object
(also: #indices_exists_index_template?)
indices.exists_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns information about whether a particular index template exists.”.
-
#indices_exists_template(params = {}) ⇒ Object
(also: #indices_exists_template?)
indices.exists_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns information about whether a particular index template exists.”.
-
#indices_flush(params = {}) ⇒ Object
indices.flush => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html”, “description” => “Performs the flush operation on one or more indices.”.
-
#indices_forcemerge(params = {}) ⇒ Object
indices.forcemerge => “opensearch.org/docs/latest/api-reference/index-apis/force-merge/”, “description” => “Performs the force merge operation on one or more indices.”.
-
#indices_get(params = {}) ⇒ Object
indices.get => “opensearch.org/docs/latest/api-reference/index-apis/get-index/”, “description” => “Returns information about one or more indices.”.
-
#indices_get_alias(params = {}) ⇒ Object
indices.get_alias => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html”, “description” => “Returns an alias.”.
-
#indices_get_data_stream(params = {}) ⇒ Object
indices.get_data_stream => “opensearch.org/docs/latest/im-plugin/data-streams/”, “description” => “Returns data streams.”.
-
#indices_get_field_mapping(params = {}) ⇒ Object
indices.get_field_mapping => “opensearch.org/docs/latest/api-reference/index-apis/put-mapping/”, “description” => “Returns mapping for one or more fields.”.
-
#indices_get_index_template(params = {}) ⇒ Object
indices.get_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns an index template.”.
-
#indices_get_mapping(params = {}) ⇒ Object
indices.get_mapping => “opensearch.org/docs/latest/api-reference/index-apis/put-mapping/”, “description” => “Returns mappings for one or more indices.”.
-
#indices_get_settings(params = {}) ⇒ Object
indices.get_settings => “opensearch.org/docs/latest/api-reference/index-apis/get-settings/”, “description” => “Returns settings for one or more indices.”.
-
#indices_get_template(params = {}) ⇒ Object
indices.get_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns an index template.”.
-
#indices_get_upgrade(params = {}) ⇒ Object
indices.get_upgrade => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html”, “description” => “The _upgrade API is no longer useful and will be removed.”.
-
#indices_open(params = {}) ⇒ Object
indices.open => “opensearch.org/docs/latest/api-reference/index-apis/open-index/”, “description” => “Opens an index.”.
-
#indices_put_alias(params = {}) ⇒ Object
indices.put_alias => “opensearch.org/docs/latest/api-reference/index-apis/update-alias/”, “description” => “Creates or updates an alias.”.
-
#indices_put_index_template(params = {}) ⇒ Object
indices.put_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Creates or updates an index template.”.
-
#indices_put_mapping(params = {}) ⇒ Object
indices.put_mapping => “opensearch.org/docs/latest/api-reference/index-apis/put-mapping/”, “description” => “Updates the index mappings.”.
-
#indices_put_settings(params = {}) ⇒ Object
indices.put_settings => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html”, “description” => “Updates the index settings.”.
-
#indices_put_template(params = {}) ⇒ Object
indices.put_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Creates or updates an index template.”.
-
#indices_recovery(params = {}) ⇒ Object
indices.recovery => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html”, “description” => “Returns information about ongoing index shard recoveries.”.
-
#indices_refresh(params = {}) ⇒ Object
indices.refresh => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html”, “description” => “Performs the refresh operation in one or more indices.”.
-
#indices_resolve_index(params = {}) ⇒ Object
indices.resolve_index => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html”, “description” => “Returns information about any matching indices, aliases, and data streams”.
-
#indices_rollover(params = {}) ⇒ Object
indices.rollover => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html”, “description” => “Updates an alias to point to a new index when the existing indexnis considered to be too large or too old.”.
-
#indices_segments(params = {}) ⇒ Object
indices.segments => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html”, “description” => “Provides low-level information about segments in a Lucene index.”.
-
#indices_shard_stores(params = {}) ⇒ Object
indices.shard_stores => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html”, “description” => “Provides store information for shard copies of indices.”.
-
#indices_shrink(params = {}) ⇒ Object
indices.shrink => “opensearch.org/docs/latest/api-reference/index-apis/shrink-index/”, “description” => “Allow to shrink an existing index into a new index with fewer primary shards.”.
-
#indices_simulate_index_template(params = {}) ⇒ Object
indices.simulate_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Simulate matching the given index name against the index templates in the system”.
-
#indices_simulate_template(params = {}) ⇒ Object
indices.simulate_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Simulate resolving the given template name or body”.
-
#indices_split(params = {}) ⇒ Object
indices.split => “opensearch.org/docs/latest/api-reference/index-apis/split/”, “description” => “Allows you to split an existing index into a new index with more primary shards.”.
-
#indices_stats(params = {}) ⇒ Object
indices.stats => “opensearch.org/docs/latest/api-reference/index-apis/stats/”, “description” => “Provides statistics on operations happening in an index.”.
-
#indices_update_aliases(params = {}) ⇒ Object
indices.update_aliases => “opensearch.org/docs/latest/api-reference/index-apis/alias/”, “description” => “Updates index aliases.”.
-
#indices_upgrade(params = {}) ⇒ Object
indices.upgrade => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html”, “description” => “The _upgrade API is no longer useful and will be removed.”.
-
#indices_validate_query(params = {}) ⇒ Object
indices.validate_query => “www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html”, “description” => “Allows a user to validate a potentially expensive query without executing it.”.
-
#info(params = {}) ⇒ Object
info => “www.elastic.co/guide/en/elasticsearch/reference/current/index.html”, “description” => “Returns basic information about the cluster.”.
-
#ingest_delete_pipeline(params = {}) ⇒ Object
ingest.delete_pipeline => “opensearch.org/docs/latest/ingest-pipelines/delete-ingest/”, “description” => “Deletes a pipeline.”.
-
#ingest_get_pipeline(params = {}) ⇒ Object
ingest.get_pipeline => “opensearch.org/docs/latest/ingest-pipelines/get-ingest/”, “description” => “Returns a pipeline.”.
-
#ingest_processor_grok(params = {}) ⇒ Object
ingest.processor_grok => “www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get”, “description” => “Returns a list of the built-in patterns.”.
-
#ingest_put_pipeline(params = {}) ⇒ Object
ingest.put_pipeline => “opensearch.org/docs/latest/ingest-pipelines/create-ingest/”, “description” => “Creates or updates a pipeline.”.
-
#ingest_simulate(params = {}) ⇒ Object
ingest.simulate => “opensearch.org/docs/latest/ingest-pipelines/simulate-ingest/”, “description” => “Allows to simulate a pipeline with example documents.”.
-
#mget(params = {}) ⇒ Object
mget => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html”, “description” => “Allows to get multiple documents in one request.”.
-
#msearch(params = {}) ⇒ Object
msearch => “opensearch.org/docs/latest/api-reference/multi-search/”, “description” => “Allows to execute several search operations in one request.”.
-
#msearch_template(params = {}) ⇒ Object
msearch_template => “opensearch.org/docs/latest/api-reference/search-template/”, “description” => “Allows to execute several search template operations in one request.”.
-
#mtermvectors(params = {}) ⇒ Object
mtermvectors => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html”, “description” => “Returns multiple termvectors in one request.”.
-
#nodes_hot_threads(params = {}) ⇒ Object
nodes.hot_threads => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-hot-threads/”, “description” => “Returns information about hot threads on each node in the cluster.”.
-
#nodes_info(params = {}) ⇒ Object
nodes.info => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-info/”, “description” => “Returns information about nodes in the cluster.”.
-
#nodes_reload_secure_settings(params = {}) ⇒ Object
nodes.reload_secure_settings => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-reload-secure/”, “description” => “Reloads secure settings.”.
-
#nodes_stats(params = {}) ⇒ Object
nodes.stats => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-stats/”, “description” => “Returns statistical information about nodes in the cluster.”.
-
#nodes_usage(params = {}) ⇒ Object
nodes.usage => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-usage/”, “description” => “Returns low-level information about REST actions usage on nodes.”.
-
#ping(params = {}) ⇒ Object
(also: #ping?)
ping => “www.elastic.co/guide/en/elasticsearch/reference/current/index.html”, “description” => “Returns whether the cluster is running.”.
-
#put_script(params = {}) ⇒ Object
put_script => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-usage/”, “description” => “Creates or updates a script.”.
-
#rank_eval(params = {}) ⇒ Object
rank_eval => “opensearch.org/docs/latest/api-reference/rank-eval/”, “description” => “Allows to evaluate the quality of ranked search results over a set of typical search queries”.
-
#reindex(params = {}) ⇒ Object
reindex => “opensearch.org/docs/latest/im-plugin/reindex-data/”, “description” => “Allows to copy documents from one index to another, optionally filtering the sourcendocuments by a query, changing the destination index settings, or fetching thendocuments from a remote cluster.”.
-
#reindex_rethrottle(params = {}) ⇒ Object
reindex_rethrottle => “opensearch.org/docs/latest/im-plugin/reindex-data/”, “description” => “Changes the number of requests per second for a particular Reindex operation.”.
-
#remote_store_restore(params = {}) ⇒ Object
remote_store.restore => “opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/remote-store/index/#restoring-from-a-backup”, “description” => “Restores from remote store.”.
-
#remote_store_stats(params = {}) ⇒ Object
remote_store.stats => “opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/remote-store/remote-store-stats-api/”, “description” => “Stats for remote store.”.
-
#render_search_template(params = {}) ⇒ Object
render_search_template => “opensearch.org/docs/latest/api-reference/search-template/”, “description” => “Allows to use the Mustache language to pre-render a search definition.”.
-
#scripts_painless_execute(params = {}) ⇒ Object
scripts_painless_execute => “opensearch.org/docs/latest/api-reference/script-apis/exec-stored-script/”, “description” => “Allows an arbitrary script to be executed and a result to be returned”.
-
#scroll(params = {}) ⇒ Object
scroll => “opensearch.org/docs/latest/api-reference/scroll/”, “description” => “Allows to retrieve a large numbers of results from a single search request.”.
-
#search(params = {}) ⇒ Object
search => “opensearch.org/docs/latest/api-reference/search/”, “description” => “Returns results matching a query.”.
-
#search_pipeline_delete(params = {}) ⇒ Object
search_pipeline.delete => “Deletes a search pipeline.”, “url” => “opensearch.org/docs/latest/search-plugins/search-pipelines/index/”.
-
#search_pipeline_get(params = {}) ⇒ Object
search_pipeline.get => “Returns a search pipeline”, “url” => “opensearch.org/docs/latest/search-plugins/search-pipelines/retrieving-search-pipeline/”.
-
#search_pipeline_put(params = {}) ⇒ Object
search_pipeline.put => “Creates or updates a search pipeline.”, “url” => “opensearch.org/docs/latest/search-plugins/search-pipelines/creating-search-pipeline/”.
-
#search_shards(params = {}) ⇒ Object
search_shards => “www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html”, “description” => “Returns information about the indices and shards that a search request would be executed against.”.
-
#search_template(params = {}) ⇒ Object
search_template => “opensearch.org/docs/latest/api-reference/search-template/”, “description” => “Allows to use the Mustache language to pre-render a search definition.”.
-
#snapshot_cleanup_repository(params = {}) ⇒ Object
snapshot.cleanup_repository => “opensearch.org/docs/latest/api-reference/snapshots/index/”, “description” => “Removes stale data from repository.”.
-
#snapshot_clone(params = {}) ⇒ Object
snapshot.clone => “opensearch.org/docs/latest/api-reference/snapshots/index/”, “description” => “Clones indices from one snapshot into another snapshot in the same repository.”.
-
#snapshot_create(params = {}) ⇒ Object
snapshot.create => “opensearch.org/docs/latest/api-reference/snapshots/create-snapshot/”, “description” => “Creates a snapshot in a repository.”.
-
#snapshot_create_repository(params = {}) ⇒ Object
snapshot.create_repository => “opensearch.org/docs/latest/api-reference/snapshots/create-repository/”, “description” => “Creates a repository.”.
-
#snapshot_delete(params = {}) ⇒ Object
snapshot.delete => “opensearch.org/docs/latest/api-reference/snapshots/delete-snapshot/”, “description” => “Deletes a snapshot.”.
-
#snapshot_delete_repository(params = {}) ⇒ Object
snapshot.delete_repository => “opensearch.org/docs/latest/api-reference/snapshots/delete-snapshot-repository/”, “description” => “Deletes a repository.”.
-
#snapshot_get(params = {}) ⇒ Object
snapshot.get => “opensearch.org/docs/latest/api-reference/snapshots/get-snapshot/”, “description” => “Returns information about a snapshot.”.
-
#snapshot_get_repository(params = {}) ⇒ Object
snapshot.get_repository => “opensearch.org/docs/latest/api-reference/snapshots/get-snapshot-repository/”, “description” => “Returns information about a repository.”.
-
#snapshot_restore(params = {}) ⇒ Object
snapshot.restore => “opensearch.org/docs/latest/api-reference/snapshots/restore-snapshot/”, “description” => “Restores a snapshot.”.
-
#snapshot_status(params = {}) ⇒ Object
snapshot.status => “opensearch.org/docs/latest/api-reference/snapshots/get-snapshot-status/”, “description” => “Returns information about the status of a snapshot.”.
-
#snapshot_verify_repository(params = {}) ⇒ Object
snapshot.verify_repository => “opensearch.org/docs/latest/api-reference/snapshots/verify-snapshot-repository/”, “description” => “Verifies a repository.”.
-
#tasks_cancel(params = {}) ⇒ Object
tasks.cancel => “opensearch.org/docs/latest/api-reference/tasks/”, “description” => “Cancels a task, if it can be cancelled through an API.”.
-
#tasks_get(params = {}) ⇒ Object
tasks.get => “opensearch.org/docs/latest/api-reference/tasks/”, “description” => “Returns information about a task.”.
-
#tasks_list(params = {}) ⇒ Object
tasks.list => “opensearch.org/docs/latest/api-reference/tasks/”, “description” => “Returns a list of tasks.”.
-
#termvectors(params = {}) ⇒ Object
termvectors => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html”, “description” => “Returns information and statistics about terms in the fields of a particular document.”.
-
#update(params = {}) ⇒ Object
update => “opensearch.org/docs/latest/api-reference/document-apis/update-document/”, “description” => “Updates a document with a script or partial document.”.
-
#update_by_query(params = {}) ⇒ Object
update_by_query => “opensearch.org/docs/latest/api-reference/document-apis/update-by-query/”, “description” => “Performs an update on every document in the index without changing the source,nfor example to pick up a mapping change.”.
-
#update_by_query_rethrottle(params = {}) ⇒ Object
update_by_query_rethrottle => “opensearch.org/docs/latest/api-reference/document-apis/update-by-query/”, “description” => “Changes the number of requests per second for a particular Update By Query operation.”.
Instance Method Details
#bulk(params = {}) ⇒ Object
bulk => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html”, “description” => “Allows to perform multiple index/update/delete operations in a single request.”
14 15 16 17 18 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 14 def bulk(params = {}) api_name = 'bulk' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_bulk", "methods" => ["POST", "PUT"]}, {"path" => "/{index}/_bulk", "methods" => ["POST", "PUT"]}]}, "body" => {"required" => true}, "params" => {"wait_for_active_shards" => {"type" => "string"}, "refresh" => {"type" => "enum"}, "routing" => {"type" => "string"}, "timeout" => {"type" => "time"}, "type" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "pipeline" => {"type" => "string"}, "require_alias" => {"type" => "boolean"}, "batch_size" => {"type" => "int"}}} request(api_name, api_spec, params, [:index]) end |
#cat_aliases(params = {}) ⇒ Object
cat.aliases => “opensearch.org/docs/latest/api-reference/cat/cat-aliases/”, “description” => “Shows information about currently configured aliases to indices including filter and routing infos.”
23 24 25 26 27 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 23 def cat_aliases(params = {}) api_name = 'cat.aliases' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/aliases", "methods" => ["GET"]}, {"path" => "/_cat/aliases/{name}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:name]) end |
#cat_allocation(params = {}) ⇒ Object
cat.allocation => “opensearch.org/docs/latest/api-reference/cat/cat-allocation/”, “description” => “Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.”
32 33 34 35 36 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 32 def cat_allocation(params = {}) api_name = 'cat.allocation' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/allocation", "methods" => ["GET"]}, {"path" => "/_cat/allocation/{node_id}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "bytes" => {"type" => "enum"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:node_id]) end |
#cat_cluster_manager(params = {}) ⇒ Object
cat.cluster_manager => “opensearch.org/docs/latest/api-reference/cat/cat-cluster_manager/”, “description” => “Returns information about the cluster-manager node.”
41 42 43 44 45 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 41 def cat_cluster_manager(params = {}) api_name = 'cat.cluster_manager' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/cluster_manager", "methods" => ["GET"]}, {"path" => "/_cat/master", "methods" => ["GET"], "deprecated" => true}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_count(params = {}) ⇒ Object
cat.count => “opensearch.org/docs/latest/api-reference/cat/cat-count/”, “description” => “Provides quick access to the document count of the entire cluster, or individual indices.”
50 51 52 53 54 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 50 def cat_count(params = {}) api_name = 'cat.count' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/count", "methods" => ["GET"]}, {"path" => "/_cat/count/{index}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#cat_fielddata(params = {}) ⇒ Object
cat.fielddata => “opensearch.org/docs/latest/api-reference/cat/cat-field-data/”, “description” => “Shows how much heap memory is currently being used by fielddata on every data node in the cluster.”
59 60 61 62 63 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 59 def cat_fielddata(params = {}) api_name = 'cat.fielddata' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/fielddata", "methods" => ["GET"]}, {"path" => "/_cat/fielddata/{fields}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "bytes" => {"type" => "enum"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}, "fields" => {"type" => "list"}}} request(api_name, api_spec, params, [:fields]) end |
#cat_health(params = {}) ⇒ Object
cat.health => “www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html”, “description” => “Returns a concise representation of the cluster health.”
68 69 70 71 72 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 68 def cat_health(params = {}) api_name = 'cat.health' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/health", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "ts" => {"type" => "boolean"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_help(params = {}) ⇒ Object
cat.help => “opensearch.org/docs/latest/api-reference/cat/index/”, “description” => “Returns help for the Cat APIs.”
77 78 79 80 81 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 77 def cat_help(params = {}) api_name = 'cat.help' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat", "methods" => ["GET"]}]}, "params" => {"help" => {"type" => "boolean"}, "s" => {"type" => "list"}}} request(api_name, api_spec, params, []) end |
#cat_indices(params = {}) ⇒ Object
cat.indices => “opensearch.org/docs/latest/api-reference/cat/cat-indices/”, “description” => “Returns information about indices: number of primaries and replicas, document counts, disk size, …”
86 87 88 89 90 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 86 def cat_indices(params = {}) api_name = 'cat.indices' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/indices", "methods" => ["GET"]}, {"path" => "/_cat/indices/{index}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "bytes" => {"type" => "enum"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "health" => {"type" => "enum"}, "help" => {"type" => "boolean"}, "pri" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}, "include_unloaded_segments" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#cat_nodeattrs(params = {}) ⇒ Object
cat.nodeattrs => “opensearch.org/docs/latest/api-reference/cat/cat-nodeattrs/”, “description” => “Returns information about custom node attributes.”
95 96 97 98 99 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 95 def cat_nodeattrs(params = {}) api_name = 'cat.nodeattrs' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/nodeattrs", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_nodes(params = {}) ⇒ Object
cat.nodes => “opensearch.org/docs/latest/api-reference/cat/cat-nodes/”, “description” => “Returns basic statistics about performance of cluster nodes.”
104 105 106 107 108 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 104 def cat_nodes(params = {}) api_name = 'cat.nodes' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/nodes", "methods" => ["GET"]}]}, "params" => {"bytes" => {"type" => "enum"}, "format" => {"type" => "string"}, "full_id" => {"type" => "boolean"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_pending_tasks(params = {}) ⇒ Object
cat.pending_tasks => “opensearch.org/docs/latest/api-reference/cat/cat-pending-tasks/”, “description” => “Returns a concise representation of the cluster pending tasks.”
113 114 115 116 117 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 113 def cat_pending_tasks(params = {}) api_name = 'cat.pending_tasks' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/pending_tasks", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_plugins(params = {}) ⇒ Object
cat.plugins => “opensearch.org/docs/latest/api-reference/cat/cat-plugins/”, “description” => “Returns information about installed plugins across nodes node.”
122 123 124 125 126 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 122 def cat_plugins(params = {}) api_name = 'cat.plugins' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/plugins", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_recovery(params = {}) ⇒ Object
cat.recovery => “opensearch.org/docs/latest/api-reference/cat/cat-recovery/”, “description” => “Returns information about index shard recoveries, both on-going completed.”
131 132 133 134 135 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 131 def cat_recovery(params = {}) api_name = 'cat.recovery' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/recovery", "methods" => ["GET"]}, {"path" => "/_cat/recovery/{index}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "active_only" => {"type" => "boolean"}, "bytes" => {"type" => "enum"}, "detailed" => {"type" => "boolean"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "index" => {"type" => "list"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#cat_repositories(params = {}) ⇒ Object
cat.repositories => “opensearch.org/docs/latest/api-reference/cat/cat-repositories/”, “description” => “Returns information about snapshot repositories registered in the cluster.”
140 141 142 143 144 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 140 def cat_repositories(params = {}) api_name = 'cat.repositories' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/repositories", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_segment_replication(params = {}) ⇒ Object
cat.segment_replication => “opensearch.org/docs/latest/api-reference/cat/cat-segment-replication/”, “description” => “Returns information about both on-going and latest completed Segment Replication events”
149 150 151 152 153 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 149 def cat_segment_replication(params = {}) api_name = 'cat.segment_replication' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/segment_replication", "methods" => ["GET"]}, {"path" => "/_cat/segment_replication/{index}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "active_only" => {"type" => "boolean"}, "bytes" => {"type" => "enum"}, "detailed" => {"type" => "boolean"}, "shards" => {"type" => "list"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "index" => {"type" => "list"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#cat_segments(params = {}) ⇒ Object
cat.segments => “opensearch.org/docs/latest/api-reference/cat/cat-segments/”, “description” => “Provides low-level information about the segments in the shards of an index.”
158 159 160 161 162 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 158 def cat_segments(params = {}) api_name = 'cat.segments' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/segments", "methods" => ["GET"]}, {"path" => "/_cat/segments/{index}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "bytes" => {"type" => "enum"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#cat_shards(params = {}) ⇒ Object
cat.shards => “opensearch.org/docs/latest/api-reference/cat/cat-shards/”, “description” => “Provides a detailed view of shard allocation on nodes.”
167 168 169 170 171 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 167 def cat_shards(params = {}) api_name = 'cat.shards' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/shards", "methods" => ["GET"]}, {"path" => "/_cat/shards/{index}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "bytes" => {"type" => "enum"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#cat_snapshots(params = {}) ⇒ Object
cat.snapshots => “opensearch.org/docs/latest/api-reference/cat/cat-snapshots/”, “description” => “Returns all snapshots in a specific repository.”
176 177 178 179 180 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 176 def cat_snapshots(params = {}) api_name = 'cat.snapshots' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/snapshots", "methods" => ["GET"]}, {"path" => "/_cat/snapshots/{repository}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "ignore_unavailable" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:repository]) end |
#cat_tasks(params = {}) ⇒ Object
cat.tasks => “opensearch.org/docs/latest/api-reference/cat/cat-tasks/”, “description” => “Returns information about the tasks currently executing on one or more nodes in the cluster.”
185 186 187 188 189 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 185 def cat_tasks(params = {}) api_name = 'cat.tasks' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/tasks", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "nodes" => {"type" => "list"}, "actions" => {"type" => "list"}, "detailed" => {"type" => "boolean"}, "parent_task_id" => {"type" => "string"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "time" => {"type" => "enum"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cat_templates(params = {}) ⇒ Object
cat.templates => “opensearch.org/docs/latest/api-reference/cat/cat-templates/”, “description” => “Returns information about existing templates.”
194 195 196 197 198 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 194 def cat_templates(params = {}) api_name = 'cat.templates' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/templates", "methods" => ["GET"]}, {"path" => "/_cat/templates/{name}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#cat_thread_pool(params = {}) ⇒ Object
cat.thread_pool => “opensearch.org/docs/latest/api-reference/cat/cat-thread-pool/”, “description” => “Returns cluster-wide thread pool statistics per node.nBy default the active, queue and rejected statistics are returned for all thread pools.”
203 204 205 206 207 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 203 def cat_thread_pool(params = {}) api_name = 'cat.thread_pool' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cat/thread_pool", "methods" => ["GET"]}, {"path" => "/_cat/thread_pool/{thread_pool_patterns}", "methods" => ["GET"]}]}, "params" => {"format" => {"type" => "string"}, "size" => {"type" => "enum"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "h" => {"type" => "list"}, "help" => {"type" => "boolean"}, "s" => {"type" => "list"}, "v" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:thread_pool_patterns]) end |
#clear_scroll(params = {}) ⇒ Object
clear_scroll => “opensearch.org/docs/latest/api-reference/scroll/”, “description” => “Explicitly clears the search context for a scroll.”
212 213 214 215 216 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 212 def clear_scroll(params = {}) api_name = 'clear_scroll' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/scroll", "methods" => ["DELETE"]}, {"path" => "/_search/scroll/{scroll_id}", "methods" => ["DELETE"], "deprecated" => true}]}, "params" => {}} request(api_name, api_spec, params, [:scroll_id]) end |
#cluster_allocation_explain(params = {}) ⇒ Object
cluster.allocation_explain => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-allocation/”, “description” => “Provides explanations for shard allocations in the cluster.”
221 222 223 224 225 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 221 def cluster_allocation_explain(params = {}) api_name = 'cluster.allocation_explain' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/allocation/explain", "methods" => ["GET", "POST"]}]}, "params" => {"include_yes_decisions" => {"type" => "boolean"}, "include_disk_info" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cluster_delete_component_template(params = {}) ⇒ Object
cluster.delete_component_template => “opensearch.org/docs/latest/im-plugin/index-templates/#create-a-component-template”, “description” => “Deletes a component template”
230 231 232 233 234 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 230 def cluster_delete_component_template(params = {}) api_name = 'cluster.delete_component_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_component_template/{name}", "methods" => ["DELETE"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#cluster_delete_decommission_awareness(params = {}) ⇒ Object
cluster.delete_decommission_awareness => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/”, “description” => “Delete any existing decommission.”
239 240 241 242 243 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 239 def cluster_delete_decommission_awareness(params = {}) api_name = 'cluster.delete_decommission_awareness' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/decommission/awareness/", "methods" => ["DELETE"]}]}} request(api_name, api_spec, params, []) end |
#cluster_delete_voting_config_exclusions(params = {}) ⇒ Object
cluster.delete_voting_config_exclusions => “www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html”, “description” => “Clears cluster voting config exclusions.”
248 249 250 251 252 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 248 def cluster_delete_voting_config_exclusions(params = {}) api_name = 'cluster.delete_voting_config_exclusions' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/voting_config_exclusions", "methods" => ["DELETE"]}]}, "params" => {"wait_for_removal" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cluster_delete_weighted_routing(params = {}) ⇒ Object
cluster.delete_weighted_routing => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness”, “description” => “Delete weighted shard routing weights”
257 258 259 260 261 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 257 def cluster_delete_weighted_routing(params = {}) api_name = 'cluster.delete_weighted_routing' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/routing/awareness/weights", "methods" => ["DELETE"]}]}} request(api_name, api_spec, params, []) end |
#cluster_exists_component_template(params = {}) ⇒ Object Also known as: cluster_exists_component_template?
cluster.exists_component_template => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html”, “description” => “Returns information about whether a particular component template exist”
266 267 268 269 270 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 266 def cluster_exists_component_template(params = {}) api_name = 'cluster.exists_component_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_component_template/{name}", "methods" => ["HEAD"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#cluster_get_component_template(params = {}) ⇒ Object
cluster.get_component_template => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html”, “description” => “Returns one or more component templates”
276 277 278 279 280 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 276 def cluster_get_component_template(params = {}) api_name = 'cluster.get_component_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_component_template", "methods" => ["GET"]}, {"path" => "/_component_template/{name}", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#cluster_get_decommission_awareness(params = {}) ⇒ Object
cluster.get_decommission_awareness => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/”, “description” => “Get details and status of decommissioned attribute”
285 286 287 288 289 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 285 def cluster_get_decommission_awareness(params = {}) api_name = 'cluster.get_decommission_awareness' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/decommission/awareness/{awareness_attribute_name}/_status", "methods" => ["GET"]}]}} request(api_name, api_spec, params, [:awareness_attribute_name]) end |
#cluster_get_settings(params = {}) ⇒ Object
cluster.get_settings => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/”, “description” => “Returns cluster settings.”
294 295 296 297 298 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 294 def cluster_get_settings(params = {}) api_name = 'cluster.get_settings' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/settings", "methods" => ["GET"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}, "include_defaults" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#cluster_get_weighted_routing(params = {}) ⇒ Object
cluster.get_weighted_routing => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/”, “description” => “Fetches weighted shard routing weights”
303 304 305 306 307 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 303 def cluster_get_weighted_routing(params = {}) api_name = 'cluster.get_weighted_routing' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/routing/awareness/{attribute}/weights", "methods" => ["GET"]}]}} request(api_name, api_spec, params, [:attribute]) end |
#cluster_health(params = {}) ⇒ Object
cluster.health => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/”, “description” => “Returns basic information about the health of the cluster.”
312 313 314 315 316 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 312 def cluster_health(params = {}) api_name = 'cluster.health' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/health", "methods" => ["GET"]}, {"path" => "/_cluster/health/{index}", "methods" => ["GET"]}]}, "params" => {"expand_wildcards" => {"type" => "enum"}, "level" => {"type" => "enum"}, "local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "wait_for_nodes" => {"type" => "string"}, "wait_for_events" => {"type" => "enum"}, "wait_for_no_relocating_shards" => {"type" => "boolean"}, "wait_for_no_initializing_shards" => {"type" => "boolean"}, "wait_for_status" => {"type" => "enum"}, "awareness_attribute" => {"type" => "string"}, "ensure_node_weighed_in" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#cluster_pending_tasks(params = {}) ⇒ Object
cluster.pending_tasks => “www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html”, “description” => “Returns a list of any cluster-level changes (e.g. create index, update mapping,nallocate or fail shard) which have not yet been executed.”
321 322 323 324 325 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 321 def cluster_pending_tasks(params = {}) api_name = 'cluster.pending_tasks' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/pending_tasks", "methods" => ["GET"]}]}, "params" => {"local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, []) end |
#cluster_post_voting_config_exclusions(params = {}) ⇒ Object
cluster.post_voting_config_exclusions => “www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html”, “description” => “Updates the cluster voting config exclusions by node ids or node names.”
330 331 332 333 334 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 330 def cluster_post_voting_config_exclusions(params = {}) api_name = 'cluster.post_voting_config_exclusions' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/voting_config_exclusions", "methods" => ["POST"]}]}, "params" => {"node_ids" => {"type" => "string"}, "node_names" => {"type" => "string"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, []) end |
#cluster_put_component_template(params = {}) ⇒ Object
cluster.put_component_template => “opensearch.org/docs/latest/im-plugin/index-templates/#create-a-component-template”, “description” => “Creates or updates a component template”
339 340 341 342 343 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 339 def cluster_put_component_template(params = {}) api_name = 'cluster.put_component_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_component_template/{name}", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"create" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#cluster_put_decommission_awareness(params = {}) ⇒ Object
cluster.put_decommission_awareness => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/”, “description” => “Decommissions an awareness attribute”
348 349 350 351 352 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 348 def cluster_put_decommission_awareness(params = {}) api_name = 'cluster.put_decommission_awareness' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/decommission/awareness/{awareness_attribute_name}/{awareness_attribute_value}", "methods" => ["PUT"]}]}} request(api_name, api_spec, params, [:awareness_attribute_name, :awareness_attribute_value]) end |
#cluster_put_settings(params = {}) ⇒ Object
cluster.put_settings => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/”, “description” => “Updates the cluster settings.”
357 358 359 360 361 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 357 def cluster_put_settings(params = {}) api_name = 'cluster.put_settings' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/settings", "methods" => ["PUT"]}]}, "body" => {"required" => true}, "params" => {"flat_settings" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, []) end |
#cluster_put_weighted_routing(params = {}) ⇒ Object
cluster.put_weighted_routing => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness”, “description” => “Updates weighted shard routing weights”
366 367 368 369 370 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 366 def cluster_put_weighted_routing(params = {}) api_name = 'cluster.put_weighted_routing' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/routing/awareness/{attribute}/weights", "methods" => ["PUT"]}]}} request(api_name, api_spec, params, [:attribute]) end |
#cluster_remote_info(params = {}) ⇒ Object
cluster.remote_info => “opensearch.org/docs/latest/api-reference/remote-info/”, “description” => “Returns the information about configured remote clusters.”
375 376 377 378 379 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 375 def cluster_remote_info(params = {}) api_name = 'cluster.remote_info' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_remote/info", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#cluster_reroute(params = {}) ⇒ Object
cluster.reroute => “www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html”, “description” => “Allows to manually change the allocation of individual shards in the cluster.”
384 385 386 387 388 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 384 def cluster_reroute(params = {}) api_name = 'cluster.reroute' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/reroute", "methods" => ["POST"]}]}, "params" => {"dry_run" => {"type" => "boolean"}, "explain" => {"type" => "boolean"}, "retry_failed" => {"type" => "boolean"}, "metric" => {"type" => "list"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, []) end |
#cluster_state(params = {}) ⇒ Object
cluster.state => “opensearch.org/docs/latest/api-reference/count/”, “description” => “Returns a comprehensive information about the state of the cluster.”
393 394 395 396 397 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 393 def cluster_state(params = {}) api_name = 'cluster.state' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/state", "methods" => ["GET"]}, {"path" => "/_cluster/state/{metric}", "methods" => ["GET"]}, {"path" => "/_cluster/state/{metric}/{index}", "methods" => ["GET"]}]}, "params" => {"local" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "flat_settings" => {"type" => "boolean"}, "wait_for_metadata_version" => {"type" => "number"}, "wait_for_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:metric, :index]) end |
#cluster_stats(params = {}) ⇒ Object
cluster.stats => “opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/”, “description” => “Returns high-level overview of cluster statistics.”
402 403 404 405 406 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 402 def cluster_stats(params = {}) api_name = 'cluster.stats' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cluster/stats", "methods" => ["GET"]}, {"path" => "/_cluster/stats/nodes/{node_id}", "methods" => ["GET"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:node_id]) end |
#common_params ⇒ Object
7 8 9 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 7 def common_params @common_params ||= {"documentation" => {"description" => "Parameters that are accepted by all API endpoints.", "url" => "https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html"}, "params" => {"pretty" => {"type" => "boolean", "description" => "Pretty format the returned JSON response.", "default" => false}, "human" => {"type" => "boolean", "description" => "Return human readable values for statistics.", "default" => true}, "error_trace" => {"type" => "boolean", "description" => "Include the stack trace of returned errors.", "default" => false}, "source" => {"type" => "string", "description" => "The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests."}, "filter_path" => {"type" => "list", "description" => "A comma-separated list of filters used to reduce the response."}}} end |
#count(params = {}) ⇒ Object
count => “opensearch.org/docs/latest/api-reference/count/”, “description” => “Returns number of documents matching a query.”
411 412 413 414 415 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 411 def count(params = {}) api_name = 'count' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_count", "methods" => ["POST", "GET"]}, {"path" => "/{index}/_count", "methods" => ["POST", "GET"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "ignore_throttled" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "min_score" => {"type" => "number"}, "preference" => {"type" => "string"}, "routing" => {"type" => "list"}, "q" => {"type" => "string"}, "analyzer" => {"type" => "string"}, "analyze_wildcard" => {"type" => "boolean"}, "default_operator" => {"type" => "enum"}, "df" => {"type" => "string"}, "lenient" => {"type" => "boolean"}, "terminate_after" => {"type" => "number"}}} request(api_name, api_spec, params, [:index]) end |
#create(params = {}) ⇒ Object
create => “opensearch.org/docs/latest/api-reference/document-apis/index-document/”, “description” => “Creates a new document in the index.nnReturns a 409 response when a document with a same ID already exists in the index.”
420 421 422 423 424 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 420 def create(params = {}) api_name = 'create' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_create/{id}", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"wait_for_active_shards" => {"type" => "string"}, "refresh" => {"type" => "enum"}, "routing" => {"type" => "string"}, "timeout" => {"type" => "time"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}, "pipeline" => {"type" => "string"}}} request(api_name, api_spec, params, [:id, :index]) end |
#create_pit(params = {}) ⇒ Object
create_pit => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Creates point in time context.”
429 430 431 432 433 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 429 def create_pit(params = {}) api_name = 'create_pit' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_search/point_in_time", "methods" => ["POST"]}]}, "params" => {"allow_partial_pit_creation" => {"type" => "boolean"}, "keep_alive" => {"type" => "string"}, "preference" => {"type" => "string"}, "routing" => {"type" => "list"}}} request(api_name, api_spec, params, [:index]) end |
#dangling_indices_delete_dangling_index(params = {}) ⇒ Object
dangling_indices.delete_dangling_index => “opensearch.org/docs/latest/api-reference/index-apis/dangling-index/”, “description” => “Deletes the specified dangling index”
438 439 440 441 442 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 438 def dangling_indices_delete_dangling_index(params = {}) api_name = 'dangling_indices.delete_dangling_index' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_dangling/{index_uuid}", "methods" => ["DELETE"]}]}, "params" => {"accept_data_loss" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index_uuid]) end |
#dangling_indices_import_dangling_index(params = {}) ⇒ Object
dangling_indices.import_dangling_index => “opensearch.org/docs/latest/api-reference/index-apis/dangling-index/”, “description” => “Imports the specified dangling index”
447 448 449 450 451 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 447 def dangling_indices_import_dangling_index(params = {}) api_name = 'dangling_indices.import_dangling_index' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_dangling/{index_uuid}", "methods" => ["POST"]}]}, "params" => {"accept_data_loss" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index_uuid]) end |
#dangling_indices_list_dangling_indices(params = {}) ⇒ Object
dangling_indices.list_dangling_indices => “opensearch.org/docs/latest/api-reference/index-apis/dangling-index/”, “description” => “Returns all dangling indices.”
456 457 458 459 460 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 456 def dangling_indices_list_dangling_indices(params = {}) api_name = 'dangling_indices.list_dangling_indices' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_dangling", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#delete(params = {}) ⇒ Object
delete => “opensearch.org/docs/latest/api-reference/document-apis/delete-document/”, “description” => “Removes a document from the index.”
465 466 467 468 469 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 465 def delete(params = {}) api_name = 'delete' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_doc/{id}", "methods" => ["DELETE"]}]}, "params" => {"wait_for_active_shards" => {"type" => "string"}, "refresh" => {"type" => "enum"}, "routing" => {"type" => "string"}, "timeout" => {"type" => "time"}, "if_seq_no" => {"type" => "number"}, "if_primary_term" => {"type" => "number"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:id, :index]) end |
#delete_all_pits(params = {}) ⇒ Object
delete_all_pits => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Deletes all active point in time searches.”
474 475 476 477 478 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 474 def delete_all_pits(params = {}) api_name = 'delete_all_pits' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/point_in_time/_all", "methods" => ["DELETE"]}]}} request(api_name, api_spec, params, []) end |
#delete_by_query(params = {}) ⇒ Object
delete_by_query => “opensearch.org/docs/latest/api-reference/document-apis/delete-by-query/”, “description” => “Deletes documents matching the provided query.”
483 484 485 486 487 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 483 def delete_by_query(params = {}) api_name = 'delete_by_query' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_delete_by_query", "methods" => ["POST"]}]}, "body" => {"required" => true}, "params" => {"analyzer" => {"type" => "string"}, "analyze_wildcard" => {"type" => "boolean"}, "default_operator" => {"type" => "enum"}, "df" => {"type" => "string"}, "from" => {"type" => "number"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "conflicts" => {"type" => "enum"}, "expand_wildcards" => {"type" => "enum"}, "lenient" => {"type" => "boolean"}, "preference" => {"type" => "string"}, "q" => {"type" => "string"}, "routing" => {"type" => "list"}, "scroll" => {"type" => "time"}, "search_type" => {"type" => "enum"}, "search_timeout" => {"type" => "time"}, "size" => {"type" => "number"}, "max_docs" => {"type" => "number"}, "sort" => {"type" => "list"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "terminate_after" => {"type" => "number"}, "stats" => {"type" => "list"}, "version" => {"type" => "boolean"}, "request_cache" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "scroll_size" => {"type" => "number"}, "wait_for_completion" => {"type" => "boolean"}, "requests_per_second" => {"type" => "number"}, "slices" => {"type" => "number|string"}}} request(api_name, api_spec, params, [:index]) end |
#delete_by_query_rethrottle(params = {}) ⇒ Object
delete_by_query_rethrottle => “opensearch.org/docs/latest/api-reference/document-apis/delete-by-query/”, “description” => “Changes the number of requests per second for a particular Delete By Query operation.”
492 493 494 495 496 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 492 def delete_by_query_rethrottle(params = {}) api_name = 'delete_by_query_rethrottle' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_delete_by_query/{task_id}/_rethrottle", "methods" => ["POST"]}]}, "params" => {"requests_per_second" => {"type" => "number", "required" => true}}} request(api_name, api_spec, params, [:task_id]) end |
#delete_pit(params = {}) ⇒ Object
delete_pit => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Deletes one or more point in time searches based on the IDs passed.”
501 502 503 504 505 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 501 def delete_pit(params = {}) api_name = 'delete_pit' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/point_in_time", "methods" => ["DELETE"]}]}, "body" => {"required" => true}} request(api_name, api_spec, params, []) end |
#delete_script(params = {}) ⇒ Object
delete_script => “opensearch.org/docs/latest/api-reference/script-apis/delete-script/”, “description” => “Deletes a script.”
510 511 512 513 514 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 510 def delete_script(params = {}) api_name = 'delete_script' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_scripts/{id}", "methods" => ["DELETE"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#exists(params = {}) ⇒ Object Also known as: exists?
exists => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns information about whether a document exists in an index.”
519 520 521 522 523 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 519 def exists(params = {}) api_name = 'exists' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_doc/{id}", "methods" => ["HEAD"]}]}, "params" => {"stored_fields" => {"type" => "list"}, "preference" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "routing" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:id, :index]) end |
#exists_source(params = {}) ⇒ Object Also known as: exists_source?
exists_source => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns information about whether a document source exists in an index.”
529 530 531 532 533 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 529 def exists_source(params = {}) api_name = 'exists_source' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_source/{id}", "methods" => ["HEAD"]}]}, "params" => {"preference" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "routing" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:id, :index]) end |
#explain(params = {}) ⇒ Object
explain => “opensearch.org/docs/latest/api-reference/explain/”, “description” => “Returns information about why a specific matches (or doesn’t match) a query.”
539 540 541 542 543 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 539 def explain(params = {}) api_name = 'explain' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_explain/{id}", "methods" => ["GET", "POST"]}]}, "params" => {"analyze_wildcard" => {"type" => "boolean"}, "analyzer" => {"type" => "string"}, "default_operator" => {"type" => "enum"}, "df" => {"type" => "string"}, "stored_fields" => {"type" => "list"}, "lenient" => {"type" => "boolean"}, "preference" => {"type" => "string"}, "q" => {"type" => "string"}, "routing" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}}} request(api_name, api_spec, params, [:id, :index]) end |
#field_caps(params = {}) ⇒ Object
field_caps => “www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html”, “description” => “Returns the information about the capabilities of fields among multiple indices.”
548 549 550 551 552 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 548 def field_caps(params = {}) api_name = 'field_caps' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_field_caps", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_field_caps", "methods" => ["GET", "POST"]}]}, "params" => {"fields" => {"type" => "list"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "include_unmapped" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#get(params = {}) ⇒ Object
get => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns a document.”
557 558 559 560 561 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 557 def get(params = {}) api_name = 'get' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_doc/{id}", "methods" => ["GET"]}]}, "params" => {"stored_fields" => {"type" => "list"}, "preference" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "routing" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:id, :index]) end |
#get_all_pits(params = {}) ⇒ Object
get_all_pits => “opensearch.org/docs/latest/search-plugins/searching-data/point-in-time-api”, “description” => “Lists all active point in time searches.”
566 567 568 569 570 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 566 def get_all_pits(params = {}) api_name = 'get_all_pits' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/point_in_time/_all", "methods" => ["GET"]}]}} request(api_name, api_spec, params, []) end |
#get_script(params = {}) ⇒ Object
get_script => “www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html”, “description” => “Returns a script.”
575 576 577 578 579 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 575 def get_script(params = {}) api_name = 'get_script' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_scripts/{id}", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#get_script_context(params = {}) ⇒ Object
get_script_context => “opensearch.org/docs/latest/api-reference/script-apis/get-script-language/”, “description” => “Returns all script contexts.”
584 585 586 587 588 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 584 def get_script_context(params = {}) api_name = 'get_script_context' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_script_context", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#get_script_languages(params = {}) ⇒ Object
get_script_languages => “opensearch.org/docs/latest/api-reference/script-apis/get-script-language/”, “description” => “Returns available script types, languages and contexts”
593 594 595 596 597 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 593 def get_script_languages(params = {}) api_name = 'get_script_languages' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_script_language", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#get_source(params = {}) ⇒ Object
get_source => “opensearch.org/docs/latest/api-reference/document-apis/get-documents/”, “description” => “Returns the source of a document.”
602 603 604 605 606 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 602 def get_source(params = {}) api_name = 'get_source' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_source/{id}", "methods" => ["GET"]}]}, "params" => {"preference" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "routing" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:id, :index]) end |
#index(params = {}) ⇒ Object
index => “opensearch.org/docs/latest/api-reference/document-apis/index-document/”, “description” => “Creates or updates a document in an index.”
611 612 613 614 615 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 611 def index(params = {}) api_name = 'index' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_doc/{id}", "methods" => ["PUT", "POST"]}, {"path" => "/{index}/_doc", "methods" => ["POST"]}]}, "body" => {"required" => true}, "params" => {"wait_for_active_shards" => {"type" => "string"}, "op_type" => {"type" => "enum"}, "refresh" => {"type" => "enum"}, "routing" => {"type" => "string"}, "timeout" => {"type" => "time"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}, "if_seq_no" => {"type" => "number"}, "if_primary_term" => {"type" => "number"}, "pipeline" => {"type" => "string"}, "require_alias" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:id, :index]) end |
#indices_add_block(params = {}) ⇒ Object
indices.add_block => “www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html”, “description” => “Adds a block to an index.”
620 621 622 623 624 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 620 def indices_add_block(params = {}) api_name = 'indices.add_block' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_block/{block}", "methods" => ["PUT"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index, :block]) end |
#indices_analyze(params = {}) ⇒ Object
indices.analyze => “opensearch.org/docs/latest/api-reference/analyze-apis/”, “description” => “Performs the analysis process on a text and return the tokens breakdown of the text.”
629 630 631 632 633 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 629 def indices_analyze(params = {}) api_name = 'indices.analyze' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_analyze", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_analyze", "methods" => ["GET", "POST"]}]}, "params" => {"index" => {"type" => "string"}}} request(api_name, api_spec, params, [:index]) end |
#indices_clear_cache(params = {}) ⇒ Object
indices.clear_cache => “opensearch.org/docs/latest/api-reference/index-apis/clear-index-cache/”, “description” => “Clears all or specific caches for one or more indices.”
638 639 640 641 642 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 638 def indices_clear_cache(params = {}) api_name = 'indices.clear_cache' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_cache/clear", "methods" => ["POST"]}, {"path" => "/{index}/_cache/clear", "methods" => ["POST"]}]}, "params" => {"fielddata" => {"type" => "boolean"}, "fields" => {"type" => "list"}, "query" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "index" => {"type" => "list"}, "request" => {"type" => "boolean"}, "file" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_clone(params = {}) ⇒ Object
indices.clone => “opensearch.org/docs/latest/api-reference/index-apis/clone/”, “description” => “Clones an index”
647 648 649 650 651 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 647 def indices_clone(params = {}) api_name = 'indices.clone' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_clone/{target}", "methods" => ["PUT", "POST"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}, "task_execution_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index, :target]) end |
#indices_close(params = {}) ⇒ Object
indices.close => “opensearch.org/docs/latest/api-reference/index-apis/close-index/”, “description” => “Closes an index.”
656 657 658 659 660 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 656 def indices_close(params = {}) api_name = 'indices.close' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_close", "methods" => ["POST"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "wait_for_active_shards" => {"type" => "string"}}} request(api_name, api_spec, params, [:index]) end |
#indices_create(params = {}) ⇒ Object
indices.create => “opensearch.org/docs/latest/api-reference/index-apis/create-index/”, “description” => “Creates an index with optional settings and mappings.”
665 666 667 668 669 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 665 def indices_create(params = {}) api_name = 'indices.create' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}", "methods" => ["PUT"]}]}, "params" => {"wait_for_active_shards" => {"type" => "string"}, "timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index]) end |
#indices_create_data_stream(params = {}) ⇒ Object
indices.create_data_stream => “www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html”, “description” => “Creates or updates a data stream”
674 675 676 677 678 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 674 def indices_create_data_stream(params = {}) api_name = 'indices.create_data_stream' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_data_stream/{name}", "methods" => ["PUT"]}]}, "params" => {}} request(api_name, api_spec, params, [:name]) end |
#indices_data_streams_stats(params = {}) ⇒ Object
indices.data_streams_stats => “opensearch.org/docs/latest/im-plugin/data-streams/”, “description” => “Provides statistics on operations happening in a data stream.”
683 684 685 686 687 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 683 def indices_data_streams_stats(params = {}) api_name = 'indices.data_streams_stats' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_data_stream/_stats", "methods" => ["GET"]}, {"path" => "/_data_stream/{name}/_stats", "methods" => ["GET"]}]}} request(api_name, api_spec, params, [:name]) end |
#indices_delete(params = {}) ⇒ Object
indices.delete => “opensearch.org/docs/latest/api-reference/index-apis/delete-index/”, “description” => “Deletes an index.”
692 693 694 695 696 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 692 def indices_delete(params = {}) api_name = 'indices.delete' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}", "methods" => ["DELETE"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#indices_delete_alias(params = {}) ⇒ Object
indices.delete_alias => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html”, “description” => “Deletes an alias.”
701 702 703 704 705 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 701 def indices_delete_alias(params = {}) api_name = 'indices.delete_alias' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_alias/{name}", "methods" => ["DELETE"]}, {"path" => "/{index}/_aliases/{name}", "methods" => ["DELETE"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index, :name]) end |
#indices_delete_data_stream(params = {}) ⇒ Object
indices.delete_data_stream => “opensearch.org/docs/latest/im-plugin/data-streams/”, “description” => “Deletes a data stream.”
710 711 712 713 714 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 710 def indices_delete_data_stream(params = {}) api_name = 'indices.delete_data_stream' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_data_stream/{name}", "methods" => ["DELETE"]}]}, "params" => {}} request(api_name, api_spec, params, [:name]) end |
#indices_delete_index_template(params = {}) ⇒ Object
indices.delete_index_template => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html”, “description” => “Deletes an index template.”
719 720 721 722 723 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 719 def indices_delete_index_template(params = {}) api_name = 'indices.delete_index_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_index_template/{name}", "methods" => ["DELETE"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#indices_delete_template(params = {}) ⇒ Object
indices.delete_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Deletes an index template.”
728 729 730 731 732 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 728 def indices_delete_template(params = {}) api_name = 'indices.delete_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_template/{name}", "methods" => ["DELETE"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#indices_exists(params = {}) ⇒ Object Also known as: indices_exists?
indices.exists => “opensearch.org/docs/latest/api-reference/index-apis/exists/”, “description” => “Returns information about whether a particular index exists.”
737 738 739 740 741 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 737 def indices_exists(params = {}) api_name = 'indices.exists' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}", "methods" => ["HEAD"]}]}, "params" => {"local" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "flat_settings" => {"type" => "boolean"}, "include_defaults" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_exists_alias(params = {}) ⇒ Object Also known as: indices_exists_alias?
indices.exists_alias => “opensearch.org/docs/latest/api-reference/index-apis/alias/”, “description” => “Returns information about whether a particular alias exists.”
747 748 749 750 751 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 747 def indices_exists_alias(params = {}) api_name = 'indices.exists_alias' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_alias/{name}", "methods" => ["HEAD"]}, {"path" => "/{index}/_alias/{name}", "methods" => ["HEAD"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name, :index]) end |
#indices_exists_index_template(params = {}) ⇒ Object Also known as: indices_exists_index_template?
indices.exists_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns information about whether a particular index template exists.”
757 758 759 760 761 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 757 def indices_exists_index_template(params = {}) api_name = 'indices.exists_index_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_index_template/{name}", "methods" => ["HEAD"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#indices_exists_template(params = {}) ⇒ Object Also known as: indices_exists_template?
indices.exists_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns information about whether a particular index template exists.”
767 768 769 770 771 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 767 def indices_exists_template(params = {}) api_name = 'indices.exists_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_template/{name}", "methods" => ["HEAD"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#indices_flush(params = {}) ⇒ Object
indices.flush => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html”, “description” => “Performs the flush operation on one or more indices.”
777 778 779 780 781 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 777 def indices_flush(params = {}) api_name = 'indices.flush' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_flush", "methods" => ["POST", "GET"]}, {"path" => "/{index}/_flush", "methods" => ["POST", "GET"]}]}, "params" => {"force" => {"type" => "boolean"}, "wait_if_ongoing" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#indices_forcemerge(params = {}) ⇒ Object
indices.forcemerge => “opensearch.org/docs/latest/api-reference/index-apis/force-merge/”, “description” => “Performs the force merge operation on one or more indices.”
786 787 788 789 790 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 786 def indices_forcemerge(params = {}) api_name = 'indices.forcemerge' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_forcemerge", "methods" => ["POST"]}, {"path" => "/{index}/_forcemerge", "methods" => ["POST"]}]}, "params" => {"flush" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "max_num_segments" => {"type" => "number"}, "only_expunge_deletes" => {"type" => "boolean"}, "wait_for_completion" => {"type" => "boolean"}, "primary_only" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_get(params = {}) ⇒ Object
indices.get => “opensearch.org/docs/latest/api-reference/index-apis/get-index/”, “description” => “Returns information about one or more indices.”
795 796 797 798 799 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 795 def indices_get(params = {}) api_name = 'indices.get' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}", "methods" => ["GET"]}]}, "params" => {"local" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "flat_settings" => {"type" => "boolean"}, "include_defaults" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index]) end |
#indices_get_alias(params = {}) ⇒ Object
indices.get_alias => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html”, “description” => “Returns an alias.”
804 805 806 807 808 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 804 def indices_get_alias(params = {}) api_name = 'indices.get_alias' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_alias", "methods" => ["GET"]}, {"path" => "/_alias/{name}", "methods" => ["GET"]}, {"path" => "/{index}/_alias/{name}", "methods" => ["GET"]}, {"path" => "/{index}/_alias", "methods" => ["GET"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name, :index]) end |
#indices_get_data_stream(params = {}) ⇒ Object
indices.get_data_stream => “opensearch.org/docs/latest/im-plugin/data-streams/”, “description” => “Returns data streams.”
813 814 815 816 817 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 813 def indices_get_data_stream(params = {}) api_name = 'indices.get_data_stream' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_data_stream", "methods" => ["GET"]}, {"path" => "/_data_stream/{name}", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, [:name]) end |
#indices_get_field_mapping(params = {}) ⇒ Object
indices.get_field_mapping => “opensearch.org/docs/latest/api-reference/index-apis/put-mapping/”, “description” => “Returns mapping for one or more fields.”
822 823 824 825 826 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 822 def indices_get_field_mapping(params = {}) api_name = 'indices.get_field_mapping' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_mapping/field/{fields}", "methods" => ["GET"]}, {"path" => "/{index}/_mapping/field/{fields}", "methods" => ["GET"]}]}, "params" => {"include_defaults" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:fields, :index]) end |
#indices_get_index_template(params = {}) ⇒ Object
indices.get_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns an index template.”
831 832 833 834 835 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 831 def indices_get_index_template(params = {}) api_name = 'indices.get_index_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_index_template", "methods" => ["GET"]}, {"path" => "/_index_template/{name}", "methods" => ["GET"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#indices_get_mapping(params = {}) ⇒ Object
indices.get_mapping => “opensearch.org/docs/latest/api-reference/index-apis/put-mapping/”, “description” => “Returns mappings for one or more indices.”
840 841 842 843 844 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 840 def indices_get_mapping(params = {}) api_name = 'indices.get_mapping' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_mapping", "methods" => ["GET"]}, {"path" => "/{index}/_mapping", "methods" => ["GET"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_get_settings(params = {}) ⇒ Object
indices.get_settings => “opensearch.org/docs/latest/api-reference/index-apis/get-settings/”, “description” => “Returns settings for one or more indices.”
849 850 851 852 853 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 849 def indices_get_settings(params = {}) api_name = 'indices.get_settings' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_settings", "methods" => ["GET"]}, {"path" => "/{index}/_settings", "methods" => ["GET"]}, {"path" => "/{index}/_settings/{name}", "methods" => ["GET"]}, {"path" => "/_settings/{name}", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "flat_settings" => {"type" => "boolean"}, "local" => {"type" => "boolean"}, "include_defaults" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index, :name]) end |
#indices_get_template(params = {}) ⇒ Object
indices.get_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Returns an index template.”
858 859 860 861 862 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 858 def indices_get_template(params = {}) api_name = 'indices.get_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_template", "methods" => ["GET"]}, {"path" => "/_template/{name}", "methods" => ["GET"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:name]) end |
#indices_get_upgrade(params = {}) ⇒ Object
indices.get_upgrade => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html”, “description” => “The _upgrade API is no longer useful and will be removed.”
867 868 869 870 871 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 867 def indices_get_upgrade(params = {}) api_name = 'indices.get_upgrade' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_upgrade", "methods" => ["GET"]}, {"path" => "/{index}/_upgrade", "methods" => ["GET"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#indices_open(params = {}) ⇒ Object
indices.open => “opensearch.org/docs/latest/api-reference/index-apis/open-index/”, “description” => “Opens an index.”
876 877 878 879 880 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 876 def indices_open(params = {}) api_name = 'indices.open' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_open", "methods" => ["POST"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "wait_for_active_shards" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}, "task_execution_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index]) end |
#indices_put_alias(params = {}) ⇒ Object
indices.put_alias => “opensearch.org/docs/latest/api-reference/index-apis/update-alias/”, “description” => “Creates or updates an alias.”
885 886 887 888 889 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 885 def indices_put_alias(params = {}) api_name = 'indices.put_alias' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_alias/{name}", "methods" => ["PUT", "POST"]}, {"path" => "/{index}/_aliases/{name}", "methods" => ["PUT", "POST"]}, {"path" => "/{index}/_alias", "methods" => ["PUT"]}, {"path" => "/{index}/_aliases", "methods" => ["PUT"]}, {"path" => "/_alias/{name}", "methods" => ["PUT", "POST"]}, {"path" => "/_aliases/{name}", "methods" => ["PUT", "POST"]}, {"path" => "/_alias", "methods" => ["PUT"]}]}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index, :name]) end |
#indices_put_index_template(params = {}) ⇒ Object
indices.put_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Creates or updates an index template.”
894 895 896 897 898 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 894 def indices_put_index_template(params = {}) api_name = 'indices.put_index_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_index_template/{name}", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"create" => {"type" => "boolean"}, "cause" => {"type" => "string"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#indices_put_mapping(params = {}) ⇒ Object
indices.put_mapping => “opensearch.org/docs/latest/api-reference/index-apis/put-mapping/”, “description” => “Updates the index mappings.”
903 904 905 906 907 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 903 def indices_put_mapping(params = {}) api_name = 'indices.put_mapping' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_mapping", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "write_index_only" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_put_settings(params = {}) ⇒ Object
indices.put_settings => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html”, “description” => “Updates the index settings.”
912 913 914 915 916 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 912 def indices_put_settings(params = {}) api_name = 'indices.put_settings' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_settings", "methods" => ["PUT"]}, {"path" => "/{index}/_settings", "methods" => ["PUT"]}]}, "body" => {"required" => true}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}, "preserve_existing" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "flat_settings" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_put_template(params = {}) ⇒ Object
indices.put_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Creates or updates an index template.”
921 922 923 924 925 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 921 def indices_put_template(params = {}) api_name = 'indices.put_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_template/{name}", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"order" => {"type" => "number"}, "create" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#indices_recovery(params = {}) ⇒ Object
indices.recovery => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html”, “description” => “Returns information about ongoing index shard recoveries.”
930 931 932 933 934 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 930 def indices_recovery(params = {}) api_name = 'indices.recovery' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_recovery", "methods" => ["GET"]}, {"path" => "/{index}/_recovery", "methods" => ["GET"]}]}, "params" => {"detailed" => {"type" => "boolean"}, "active_only" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_refresh(params = {}) ⇒ Object
indices.refresh => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html”, “description” => “Performs the refresh operation in one or more indices.”
939 940 941 942 943 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 939 def indices_refresh(params = {}) api_name = 'indices.refresh' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_refresh", "methods" => ["POST", "GET"]}, {"path" => "/{index}/_refresh", "methods" => ["POST", "GET"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#indices_resolve_index(params = {}) ⇒ Object
indices.resolve_index => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html”, “description” => “Returns information about any matching indices, aliases, and data streams”
948 949 950 951 952 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 948 def indices_resolve_index(params = {}) api_name = 'indices.resolve_index' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_resolve/index/{name}", "methods" => ["GET"]}]}, "params" => {"expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:name]) end |
#indices_rollover(params = {}) ⇒ Object
indices.rollover => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html”, “description” => “Updates an alias to point to a new index when the existing indexnis considered to be too large or too old.”
957 958 959 960 961 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 957 def indices_rollover(params = {}) api_name = 'indices.rollover' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{alias}/_rollover", "methods" => ["POST"]}, {"path" => "/{alias}/_rollover/{new_index}", "methods" => ["POST"]}]}, "params" => {"timeout" => {"type" => "time"}, "dry_run" => {"type" => "boolean"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}}} request(api_name, api_spec, params, [:alias, :new_index]) end |
#indices_segments(params = {}) ⇒ Object
indices.segments => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html”, “description” => “Provides low-level information about segments in a Lucene index.”
966 967 968 969 970 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 966 def indices_segments(params = {}) api_name = 'indices.segments' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_segments", "methods" => ["GET"]}, {"path" => "/{index}/_segments", "methods" => ["GET"]}]}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "verbose" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_shard_stores(params = {}) ⇒ Object
indices.shard_stores => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html”, “description” => “Provides store information for shard copies of indices.”
975 976 977 978 979 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 975 def indices_shard_stores(params = {}) api_name = 'indices.shard_stores' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_shard_stores", "methods" => ["GET"]}, {"path" => "/{index}/_shard_stores", "methods" => ["GET"]}]}, "params" => {"status" => {"type" => "list"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#indices_shrink(params = {}) ⇒ Object
indices.shrink => “opensearch.org/docs/latest/api-reference/index-apis/shrink-index/”, “description” => “Allow to shrink an existing index into a new index with fewer primary shards.”
984 985 986 987 988 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 984 def indices_shrink(params = {}) api_name = 'indices.shrink' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_shrink/{target}", "methods" => ["PUT", "POST"]}]}, "params" => {"copy_settings" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}, "task_execution_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index, :target]) end |
#indices_simulate_index_template(params = {}) ⇒ Object
indices.simulate_index_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Simulate matching the given index name against the index templates in the system”
993 994 995 996 997 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 993 def indices_simulate_index_template(params = {}) api_name = 'indices.simulate_index_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_index_template/_simulate_index/{name}", "methods" => ["POST"]}]}, "params" => {"create" => {"type" => "boolean"}, "cause" => {"type" => "string"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#indices_simulate_template(params = {}) ⇒ Object
indices.simulate_template => “opensearch.org/docs/latest/im-plugin/index-templates”, “description” => “Simulate resolving the given template name or body”
1002 1003 1004 1005 1006 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1002 def indices_simulate_template(params = {}) api_name = 'indices.simulate_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_index_template/_simulate", "methods" => ["POST"]}, {"path" => "/_index_template/_simulate/{name}", "methods" => ["POST"]}]}, "params" => {"create" => {"type" => "boolean"}, "cause" => {"type" => "string"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:name]) end |
#indices_split(params = {}) ⇒ Object
indices.split => “opensearch.org/docs/latest/api-reference/index-apis/split/”, “description” => “Allows you to split an existing index into a new index with more primary shards.”
1011 1012 1013 1014 1015 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1011 def indices_split(params = {}) api_name = 'indices.split' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_split/{target}", "methods" => ["PUT", "POST"]}]}, "params" => {"copy_settings" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}, "task_execution_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index, :target]) end |
#indices_stats(params = {}) ⇒ Object
indices.stats => “opensearch.org/docs/latest/api-reference/index-apis/stats/”, “description” => “Provides statistics on operations happening in an index.”
1020 1021 1022 1023 1024 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1020 def indices_stats(params = {}) api_name = 'indices.stats' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_stats", "methods" => ["GET"]}, {"path" => "/_stats/{metric}", "methods" => ["GET"]}, {"path" => "/{index}/_stats", "methods" => ["GET"]}, {"path" => "/{index}/_stats/{metric}", "methods" => ["GET"]}]}, "params" => {"completion_fields" => {"type" => "list"}, "fielddata_fields" => {"type" => "list"}, "fields" => {"type" => "list"}, "groups" => {"type" => "list"}, "level" => {"type" => "enum"}, "include_segment_file_sizes" => {"type" => "boolean"}, "include_unloaded_segments" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "forbid_closed_indices" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:metric, :index]) end |
#indices_update_aliases(params = {}) ⇒ Object
indices.update_aliases => “opensearch.org/docs/latest/api-reference/index-apis/alias/”, “description” => “Updates index aliases.”
1029 1030 1031 1032 1033 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1029 def indices_update_aliases(params = {}) api_name = 'indices.update_aliases' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_aliases", "methods" => ["POST"]}]}, "body" => {"required" => true}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, []) end |
#indices_upgrade(params = {}) ⇒ Object
indices.upgrade => “www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html”, “description” => “The _upgrade API is no longer useful and will be removed.”
1038 1039 1040 1041 1042 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1038 def indices_upgrade(params = {}) api_name = 'indices.upgrade' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_upgrade", "methods" => ["POST"]}, {"path" => "/{index}/_upgrade", "methods" => ["POST"]}]}, "params" => {"allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "ignore_unavailable" => {"type" => "boolean"}, "wait_for_completion" => {"type" => "boolean"}, "only_ancient_segments" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#indices_validate_query(params = {}) ⇒ Object
indices.validate_query => “www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html”, “description” => “Allows a user to validate a potentially expensive query without executing it.”
1047 1048 1049 1050 1051 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1047 def indices_validate_query(params = {}) api_name = 'indices.validate_query' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_validate/query", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_validate/query", "methods" => ["GET", "POST"]}]}, "params" => {"explain" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "q" => {"type" => "string"}, "analyzer" => {"type" => "string"}, "analyze_wildcard" => {"type" => "boolean"}, "default_operator" => {"type" => "enum"}, "df" => {"type" => "string"}, "lenient" => {"type" => "boolean"}, "rewrite" => {"type" => "boolean"}, "all_shards" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#info(params = {}) ⇒ Object
info => “www.elastic.co/guide/en/elasticsearch/reference/current/index.html”, “description” => “Returns basic information about the cluster.”
1056 1057 1058 1059 1060 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1056 def info(params = {}) api_name = 'info' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#ingest_delete_pipeline(params = {}) ⇒ Object
ingest.delete_pipeline => “opensearch.org/docs/latest/ingest-pipelines/delete-ingest/”, “description” => “Deletes a pipeline.”
1065 1066 1067 1068 1069 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1065 def ingest_delete_pipeline(params = {}) api_name = 'ingest.delete_pipeline' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_ingest/pipeline/{id}", "methods" => ["DELETE"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#ingest_get_pipeline(params = {}) ⇒ Object
ingest.get_pipeline => “opensearch.org/docs/latest/ingest-pipelines/get-ingest/”, “description” => “Returns a pipeline.”
1074 1075 1076 1077 1078 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1074 def ingest_get_pipeline(params = {}) api_name = 'ingest.get_pipeline' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_ingest/pipeline", "methods" => ["GET"]}, {"path" => "/_ingest/pipeline/{id}", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#ingest_processor_grok(params = {}) ⇒ Object
ingest.processor_grok => “www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get”, “description” => “Returns a list of the built-in patterns.”
1083 1084 1085 1086 1087 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1083 def ingest_processor_grok(params = {}) api_name = 'ingest.processor_grok' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_ingest/processor/grok", "methods" => ["GET"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#ingest_put_pipeline(params = {}) ⇒ Object
ingest.put_pipeline => “opensearch.org/docs/latest/ingest-pipelines/create-ingest/”, “description” => “Creates or updates a pipeline.”
1092 1093 1094 1095 1096 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1092 def ingest_put_pipeline(params = {}) api_name = 'ingest.put_pipeline' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_ingest/pipeline/{id}", "methods" => ["PUT"]}]}, "body" => {"required" => true}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#ingest_simulate(params = {}) ⇒ Object
ingest.simulate => “opensearch.org/docs/latest/ingest-pipelines/simulate-ingest/”, “description” => “Allows to simulate a pipeline with example documents.”
1101 1102 1103 1104 1105 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1101 def ingest_simulate(params = {}) api_name = 'ingest.simulate' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_ingest/pipeline/_simulate", "methods" => ["GET", "POST"]}, {"path" => "/_ingest/pipeline/{id}/_simulate", "methods" => ["GET", "POST"]}]}, "body" => {"required" => true}, "params" => {"verbose" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:id]) end |
#mget(params = {}) ⇒ Object
mget => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html”, “description” => “Allows to get multiple documents in one request.”
1110 1111 1112 1113 1114 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1110 def mget(params = {}) api_name = 'mget' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_mget", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_mget", "methods" => ["GET", "POST"]}]}, "body" => {"required" => true}, "params" => {"stored_fields" => {"type" => "list"}, "preference" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "routing" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}}} request(api_name, api_spec, params, [:index]) end |
#msearch(params = {}) ⇒ Object
msearch => “opensearch.org/docs/latest/api-reference/multi-search/”, “description” => “Allows to execute several search operations in one request.”
1119 1120 1121 1122 1123 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1119 def msearch(params = {}) api_name = 'msearch' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_msearch", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_msearch", "methods" => ["GET", "POST"]}]}, "body" => {"required" => true}, "params" => {"search_type" => {"type" => "enum"}, "max_concurrent_searches" => {"type" => "number"}, "typed_keys" => {"type" => "boolean"}, "pre_filter_shard_size" => {"type" => "number"}, "max_concurrent_shard_requests" => {"type" => "number"}, "rest_total_hits_as_int" => {"type" => "boolean"}, "ccs_minimize_roundtrips" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#msearch_template(params = {}) ⇒ Object
msearch_template => “opensearch.org/docs/latest/api-reference/search-template/”, “description” => “Allows to execute several search template operations in one request.”
1128 1129 1130 1131 1132 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1128 def msearch_template(params = {}) api_name = 'msearch_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_msearch/template", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_msearch/template", "methods" => ["GET", "POST"]}]}, "body" => {"required" => true}, "params" => {"search_type" => {"type" => "enum"}, "typed_keys" => {"type" => "boolean"}, "max_concurrent_searches" => {"type" => "number"}, "rest_total_hits_as_int" => {"type" => "boolean"}, "ccs_minimize_roundtrips" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#mtermvectors(params = {}) ⇒ Object
mtermvectors => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html”, “description” => “Returns multiple termvectors in one request.”
1137 1138 1139 1140 1141 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1137 def mtermvectors(params = {}) api_name = 'mtermvectors' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_mtermvectors", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_mtermvectors", "methods" => ["GET", "POST"]}]}, "params" => {"ids" => {"type" => "list"}, "term_statistics" => {"type" => "boolean"}, "field_statistics" => {"type" => "boolean"}, "fields" => {"type" => "list"}, "offsets" => {"type" => "boolean"}, "positions" => {"type" => "boolean"}, "payloads" => {"type" => "boolean"}, "preference" => {"type" => "string"}, "routing" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#nodes_hot_threads(params = {}) ⇒ Object
nodes.hot_threads => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-hot-threads/”, “description” => “Returns information about hot threads on each node in the cluster.”
1146 1147 1148 1149 1150 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1146 def nodes_hot_threads(params = {}) api_name = 'nodes.hot_threads' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_nodes/hot_threads", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/hot_threads", "methods" => ["GET"]}, {"path" => "/_cluster/nodes/hotthreads", "methods" => ["GET"], "deprecated" => true}, {"path" => "/_cluster/nodes/{node_id}/hotthreads", "methods" => ["GET"], "deprecated" => true}, {"path" => "/_nodes/hotthreads", "methods" => ["GET"], "deprecated" => true}, {"path" => "/_nodes/{node_id}/hotthreads", "methods" => ["GET"], "deprecated" => true}, {"path" => "/_cluster/nodes/hot_threads", "methods" => ["GET"], "deprecated" => true}, {"path" => "/_cluster/nodes/{node_id}/hot_threads", "methods" => ["GET"], "deprecated" => true}]}, "params" => {"interval" => {"type" => "time"}, "snapshots" => {"type" => "number"}, "threads" => {"type" => "number"}, "ignore_idle_threads" => {"type" => "boolean"}, "type" => {"type" => "enum"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:node_id]) end |
#nodes_info(params = {}) ⇒ Object
nodes.info => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-info/”, “description” => “Returns information about nodes in the cluster.”
1155 1156 1157 1158 1159 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1155 def nodes_info(params = {}) api_name = 'nodes.info' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_nodes", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}", "methods" => ["GET"]}, {"path" => "/_nodes/{metric}", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/{metric}", "methods" => ["GET"]}]}, "params" => {"flat_settings" => {"type" => "boolean"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:node_id, :metric]) end |
#nodes_reload_secure_settings(params = {}) ⇒ Object
nodes.reload_secure_settings => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-reload-secure/”, “description” => “Reloads secure settings.”
1164 1165 1166 1167 1168 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1164 def nodes_reload_secure_settings(params = {}) api_name = 'nodes.reload_secure_settings' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_nodes/reload_secure_settings", "methods" => ["POST"]}, {"path" => "/_nodes/{node_id}/reload_secure_settings", "methods" => ["POST"]}]}, "params" => {"timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:node_id]) end |
#nodes_stats(params = {}) ⇒ Object
nodes.stats => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-stats/”, “description” => “Returns statistical information about nodes in the cluster.”
1173 1174 1175 1176 1177 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1173 def nodes_stats(params = {}) api_name = 'nodes.stats' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_nodes/stats", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/stats", "methods" => ["GET"]}, {"path" => "/_nodes/stats/{metric}", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/stats/{metric}", "methods" => ["GET"]}, {"path" => "/_nodes/stats/{metric}/{index_metric}", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/stats/{metric}/{index_metric}", "methods" => ["GET"]}]}, "params" => {"completion_fields" => {"type" => "list"}, "fielddata_fields" => {"type" => "list"}, "fields" => {"type" => "list"}, "groups" => {"type" => "boolean"}, "level" => {"type" => "enum"}, "types" => {"type" => "list"}, "timeout" => {"type" => "time"}, "include_segment_file_sizes" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:node_id, :metric, :index_metric]) end |
#nodes_usage(params = {}) ⇒ Object
nodes.usage => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-usage/”, “description” => “Returns low-level information about REST actions usage on nodes.”
1182 1183 1184 1185 1186 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1182 def nodes_usage(params = {}) api_name = 'nodes.usage' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_nodes/usage", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/usage", "methods" => ["GET"]}, {"path" => "/_nodes/usage/{metric}", "methods" => ["GET"]}, {"path" => "/_nodes/{node_id}/usage/{metric}", "methods" => ["GET"]}]}, "params" => {"timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:node_id, :metric]) end |
#ping(params = {}) ⇒ Object Also known as: ping?
ping => “www.elastic.co/guide/en/elasticsearch/reference/current/index.html”, “description” => “Returns whether the cluster is running.”
1191 1192 1193 1194 1195 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1191 def ping(params = {}) api_name = 'ping' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/", "methods" => ["HEAD"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#put_script(params = {}) ⇒ Object
put_script => “opensearch.org/docs/latest/api-reference/nodes-apis/nodes-usage/”, “description” => “Creates or updates a script.”
1201 1202 1203 1204 1205 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1201 def put_script(params = {}) api_name = 'put_script' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_scripts/{id}", "methods" => ["PUT", "POST"]}, {"path" => "/_scripts/{id}/{context}", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"timeout" => {"type" => "time"}, "master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "context" => {"type" => "string"}}} request(api_name, api_spec, params, [:id, :context]) end |
#rank_eval(params = {}) ⇒ Object
rank_eval => “opensearch.org/docs/latest/api-reference/rank-eval/”, “description” => “Allows to evaluate the quality of ranked search results over a set of typical search queries”
1210 1211 1212 1213 1214 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1210 def rank_eval(params = {}) api_name = 'rank_eval' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_rank_eval", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_rank_eval", "methods" => ["GET", "POST"]}]}, "body" => {"required" => true}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "search_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#reindex(params = {}) ⇒ Object
reindex => “opensearch.org/docs/latest/im-plugin/reindex-data/”, “description” => “Allows to copy documents from one index to another, optionally filtering the sourcendocuments by a query, changing the destination index settings, or fetching thendocuments from a remote cluster.”
1219 1220 1221 1222 1223 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1219 def reindex(params = {}) api_name = 'reindex' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_reindex", "methods" => ["POST"]}]}, "body" => {"required" => true}, "params" => {"refresh" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}, "requests_per_second" => {"type" => "number"}, "scroll" => {"type" => "time"}, "slices" => {"type" => "number|string"}, "max_docs" => {"type" => "number"}}} request(api_name, api_spec, params, []) end |
#reindex_rethrottle(params = {}) ⇒ Object
reindex_rethrottle => “opensearch.org/docs/latest/im-plugin/reindex-data/”, “description” => “Changes the number of requests per second for a particular Reindex operation.”
1228 1229 1230 1231 1232 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1228 def reindex_rethrottle(params = {}) api_name = 'reindex_rethrottle' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_reindex/{task_id}/_rethrottle", "methods" => ["POST"]}]}, "params" => {"requests_per_second" => {"type" => "number", "required" => true}}} request(api_name, api_spec, params, [:task_id]) end |
#remote_store_restore(params = {}) ⇒ Object
remote_store.restore => “opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/remote-store/index/#restoring-from-a-backup”, “description” => “Restores from remote store.”
1237 1238 1239 1240 1241 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1237 def remote_store_restore(params = {}) api_name = 'remote_store.restore' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_remotestore/_restore", "methods" => ["POST"]}]}, "body" => {"required" => true}, "params" => {"cluster_manager_timeout" => {"type" => "time"}, "wait_for_completion" => {"type" => "boolean"}}} request(api_name, api_spec, params, []) end |
#remote_store_stats(params = {}) ⇒ Object
remote_store.stats => “opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/remote-store/remote-store-stats-api/”, “description” => “Stats for remote store.”
1246 1247 1248 1249 1250 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1246 def remote_store_stats(params = {}) api_name = 'remote_store.stats' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_remotestore/stats/{index}", "methods" => ["GET"]}, {"path" => "/_remotestore/stats/{index}/{shard_id}", "methods" => ["GET"]}]}, "params" => {"timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:index, :shard_id]) end |
#render_search_template(params = {}) ⇒ Object
render_search_template => “opensearch.org/docs/latest/api-reference/search-template/”, “description” => “Allows to use the Mustache language to pre-render a search definition.”
1255 1256 1257 1258 1259 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1255 def render_search_template(params = {}) api_name = 'render_search_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_render/template", "methods" => ["GET", "POST"]}, {"path" => "/_render/template/{id}", "methods" => ["GET", "POST"]}]}} request(api_name, api_spec, params, [:id]) end |
#scripts_painless_execute(params = {}) ⇒ Object
scripts_painless_execute => “opensearch.org/docs/latest/api-reference/script-apis/exec-stored-script/”, “description” => “Allows an arbitrary script to be executed and a result to be returned”
1264 1265 1266 1267 1268 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1264 def scripts_painless_execute(params = {}) api_name = 'scripts_painless_execute' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_scripts/painless/_execute", "methods" => ["GET", "POST"]}]}, "params" => {}} request(api_name, api_spec, params, []) end |
#scroll(params = {}) ⇒ Object
scroll => “opensearch.org/docs/latest/api-reference/scroll/”, “description” => “Allows to retrieve a large numbers of results from a single search request.”
1273 1274 1275 1276 1277 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1273 def scroll(params = {}) api_name = 'scroll' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/scroll", "methods" => ["GET", "POST"]}, {"path" => "/_search/scroll/{scroll_id}", "methods" => ["GET", "POST"], "deprecated" => true}]}, "params" => {"scroll" => {"type" => "time"}, "scroll_id" => {"type" => "string"}, "rest_total_hits_as_int" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:scroll_id]) end |
#search(params = {}) ⇒ Object
search => “opensearch.org/docs/latest/api-reference/search/”, “description” => “Returns results matching a query.”
1282 1283 1284 1285 1286 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1282 def search(params = {}) api_name = 'search' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_search", "methods" => ["GET", "POST"]}]}, "params" => {"analyzer" => {"type" => "string"}, "analyze_wildcard" => {"type" => "boolean"}, "ccs_minimize_roundtrips" => {"type" => "boolean"}, "default_operator" => {"type" => "enum"}, "df" => {"type" => "string"}, "explain" => {"type" => "boolean"}, "stored_fields" => {"type" => "list"}, "docvalue_fields" => {"type" => "list"}, "from" => {"type" => "number"}, "ignore_unavailable" => {"type" => "boolean"}, "ignore_throttled" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "lenient" => {"type" => "boolean"}, "preference" => {"type" => "string"}, "q" => {"type" => "string"}, "routing" => {"type" => "list"}, "scroll" => {"type" => "time"}, "search_type" => {"type" => "enum"}, "size" => {"type" => "number"}, "sort" => {"type" => "list"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "terminate_after" => {"type" => "number"}, "stats" => {"type" => "list"}, "suggest_field" => {"type" => "string"}, "suggest_mode" => {"type" => "enum"}, "suggest_size" => {"type" => "number"}, "suggest_text" => {"type" => "string"}, "timeout" => {"type" => "time"}, "track_scores" => {"type" => "boolean"}, "track_total_hits" => {"type" => "boolean"}, "allow_partial_search_results" => {"type" => "boolean"}, "typed_keys" => {"type" => "boolean"}, "version" => {"type" => "boolean"}, "seq_no_primary_term" => {"type" => "boolean"}, "request_cache" => {"type" => "boolean"}, "batched_reduce_size" => {"type" => "number"}, "max_concurrent_shard_requests" => {"type" => "number"}, "pre_filter_shard_size" => {"type" => "number"}, "rest_total_hits_as_int" => {"type" => "boolean"}, "search_pipeline" => {"type" => "string"}, "include_named_queries_score" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#search_pipeline_delete(params = {}) ⇒ Object
search_pipeline.delete => “Deletes a search pipeline.”, “url” => “opensearch.org/docs/latest/search-plugins/search-pipelines/index/”
1291 1292 1293 1294 1295 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1291 def search_pipeline_delete(params = {}) api_name = 'search_pipeline.delete' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/pipeline/{id}", "methods" => ["DELETE"]}]}, "params" => {"cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#search_pipeline_get(params = {}) ⇒ Object
search_pipeline.get => “Returns a search pipeline”, “url” => “opensearch.org/docs/latest/search-plugins/search-pipelines/retrieving-search-pipeline/”
1300 1301 1302 1303 1304 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1300 def search_pipeline_get(params = {}) api_name = 'search_pipeline.get' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/pipeline", "methods" => ["GET"]}, {"path" => "/_search/pipeline/{id}", "methods" => ["GET"]}]}, "params" => {"cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#search_pipeline_put(params = {}) ⇒ Object
search_pipeline.put => “Creates or updates a search pipeline.”, “url” => “opensearch.org/docs/latest/search-plugins/search-pipelines/creating-search-pipeline/”
1309 1310 1311 1312 1313 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1309 def search_pipeline_put(params = {}) api_name = 'search_pipeline.put' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/pipeline/{id}", "methods" => ["PUT"]}]}, "body" => {"required" => true}, "params" => {"cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:id]) end |
#search_shards(params = {}) ⇒ Object
search_shards => “www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html”, “description” => “Returns information about the indices and shards that a search request would be executed against.”
1318 1319 1320 1321 1322 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1318 def search_shards(params = {}) api_name = 'search_shards' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search_shards", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_search_shards", "methods" => ["GET", "POST"]}]}, "params" => {"preference" => {"type" => "string"}, "routing" => {"type" => "string"}, "local" => {"type" => "boolean"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index]) end |
#search_template(params = {}) ⇒ Object
search_template => “opensearch.org/docs/latest/api-reference/search-template/”, “description” => “Allows to use the Mustache language to pre-render a search definition.”
1327 1328 1329 1330 1331 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1327 def search_template(params = {}) api_name = 'search_template' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_search/template", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_search/template", "methods" => ["GET", "POST"]}]}, "body" => {"required" => true}, "params" => {"ignore_unavailable" => {"type" => "boolean"}, "ignore_throttled" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "expand_wildcards" => {"type" => "enum"}, "preference" => {"type" => "string"}, "routing" => {"type" => "list"}, "scroll" => {"type" => "time"}, "search_type" => {"type" => "enum"}, "explain" => {"type" => "boolean"}, "profile" => {"type" => "boolean"}, "typed_keys" => {"type" => "boolean"}, "rest_total_hits_as_int" => {"type" => "boolean"}, "ccs_minimize_roundtrips" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:index]) end |
#snapshot_cleanup_repository(params = {}) ⇒ Object
snapshot.cleanup_repository => “opensearch.org/docs/latest/api-reference/snapshots/index/”, “description” => “Removes stale data from repository.”
1336 1337 1338 1339 1340 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1336 def snapshot_cleanup_repository(params = {}) api_name = 'snapshot.cleanup_repository' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/_cleanup", "methods" => ["POST"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:repository]) end |
#snapshot_clone(params = {}) ⇒ Object
snapshot.clone => “opensearch.org/docs/latest/api-reference/snapshots/index/”, “description” => “Clones indices from one snapshot into another snapshot in the same repository.”
1345 1346 1347 1348 1349 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1345 def snapshot_clone(params = {}) api_name = 'snapshot.clone' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}", "methods" => ["PUT"]}]}, "body" => {"required" => true}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:repository, :snapshot, :target_snapshot]) end |
#snapshot_create(params = {}) ⇒ Object
snapshot.create => “opensearch.org/docs/latest/api-reference/snapshots/create-snapshot/”, “description” => “Creates a snapshot in a repository.”
1354 1355 1356 1357 1358 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1354 def snapshot_create(params = {}) api_name = 'snapshot.create' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/{snapshot}", "methods" => ["PUT", "POST"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "wait_for_completion" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:repository, :snapshot]) end |
#snapshot_create_repository(params = {}) ⇒ Object
snapshot.create_repository => “opensearch.org/docs/latest/api-reference/snapshots/create-repository/”, “description” => “Creates a repository.”
1363 1364 1365 1366 1367 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1363 def snapshot_create_repository(params = {}) api_name = 'snapshot.create_repository' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}", "methods" => ["PUT", "POST"]}]}, "body" => {"required" => true}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}, "verify" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:repository]) end |
#snapshot_delete(params = {}) ⇒ Object
snapshot.delete => “opensearch.org/docs/latest/api-reference/snapshots/delete-snapshot/”, “description” => “Deletes a snapshot.”
1372 1373 1374 1375 1376 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1372 def snapshot_delete(params = {}) api_name = 'snapshot.delete' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/{snapshot}", "methods" => ["DELETE"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:repository, :snapshot]) end |
#snapshot_delete_repository(params = {}) ⇒ Object
snapshot.delete_repository => “opensearch.org/docs/latest/api-reference/snapshots/delete-snapshot-repository/”, “description” => “Deletes a repository.”
1381 1382 1383 1384 1385 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1381 def snapshot_delete_repository(params = {}) api_name = 'snapshot.delete_repository' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}", "methods" => ["DELETE"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:repository]) end |
#snapshot_get(params = {}) ⇒ Object
snapshot.get => “opensearch.org/docs/latest/api-reference/snapshots/get-snapshot/”, “description” => “Returns information about a snapshot.”
1390 1391 1392 1393 1394 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1390 def snapshot_get(params = {}) api_name = 'snapshot.get' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/{snapshot}", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}, "verbose" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:repository, :snapshot]) end |
#snapshot_get_repository(params = {}) ⇒ Object
snapshot.get_repository => “opensearch.org/docs/latest/api-reference/snapshots/get-snapshot-repository/”, “description” => “Returns information about a repository.”
1399 1400 1401 1402 1403 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1399 def snapshot_get_repository(params = {}) api_name = 'snapshot.get_repository' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot", "methods" => ["GET"]}, {"path" => "/_snapshot/{repository}", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "local" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:repository]) end |
#snapshot_restore(params = {}) ⇒ Object
snapshot.restore => “opensearch.org/docs/latest/api-reference/snapshots/restore-snapshot/”, “description” => “Restores a snapshot.”
1408 1409 1410 1411 1412 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1408 def snapshot_restore(params = {}) api_name = 'snapshot.restore' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/{snapshot}/_restore", "methods" => ["POST"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "wait_for_completion" => {"type" => "boolean"}, "source_remote_store_repository" => {"type" => "string"}}} request(api_name, api_spec, params, [:repository, :snapshot]) end |
#snapshot_status(params = {}) ⇒ Object
snapshot.status => “opensearch.org/docs/latest/api-reference/snapshots/get-snapshot-status/”, “description” => “Returns information about the status of a snapshot.”
1417 1418 1419 1420 1421 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1417 def snapshot_status(params = {}) api_name = 'snapshot.status' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/_status", "methods" => ["GET"]}, {"path" => "/_snapshot/{repository}/_status", "methods" => ["GET"]}, {"path" => "/_snapshot/{repository}/{snapshot}/_status", "methods" => ["GET"]}, {"path" => "/_snapshot/{repository}/{snapshot}/{index}/_status", "methods" => ["GET"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "ignore_unavailable" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:repository, :snapshot, :index]) end |
#snapshot_verify_repository(params = {}) ⇒ Object
snapshot.verify_repository => “opensearch.org/docs/latest/api-reference/snapshots/verify-snapshot-repository/”, “description” => “Verifies a repository.”
1426 1427 1428 1429 1430 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1426 def snapshot_verify_repository(params = {}) api_name = 'snapshot.verify_repository' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_snapshot/{repository}/_verify", "methods" => ["POST"]}]}, "params" => {"master_timeout" => {"type" => "time"}, "cluster_manager_timeout" => {"type" => "time"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:repository]) end |
#tasks_cancel(params = {}) ⇒ Object
tasks.cancel => “opensearch.org/docs/latest/api-reference/tasks/”, “description” => “Cancels a task, if it can be cancelled through an API.”
1435 1436 1437 1438 1439 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1435 def tasks_cancel(params = {}) api_name = 'tasks.cancel' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_tasks/_cancel", "methods" => ["POST"]}, {"path" => "/_tasks/{task_id}/_cancel", "methods" => ["POST"]}]}, "params" => {"nodes" => {"type" => "list"}, "actions" => {"type" => "list"}, "parent_task_id" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:task_id]) end |
#tasks_get(params = {}) ⇒ Object
tasks.get => “opensearch.org/docs/latest/api-reference/tasks/”, “description” => “Returns information about a task.”
1444 1445 1446 1447 1448 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1444 def tasks_get(params = {}) api_name = 'tasks.get' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_tasks/{task_id}", "methods" => ["GET"]}]}, "params" => {"wait_for_completion" => {"type" => "boolean"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, [:task_id]) end |
#tasks_list(params = {}) ⇒ Object
tasks.list => “opensearch.org/docs/latest/api-reference/tasks/”, “description” => “Returns a list of tasks.”
1453 1454 1455 1456 1457 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1453 def tasks_list(params = {}) api_name = 'tasks.list' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_tasks", "methods" => ["GET"]}]}, "params" => {"nodes" => {"type" => "list"}, "actions" => {"type" => "list"}, "detailed" => {"type" => "boolean"}, "parent_task_id" => {"type" => "string"}, "wait_for_completion" => {"type" => "boolean"}, "group_by" => {"type" => "enum"}, "timeout" => {"type" => "time"}}} request(api_name, api_spec, params, []) end |
#termvectors(params = {}) ⇒ Object
termvectors => “www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html”, “description” => “Returns information and statistics about terms in the fields of a particular document.”
1462 1463 1464 1465 1466 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1462 def termvectors(params = {}) api_name = 'termvectors' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_termvectors/{id}", "methods" => ["GET", "POST"]}, {"path" => "/{index}/_termvectors", "methods" => ["GET", "POST"]}]}, "params" => {"term_statistics" => {"type" => "boolean"}, "field_statistics" => {"type" => "boolean"}, "fields" => {"type" => "list"}, "offsets" => {"type" => "boolean"}, "positions" => {"type" => "boolean"}, "payloads" => {"type" => "boolean"}, "preference" => {"type" => "string"}, "routing" => {"type" => "string"}, "realtime" => {"type" => "boolean"}, "version" => {"type" => "number"}, "version_type" => {"type" => "enum"}}} request(api_name, api_spec, params, [:index, :id]) end |
#update(params = {}) ⇒ Object
update => “opensearch.org/docs/latest/api-reference/document-apis/update-document/”, “description” => “Updates a document with a script or partial document.”
1471 1472 1473 1474 1475 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1471 def update(params = {}) api_name = 'update' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_update/{id}", "methods" => ["POST"]}]}, "body" => {"required" => true}, "params" => {"wait_for_active_shards" => {"type" => "string"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "lang" => {"type" => "string"}, "refresh" => {"type" => "enum"}, "retry_on_conflict" => {"type" => "number"}, "routing" => {"type" => "string"}, "timeout" => {"type" => "time"}, "if_seq_no" => {"type" => "number"}, "if_primary_term" => {"type" => "number"}, "require_alias" => {"type" => "boolean"}}} request(api_name, api_spec, params, [:id, :index]) end |
#update_by_query(params = {}) ⇒ Object
update_by_query => “opensearch.org/docs/latest/api-reference/document-apis/update-by-query/”, “description” => “Performs an update on every document in the index without changing the source,nfor example to pick up a mapping change.”
1480 1481 1482 1483 1484 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1480 def update_by_query(params = {}) api_name = 'update_by_query' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/{index}/_update_by_query", "methods" => ["POST"]}]}, "params" => {"analyzer" => {"type" => "string"}, "analyze_wildcard" => {"type" => "boolean"}, "default_operator" => {"type" => "enum"}, "df" => {"type" => "string"}, "from" => {"type" => "number"}, "ignore_unavailable" => {"type" => "boolean"}, "allow_no_indices" => {"type" => "boolean"}, "conflicts" => {"type" => "enum"}, "expand_wildcards" => {"type" => "enum"}, "lenient" => {"type" => "boolean"}, "pipeline" => {"type" => "string"}, "preference" => {"type" => "string"}, "q" => {"type" => "string"}, "routing" => {"type" => "list"}, "scroll" => {"type" => "time"}, "search_type" => {"type" => "enum"}, "search_timeout" => {"type" => "time"}, "size" => {"type" => "number"}, "max_docs" => {"type" => "number"}, "sort" => {"type" => "list"}, "_source" => {"type" => "list"}, "_source_excludes" => {"type" => "list"}, "_source_includes" => {"type" => "list"}, "terminate_after" => {"type" => "number"}, "stats" => {"type" => "list"}, "version" => {"type" => "boolean"}, "version_type" => {"type" => "boolean"}, "request_cache" => {"type" => "boolean"}, "refresh" => {"type" => "boolean"}, "timeout" => {"type" => "time"}, "wait_for_active_shards" => {"type" => "string"}, "scroll_size" => {"type" => "number"}, "wait_for_completion" => {"type" => "boolean"}, "requests_per_second" => {"type" => "number"}, "slices" => {"type" => "number|string"}}} request(api_name, api_spec, params, [:index]) end |
#update_by_query_rethrottle(params = {}) ⇒ Object
update_by_query_rethrottle => “opensearch.org/docs/latest/api-reference/document-apis/update-by-query/”, “description” => “Changes the number of requests per second for a particular Update By Query operation.”
1489 1490 1491 1492 1493 |
# File 'lib/antbird/rest_api/rest_api_opensearch_v3_0.rb', line 1489 def update_by_query_rethrottle(params = {}) api_name = 'update_by_query_rethrottle' api_spec = @api_specs[api_name] ||= {"url" => {"paths" => [{"path" => "/_update_by_query/{task_id}/_rethrottle", "methods" => ["POST"]}]}, "params" => {"requests_per_second" => {"type" => "number", "required" => true}}} request(api_name, api_spec, params, [:task_id]) end |