@opensearch-project/opensearch 2.11.0 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/api/_core/bulk.js +58 -0
- package/api/_core/clear_scroll.js +48 -0
- package/api/_core/count.js +62 -0
- package/api/_core/create.js +61 -0
- package/api/_core/create_pit.js +53 -0
- package/api/_core/delete.js +59 -0
- package/api/_core/delete_all_pits.js +44 -0
- package/api/_core/delete_by_query.js +82 -0
- package/api/_core/delete_by_query_rethrottle.js +49 -0
- package/api/_core/delete_pit.js +46 -0
- package/api/_core/delete_script.js +51 -0
- package/api/_core/exists.js +61 -0
- package/api/_core/exists_source.js +60 -0
- package/api/_core/explain.js +64 -0
- package/api/_core/field_caps.js +53 -0
- package/api/_core/get.js +61 -0
- package/api/_core/get_all_pits.js +44 -0
- package/api/_core/get_script.js +50 -0
- package/api/_core/get_script_context.js +44 -0
- package/api/_core/get_script_languages.js +44 -0
- package/api/_core/get_source.js +60 -0
- package/api/_core/index.js +62 -0
- package/api/_core/info.js +44 -0
- package/api/_core/mget.js +56 -0
- package/api/_core/msearch.js +55 -0
- package/api/_core/msearch_template.js +53 -0
- package/api/_core/mtermvectors.js +60 -0
- package/api/_core/ping.js +44 -0
- package/api/_core/put_script.js +54 -0
- package/api/_core/rank_eval.js +52 -0
- package/api/_core/reindex.js +56 -0
- package/api/_core/reindex_rethrottle.js +49 -0
- package/api/_core/render_search_template.js +48 -0
- package/api/_core/scripts_painless_execute.js +46 -0
- package/api/_core/scroll.js +50 -0
- package/api/_core/search.js +94 -0
- package/api/_core/search_shards.js +53 -0
- package/api/_core/search_template.js +61 -0
- package/api/_core/termvectors.js +62 -0
- package/api/_core/update.js +64 -0
- package/api/_core/update_by_query.js +84 -0
- package/api/_core/update_by_query_rethrottle.js +49 -0
- package/api/cat/_api.js +50 -0
- package/api/cat/aliases.js +54 -0
- package/api/cat/all_pit_segments.js +51 -0
- package/api/cat/allocation.js +56 -0
- package/api/cat/cluster_manager.js +53 -0
- package/api/cat/count.js +52 -0
- package/api/cat/fielddata.js +53 -0
- package/api/cat/health.js +52 -0
- package/api/cat/help.js +44 -0
- package/api/cat/indices.js +61 -0
- package/api/cat/master.js +53 -0
- package/api/cat/nodeattrs.js +53 -0
- package/api/cat/nodes.js +56 -0
- package/api/cat/pending_tasks.js +54 -0
- package/api/cat/pit_segments.js +52 -0
- package/api/cat/plugins.js +53 -0
- package/api/cat/recovery.js +56 -0
- package/api/cat/repositories.js +53 -0
- package/api/cat/segment_replication.js +63 -0
- package/api/cat/segments.js +55 -0
- package/api/cat/shards.js +57 -0
- package/api/cat/snapshots.js +56 -0
- package/api/cat/tasks.js +55 -0
- package/api/cat/templates.js +55 -0
- package/api/cat/thread_pool.js +57 -0
- package/api/cluster/_api.js +47 -0
- package/api/cluster/allocation_explain.js +48 -0
- package/api/cluster/delete_component_template.js +51 -0
- package/api/cluster/delete_decommission_awareness.js +44 -0
- package/api/cluster/delete_voting_config_exclusions.js +46 -0
- package/api/cluster/delete_weighted_routing.js +44 -0
- package/api/cluster/exists_component_template.js +51 -0
- package/api/cluster/get_component_template.js +50 -0
- package/api/cluster/get_decommission_awareness.js +48 -0
- package/api/cluster/get_settings.js +50 -0
- package/api/cluster/get_weighted_routing.js +48 -0
- package/api/cluster/health.js +60 -0
- package/api/cluster/pending_tasks.js +49 -0
- package/api/cluster/post_voting_config_exclusions.js +48 -0
- package/api/cluster/put_component_template.js +53 -0
- package/api/cluster/put_decommission_awareness.js +51 -0
- package/api/cluster/put_settings.js +50 -0
- package/api/cluster/put_weighted_routing.js +48 -0
- package/api/cluster/remote_info.js +44 -0
- package/api/cluster/reroute.js +53 -0
- package/api/cluster/state.js +58 -0
- package/api/cluster/stats.js +49 -0
- package/api/dangling_indices/_api.js +29 -0
- package/api/dangling_indices/delete_dangling_index.js +53 -0
- package/api/dangling_indices/import_dangling_index.js +53 -0
- package/api/dangling_indices/list_dangling_indices.js +44 -0
- package/api/http/_api.js +35 -0
- package/api/http/connect.js +48 -0
- package/api/http/delete.js +48 -0
- package/api/http/get.js +48 -0
- package/api/http/head.js +48 -0
- package/api/http/options.js +48 -0
- package/api/http/patch.js +48 -0
- package/api/http/post.js +48 -0
- package/api/http/put.js +48 -0
- package/api/http/trace.js +48 -0
- package/api/index.js +83 -393
- package/api/indices/_api.js +74 -0
- package/api/indices/add_block.js +57 -0
- package/api/indices/analyze.js +48 -0
- package/api/indices/clear_cache.js +55 -0
- package/api/indices/clone.js +58 -0
- package/api/indices/close.js +55 -0
- package/api/indices/create.js +53 -0
- package/api/indices/create_data_stream.js +49 -0
- package/api/indices/data_streams_stats.js +47 -0
- package/api/indices/delete.js +54 -0
- package/api/indices/delete_alias.js +54 -0
- package/api/indices/delete_data_stream.js +48 -0
- package/api/indices/delete_index_template.js +51 -0
- package/api/indices/delete_template.js +51 -0
- package/api/indices/exists.js +55 -0
- package/api/indices/exists_alias.js +54 -0
- package/api/indices/exists_index_template.js +52 -0
- package/api/indices/exists_template.js +52 -0
- package/api/indices/flush.js +52 -0
- package/api/indices/forcemerge.js +55 -0
- package/api/indices/get.js +56 -0
- package/api/indices/get_alias.js +53 -0
- package/api/indices/get_data_stream.js +47 -0
- package/api/indices/get_field_mapping.js +55 -0
- package/api/indices/get_index_template.js +51 -0
- package/api/indices/get_mapping.js +53 -0
- package/api/indices/get_settings.js +57 -0
- package/api/indices/get_template.js +51 -0
- package/api/indices/get_upgrade.js +50 -0
- package/api/indices/open.js +57 -0
- package/api/indices/put_alias.js +53 -0
- package/api/indices/put_index_template.js +53 -0
- package/api/indices/put_mapping.js +56 -0
- package/api/indices/put_settings.js +56 -0
- package/api/indices/put_template.js +53 -0
- package/api/indices/recovery.js +49 -0
- package/api/indices/refresh.js +50 -0
- package/api/indices/resolve_index.js +49 -0
- package/api/indices/rollover.js +57 -0
- package/api/indices/segments.js +51 -0
- package/api/indices/shard_stores.js +51 -0
- package/api/indices/shrink.js +59 -0
- package/api/indices/simulate_index_template.js +53 -0
- package/api/indices/simulate_template.js +52 -0
- package/api/indices/split.js +59 -0
- package/api/indices/stats.js +58 -0
- package/api/indices/update_aliases.js +49 -0
- package/api/indices/upgrade.js +52 -0
- package/api/indices/validate_query.js +60 -0
- package/api/ingest/_api.js +31 -0
- package/api/ingest/delete_pipeline.js +51 -0
- package/api/ingest/get_pipeline.js +49 -0
- package/api/ingest/processor_grok.js +44 -0
- package/api/ingest/put_pipeline.js +52 -0
- package/api/ingest/simulate.js +49 -0
- package/api/knn/_api.js +32 -0
- package/api/knn/delete_model.js +48 -0
- package/api/knn/get_model.js +48 -0
- package/api/knn/search_models.js +88 -0
- package/api/knn/stats.js +50 -0
- package/api/knn/train_model.js +49 -0
- package/api/knn/warmup.js +48 -0
- package/api/ml/_api.js +33 -0
- package/api/ml/delete_model.js +48 -0
- package/api/ml/delete_model_group.js +48 -0
- package/api/ml/get_model_group.js +48 -0
- package/api/ml/get_task.js +48 -0
- package/api/ml/register_model.js +46 -0
- package/api/ml/register_model_group.js +46 -0
- package/api/ml/search_models.js +46 -0
- package/api/nodes/_api.js +31 -0
- package/api/nodes/hot_threads.js +53 -0
- package/api/nodes/info.js +51 -0
- package/api/nodes/reload_secure_settings.js +49 -0
- package/api/nodes/stats.js +59 -0
- package/api/nodes/usage.js +50 -0
- package/api/notifications/_api.js +35 -0
- package/api/notifications/create_config.js +46 -0
- package/api/notifications/delete_config.js +48 -0
- package/api/notifications/delete_configs.js +48 -0
- package/api/notifications/get_config.js +48 -0
- package/api/notifications/get_configs.js +84 -0
- package/api/notifications/list_channels.js +44 -0
- package/api/notifications/list_features.js +44 -0
- package/api/notifications/send_test.js +48 -0
- package/api/notifications/update_config.js +49 -0
- package/api/ppl/_api.js +30 -0
- package/api/ppl/explain.js +48 -0
- package/api/ppl/get_stats.js +47 -0
- package/api/ppl/post_stats.js +48 -0
- package/api/ppl/query.js +48 -0
- package/api/remote_store/_api.js +27 -0
- package/api/remote_store/restore.js +48 -0
- package/api/rollups/_api.js +32 -0
- package/api/rollups/delete.js +48 -0
- package/api/rollups/explain.js +48 -0
- package/api/rollups/get.js +48 -0
- package/api/rollups/put.js +51 -0
- package/api/rollups/start.js +48 -0
- package/api/rollups/stop.js +48 -0
- package/api/search_pipeline/_api.js +29 -0
- package/api/search_pipeline/delete.js +50 -0
- package/api/search_pipeline/get.js +48 -0
- package/api/search_pipeline/put.js +51 -0
- package/api/security/_api.js +100 -0
- package/api/security/authinfo.js +47 -0
- package/api/security/authtoken.js +44 -0
- package/api/security/change_password.js +46 -0
- package/api/security/config_upgrade_check.js +44 -0
- package/api/security/config_upgrade_perform.js +46 -0
- package/api/security/create_action_group.js +49 -0
- package/api/security/create_allowlist.js +46 -0
- package/api/security/create_role.js +49 -0
- package/api/security/create_role_mapping.js +49 -0
- package/api/security/create_tenant.js +49 -0
- package/api/security/create_update_tenancy_config.js +46 -0
- package/api/security/create_user.js +49 -0
- package/api/security/create_user_legacy.js +49 -0
- package/api/security/delete_action_group.js +48 -0
- package/api/security/delete_distinguished_name.js +48 -0
- package/api/security/delete_role.js +48 -0
- package/api/security/delete_role_mapping.js +48 -0
- package/api/security/delete_tenant.js +48 -0
- package/api/security/delete_user.js +48 -0
- package/api/security/delete_user_legacy.js +48 -0
- package/api/security/flush_cache.js +44 -0
- package/api/security/generate_obo_token.js +46 -0
- package/api/security/generate_user_token.js +48 -0
- package/api/security/generate_user_token_legacy.js +48 -0
- package/api/security/get_account_details.js +44 -0
- package/api/security/get_action_group.js +48 -0
- package/api/security/get_action_groups.js +44 -0
- package/api/security/get_allowlist.js +44 -0
- package/api/security/get_audit_configuration.js +44 -0
- package/api/security/get_certificates.js +44 -0
- package/api/security/get_configuration.js +44 -0
- package/api/security/get_dashboards_info.js +44 -0
- package/api/security/get_distinguished_name.js +49 -0
- package/api/security/get_distinguished_names.js +46 -0
- package/api/security/get_permissions_info.js +44 -0
- package/api/security/get_role.js +48 -0
- package/api/security/get_role_mapping.js +48 -0
- package/api/security/get_role_mappings.js +44 -0
- package/api/security/get_roles.js +44 -0
- package/api/security/get_sslinfo.js +46 -0
- package/api/security/get_tenancy_config.js +44 -0
- package/api/security/get_tenant.js +48 -0
- package/api/security/get_tenants.js +44 -0
- package/api/security/get_user.js +48 -0
- package/api/security/get_user_legacy.js +48 -0
- package/api/security/get_users.js +44 -0
- package/api/security/get_users_legacy.js +44 -0
- package/api/security/health.js +46 -0
- package/api/security/migrate.js +44 -0
- package/api/security/patch_action_group.js +49 -0
- package/api/security/patch_action_groups.js +46 -0
- package/api/security/patch_allowlist.js +46 -0
- package/api/security/patch_audit_configuration.js +46 -0
- package/api/security/patch_configuration.js +46 -0
- package/api/security/patch_distinguished_name.js +49 -0
- package/api/security/patch_distinguished_names.js +46 -0
- package/api/security/patch_role.js +49 -0
- package/api/security/patch_role_mapping.js +49 -0
- package/api/security/patch_role_mappings.js +46 -0
- package/api/security/patch_roles.js +46 -0
- package/api/security/patch_tenant.js +49 -0
- package/api/security/patch_tenants.js +46 -0
- package/api/security/patch_user.js +49 -0
- package/api/security/patch_users.js +46 -0
- package/api/security/post_dashboards_info.js +46 -0
- package/api/security/reload_http_certificates.js +44 -0
- package/api/security/reload_transport_certificates.js +44 -0
- package/api/security/tenant_info.js +44 -0
- package/api/security/update_audit_configuration.js +46 -0
- package/api/security/update_configuration.js +46 -0
- package/api/security/update_distinguished_name.js +49 -0
- package/api/security/validate.js +46 -0
- package/api/security/who_am_i.js +44 -0
- package/api/security/who_am_i_protected.js +44 -0
- package/api/snapshot/_api.js +37 -0
- package/api/snapshot/cleanup_repository.js +51 -0
- package/api/snapshot/clone.js +57 -0
- package/api/snapshot/create.js +55 -0
- package/api/snapshot/create_repository.js +53 -0
- package/api/snapshot/delete.js +53 -0
- package/api/snapshot/delete_repository.js +51 -0
- package/api/snapshot/get.js +55 -0
- package/api/snapshot/get_repository.js +50 -0
- package/api/snapshot/restore.js +55 -0
- package/api/snapshot/status.js +52 -0
- package/api/snapshot/verify_repository.js +51 -0
- package/api/sql/_api.js +32 -0
- package/api/sql/close.js +48 -0
- package/api/sql/explain.js +48 -0
- package/api/sql/get_stats.js +47 -0
- package/api/sql/post_stats.js +48 -0
- package/api/sql/query.js +48 -0
- package/api/sql/settings.js +47 -0
- package/api/tasks/_api.js +29 -0
- package/api/tasks/cancel.js +51 -0
- package/api/tasks/get.js +50 -0
- package/api/tasks/list.js +52 -0
- package/api/transforms/_api.js +34 -0
- package/api/transforms/delete.js +48 -0
- package/api/transforms/explain.js +48 -0
- package/api/transforms/get.js +48 -0
- package/api/transforms/preview.js +44 -0
- package/api/transforms/put.js +51 -0
- package/api/transforms/search.js +50 -0
- package/api/transforms/start.js +48 -0
- package/api/transforms/stop.js +48 -0
- package/api/utils.js +31 -24
- package/index.d.ts +3 -5789
- package/lib/Helpers.d.ts +23 -25
- package/lib/Transport.d.ts +4 -11
- package/lib/errors.d.ts +13 -31
- package/package.json +3 -9
- package/types/Client.d.ts +1717 -0
- package/types/client_options.d.ts +102 -0
- package/types/components/_common.aggregations.d.ts +1456 -0
- package/types/components/_common.analysis.d.ts +643 -0
- package/types/components/_common.d.ts +871 -0
- package/types/components/_common.mapping.d.ts +519 -0
- package/types/components/_common.query_dsl.d.ts +727 -0
- package/types/components/_core._common.d.ts +39 -0
- package/types/components/_core.bulk.d.ts +77 -0
- package/types/components/_core.explain.d.ts +28 -0
- package/types/components/_core.field_caps.d.ts +33 -0
- package/types/components/_core.get.d.ts +30 -0
- package/types/components/_core.get_script_context.d.ts +33 -0
- package/types/components/_core.get_script_languages.d.ts +22 -0
- package/types/components/_core.mget.d.ts +37 -0
- package/types/components/_core.msearch.d.ts +82 -0
- package/types/components/_core.msearch_template.d.ts +28 -0
- package/types/components/_core.mtermvectors.d.ts +44 -0
- package/types/components/_core.rank_eval.d.ts +92 -0
- package/types/components/_core.reindex.d.ts +47 -0
- package/types/components/_core.reindex_rethrottle.d.ts +50 -0
- package/types/components/_core.scripts_painless_execute.d.ts +24 -0
- package/types/components/_core.search.d.ts +382 -0
- package/types/components/_core.search_shards.d.ts +23 -0
- package/types/components/_core.termvectors.d.ts +52 -0
- package/types/components/_core.update.d.ts +21 -0
- package/types/components/_core.update_by_query_rethrottle.d.ts +22 -0
- package/types/components/_global.d.ts +24 -0
- package/types/components/cat._common.d.ts +61 -0
- package/types/components/cat.aliases.d.ts +26 -0
- package/types/components/cat.allocation.d.ts +29 -0
- package/types/components/cat.cluster_manager.d.ts +23 -0
- package/types/components/cat.count.d.ts +23 -0
- package/types/components/cat.fielddata.d.ts +25 -0
- package/types/components/cat.health.d.ts +36 -0
- package/types/components/cat.indices.d.ts +160 -0
- package/types/components/cat.master.d.ts +23 -0
- package/types/components/cat.nodeattrs.d.ts +27 -0
- package/types/components/cat.nodes.d.ts +118 -0
- package/types/components/cat.pending_tasks.d.ts +23 -0
- package/types/components/cat.plugins.d.ts +26 -0
- package/types/components/cat.recovery.d.ts +46 -0
- package/types/components/cat.repositories.d.ts +21 -0
- package/types/components/cat.segments.d.ts +35 -0
- package/types/components/cat.shards.d.ts +95 -0
- package/types/components/cat.snapshots.d.ts +33 -0
- package/types/components/cat.tasks.d.ts +36 -0
- package/types/components/cat.templates.d.ts +25 -0
- package/types/components/cat.thread_pool.d.ts +40 -0
- package/types/components/cluster._common.d.ts +39 -0
- package/types/components/cluster.allocation_explain.d.ts +97 -0
- package/types/components/cluster.health.d.ts +60 -0
- package/types/components/cluster.pending_tasks.d.ts +26 -0
- package/types/components/cluster.remote_info.d.ts +40 -0
- package/types/components/cluster.reroute.d.ts +73 -0
- package/types/components/cluster.state.d.ts +18 -0
- package/types/components/cluster.stats.d.ts +267 -0
- package/types/components/dangling_indices.list_dangling_indices.d.ts +25 -0
- package/types/components/indices._common.d.ts +499 -0
- package/types/components/indices.add_block.d.ts +24 -0
- package/types/components/indices.analyze.d.ts +62 -0
- package/types/components/indices.close.d.ts +26 -0
- package/types/components/indices.data_streams_stats.d.ts +25 -0
- package/types/components/indices.get_alias.d.ts +21 -0
- package/types/components/indices.get_field_mapping.d.ts +21 -0
- package/types/components/indices.get_index_template.d.ts +23 -0
- package/types/components/indices.get_mapping.d.ts +22 -0
- package/types/components/indices.put_index_template.d.ts +25 -0
- package/types/components/indices.recovery.d.ts +116 -0
- package/types/components/indices.resolve_index.d.ts +35 -0
- package/types/components/indices.rollover.d.ts +35 -0
- package/types/components/indices.segments.d.ts +46 -0
- package/types/components/indices.shard_stores.d.ts +40 -0
- package/types/components/indices.simulate_template.d.ts +30 -0
- package/types/components/indices.stats.d.ts +149 -0
- package/types/components/indices.update_aliases.d.ts +52 -0
- package/types/components/indices.validate_query.d.ts +24 -0
- package/types/components/ingest._common.d.ts +338 -0
- package/types/components/ingest.simulate.d.ts +46 -0
- package/types/components/knn._common.d.ts +22 -0
- package/types/components/ml._common.d.ts +67 -0
- package/types/components/nodes._common.d.ts +611 -0
- package/types/components/nodes.info.d.ts +338 -0
- package/types/components/nodes.reload_secure_settings.d.ts +23 -0
- package/types/components/nodes.stats.d.ts +27 -0
- package/types/components/nodes.usage.d.ts +32 -0
- package/types/components/notifications._common.d.ts +156 -0
- package/types/components/remote_store._common.d.ts +28 -0
- package/types/components/rollups._common.d.ts +124 -0
- package/types/components/search_pipeline._common.d.ts +151 -0
- package/types/components/security._common.d.ts +334 -0
- package/types/components/snapshot._common.d.ts +134 -0
- package/types/components/snapshot.cleanup_repository.d.ts +21 -0
- package/types/components/snapshot.get.d.ts +24 -0
- package/types/components/snapshot.restore.d.ts +23 -0
- package/types/components/snapshot.verify_repository.d.ts +21 -0
- package/types/components/sql._common.d.ts +117 -0
- package/types/components/tasks._common.d.ts +58 -0
- package/types/components/transforms._common.d.ts +130 -0
- package/types/functions/bulk.d.ts +48 -0
- package/types/functions/cat.aliases.d.ts +36 -0
- package/types/functions/cat.all_pit_segments.d.ts +34 -0
- package/types/functions/cat.allocation.d.ts +38 -0
- package/types/functions/cat.cluster_manager.d.ts +36 -0
- package/types/functions/cat.count.d.ts +34 -0
- package/types/functions/cat.fielddata.d.ts +35 -0
- package/types/functions/cat.health.d.ts +35 -0
- package/types/functions/cat.help.d.ts +25 -0
- package/types/functions/cat.indices.d.ts +43 -0
- package/types/functions/cat.master.d.ts +36 -0
- package/types/functions/cat.nodeattrs.d.ts +36 -0
- package/types/functions/cat.nodes.d.ts +39 -0
- package/types/functions/cat.pending_tasks.d.ts +37 -0
- package/types/functions/cat.pit_segments.d.ts +39 -0
- package/types/functions/cat.plugins.d.ts +36 -0
- package/types/functions/cat.recovery.d.ts +38 -0
- package/types/functions/cat.repositories.d.ts +36 -0
- package/types/functions/cat.segment_replication.d.ts +45 -0
- package/types/functions/cat.segments.d.ts +37 -0
- package/types/functions/cat.shards.d.ts +39 -0
- package/types/functions/cat.snapshots.d.ts +38 -0
- package/types/functions/cat.tasks.d.ts +38 -0
- package/types/functions/cat.templates.d.ts +37 -0
- package/types/functions/cat.thread_pool.d.ts +38 -0
- package/types/functions/clear_scroll.d.ts +36 -0
- package/types/functions/cluster.allocation_explain.d.ts +64 -0
- package/types/functions/cluster.delete_component_template.d.ts +31 -0
- package/types/functions/cluster.delete_decommission_awareness.d.ts +25 -0
- package/types/functions/cluster.delete_voting_config_exclusions.d.ts +27 -0
- package/types/functions/cluster.delete_weighted_routing.d.ts +25 -0
- package/types/functions/cluster.exists_component_template.d.ts +31 -0
- package/types/functions/cluster.get_component_template.d.ts +34 -0
- package/types/functions/cluster.get_decommission_awareness.d.ts +27 -0
- package/types/functions/cluster.get_settings.d.ts +36 -0
- package/types/functions/cluster.get_weighted_routing.d.ts +27 -0
- package/types/functions/cluster.health.d.ts +42 -0
- package/types/functions/cluster.pending_tasks.d.ts +33 -0
- package/types/functions/cluster.post_voting_config_exclusions.d.ts +30 -0
- package/types/functions/cluster.put_component_template.d.ts +41 -0
- package/types/functions/cluster.put_decommission_awareness.d.ts +28 -0
- package/types/functions/cluster.put_settings.d.ts +45 -0
- package/types/functions/cluster.put_weighted_routing.d.ts +27 -0
- package/types/functions/cluster.remote_info.d.ts +26 -0
- package/types/functions/cluster.reroute.d.ts +44 -0
- package/types/functions/cluster.state.d.ts +39 -0
- package/types/functions/cluster.stats.d.ts +31 -0
- package/types/functions/count.d.ts +51 -0
- package/types/functions/create.d.ts +39 -0
- package/types/functions/create_pit.d.ts +38 -0
- package/types/functions/dangling_indices.delete_dangling_index.d.ts +32 -0
- package/types/functions/dangling_indices.import_dangling_index.d.ts +32 -0
- package/types/functions/dangling_indices.list_dangling_indices.d.ts +31 -0
- package/types/functions/delete.d.ts +37 -0
- package/types/functions/delete_all_pits.d.ts +28 -0
- package/types/functions/delete_by_query.d.ts +86 -0
- package/types/functions/delete_by_query_rethrottle.d.ts +30 -0
- package/types/functions/delete_pit.d.ts +34 -0
- package/types/functions/delete_script.d.ts +31 -0
- package/types/functions/exists.d.ts +40 -0
- package/types/functions/exists_source.d.ts +39 -0
- package/types/functions/explain.d.ts +55 -0
- package/types/functions/field_caps.d.ts +46 -0
- package/types/functions/get.d.ts +41 -0
- package/types/functions/get_all_pits.d.ts +28 -0
- package/types/functions/get_script.d.ts +34 -0
- package/types/functions/get_script_context.d.ts +28 -0
- package/types/functions/get_script_languages.d.ts +29 -0
- package/types/functions/get_source.d.ts +39 -0
- package/types/functions/index.d.ts +43 -0
- package/types/functions/indices.add_block.d.ts +40 -0
- package/types/functions/indices.analyze.d.ts +46 -0
- package/types/functions/indices.clear_cache.d.ts +36 -0
- package/types/functions/indices.clone.d.ts +46 -0
- package/types/functions/indices.close.d.ts +40 -0
- package/types/functions/indices.create.d.ts +45 -0
- package/types/functions/indices.create_data_stream.d.ts +31 -0
- package/types/functions/indices.data_streams_stats.d.ts +36 -0
- package/types/functions/indices.delete.d.ts +34 -0
- package/types/functions/indices.delete_alias.d.ts +32 -0
- package/types/functions/indices.delete_data_stream.d.ts +28 -0
- package/types/functions/indices.delete_index_template.d.ts +31 -0
- package/types/functions/indices.delete_template.d.ts +31 -0
- package/types/functions/indices.exists.d.ts +35 -0
- package/types/functions/indices.exists_alias.d.ts +33 -0
- package/types/functions/indices.exists_index_template.d.ts +32 -0
- package/types/functions/indices.exists_template.d.ts +32 -0
- package/types/functions/indices.flush.d.ts +33 -0
- package/types/functions/indices.forcemerge.d.ts +38 -0
- package/types/functions/indices.get.d.ts +37 -0
- package/types/functions/indices.get_alias.d.ts +34 -0
- package/types/functions/indices.get_data_stream.d.ts +31 -0
- package/types/functions/indices.get_field_mapping.d.ts +35 -0
- package/types/functions/indices.get_index_template.d.ts +35 -0
- package/types/functions/indices.get_mapping.d.ts +35 -0
- package/types/functions/indices.get_settings.d.ts +38 -0
- package/types/functions/indices.get_template.d.ts +33 -0
- package/types/functions/indices.get_upgrade.d.ts +31 -0
- package/types/functions/indices.open.d.ts +42 -0
- package/types/functions/indices.put_alias.d.ts +45 -0
- package/types/functions/indices.put_index_template.d.ts +45 -0
- package/types/functions/indices.put_mapping.d.ts +51 -0
- package/types/functions/indices.put_settings.d.ts +38 -0
- package/types/functions/indices.put_template.d.ts +44 -0
- package/types/functions/indices.recovery.d.ts +31 -0
- package/types/functions/indices.refresh.d.ts +31 -0
- package/types/functions/indices.resolve_index.d.ts +34 -0
- package/types/functions/indices.rollover.d.ts +53 -0
- package/types/functions/indices.segments.d.ts +36 -0
- package/types/functions/indices.shard_stores.d.ts +35 -0
- package/types/functions/indices.shrink.d.ts +47 -0
- package/types/functions/indices.simulate_index_template.d.ts +46 -0
- package/types/functions/indices.simulate_template.d.ts +38 -0
- package/types/functions/indices.split.d.ts +48 -0
- package/types/functions/indices.stats.d.ts +43 -0
- package/types/functions/indices.update_aliases.d.ts +36 -0
- package/types/functions/indices.upgrade.d.ts +33 -0
- package/types/functions/indices.validate_query.d.ts +52 -0
- package/types/functions/info.d.ts +32 -0
- package/types/functions/ingest.delete_pipeline.d.ts +31 -0
- package/types/functions/ingest.get_pipeline.d.ts +31 -0
- package/types/functions/ingest.processor_grok.d.ts +27 -0
- package/types/functions/ingest.put_pipeline.d.ts +41 -0
- package/types/functions/ingest.simulate.d.ts +39 -0
- package/types/functions/knn.delete_model.d.ts +27 -0
- package/types/functions/knn.get_model.d.ts +27 -0
- package/types/functions/knn.search_models.d.ts +73 -0
- package/types/functions/knn.stats.d.ts +30 -0
- package/types/functions/knn.train_model.d.ts +39 -0
- package/types/functions/knn.warmup.d.ts +27 -0
- package/types/functions/mget.d.ts +46 -0
- package/types/functions/ml.delete_model.d.ts +28 -0
- package/types/functions/ml.delete_model_group.d.ts +28 -0
- package/types/functions/ml.get_model_group.d.ts +28 -0
- package/types/functions/ml.get_task.d.ts +28 -0
- package/types/functions/ml.register_model.d.ts +36 -0
- package/types/functions/ml.register_model_group.d.ts +36 -0
- package/types/functions/ml.search_models.d.ts +28 -0
- package/types/functions/msearch.d.ts +39 -0
- package/types/functions/msearch_template.d.ts +38 -0
- package/types/functions/mtermvectors.d.ts +49 -0
- package/types/functions/nodes.hot_threads.d.ts +35 -0
- package/types/functions/nodes.info.d.ts +32 -0
- package/types/functions/nodes.reload_secure_settings.d.ts +35 -0
- package/types/functions/nodes.stats.d.ts +39 -0
- package/types/functions/nodes.usage.d.ts +31 -0
- package/types/functions/notifications.create_config.d.ts +30 -0
- package/types/functions/notifications.delete_config.d.ts +28 -0
- package/types/functions/notifications.delete_configs.d.ts +29 -0
- package/types/functions/notifications.get_config.d.ts +28 -0
- package/types/functions/notifications.get_configs.d.ts +74 -0
- package/types/functions/notifications.list_channels.d.ts +31 -0
- package/types/functions/notifications.list_features.d.ts +29 -0
- package/types/functions/notifications.send_test.d.ts +31 -0
- package/types/functions/notifications.update_config.d.ts +31 -0
- package/types/functions/ping.d.ts +25 -0
- package/types/functions/ppl.explain.d.ts +30 -0
- package/types/functions/ppl.get_stats.d.ts +28 -0
- package/types/functions/ppl.post_stats.d.ts +30 -0
- package/types/functions/ppl.query.d.ts +30 -0
- package/types/functions/put_script.d.ts +37 -0
- package/types/functions/rank_eval.d.ts +43 -0
- package/types/functions/reindex.d.ts +63 -0
- package/types/functions/reindex_rethrottle.d.ts +32 -0
- package/types/functions/remote_store.restore.d.ts +38 -0
- package/types/functions/render_search_template.d.ts +37 -0
- package/types/functions/rollups.delete.d.ts +28 -0
- package/types/functions/rollups.explain.d.ts +29 -0
- package/types/functions/rollups.get.d.ts +29 -0
- package/types/functions/rollups.put.d.ts +32 -0
- package/types/functions/rollups.start.d.ts +28 -0
- package/types/functions/rollups.stop.d.ts +28 -0
- package/types/functions/scripts_painless_execute.d.ts +37 -0
- package/types/functions/scroll.d.ts +37 -0
- package/types/functions/search.d.ts +115 -0
- package/types/functions/search_pipeline.delete.d.ts +32 -0
- package/types/functions/search_pipeline.get.d.ts +30 -0
- package/types/functions/search_pipeline.put.d.ts +34 -0
- package/types/functions/search_shards.d.ts +39 -0
- package/types/functions/search_template.d.ts +67 -0
- package/types/functions/security.authinfo.d.ts +29 -0
- package/types/functions/security.authtoken.d.ts +26 -0
- package/types/functions/security.change_password.d.ts +28 -0
- package/types/functions/security.config_upgrade_check.d.ts +26 -0
- package/types/functions/security.config_upgrade_perform.d.ts +28 -0
- package/types/functions/security.create_action_group.d.ts +29 -0
- package/types/functions/security.create_allowlist.d.ts +28 -0
- package/types/functions/security.create_role.d.ts +29 -0
- package/types/functions/security.create_role_mapping.d.ts +29 -0
- package/types/functions/security.create_tenant.d.ts +29 -0
- package/types/functions/security.create_update_tenancy_config.d.ts +30 -0
- package/types/functions/security.create_user.d.ts +29 -0
- package/types/functions/security.create_user_legacy.d.ts +29 -0
- package/types/functions/security.delete_action_group.d.ts +28 -0
- package/types/functions/security.delete_distinguished_name.d.ts +28 -0
- package/types/functions/security.delete_role.d.ts +28 -0
- package/types/functions/security.delete_role_mapping.d.ts +28 -0
- package/types/functions/security.delete_tenant.d.ts +28 -0
- package/types/functions/security.delete_user.d.ts +28 -0
- package/types/functions/security.delete_user_legacy.d.ts +28 -0
- package/types/functions/security.flush_cache.d.ts +26 -0
- package/types/functions/security.generate_obo_token.d.ts +28 -0
- package/types/functions/security.generate_user_token.d.ts +28 -0
- package/types/functions/security.generate_user_token_legacy.d.ts +28 -0
- package/types/functions/security.get_account_details.d.ts +26 -0
- package/types/functions/security.get_action_group.d.ts +28 -0
- package/types/functions/security.get_action_groups.d.ts +26 -0
- package/types/functions/security.get_allowlist.d.ts +26 -0
- package/types/functions/security.get_audit_configuration.d.ts +26 -0
- package/types/functions/security.get_certificates.d.ts +26 -0
- package/types/functions/security.get_configuration.d.ts +26 -0
- package/types/functions/security.get_dashboards_info.d.ts +26 -0
- package/types/functions/security.get_distinguished_name.d.ts +29 -0
- package/types/functions/security.get_distinguished_names.d.ts +28 -0
- package/types/functions/security.get_permissions_info.d.ts +26 -0
- package/types/functions/security.get_role.d.ts +28 -0
- package/types/functions/security.get_role_mapping.d.ts +28 -0
- package/types/functions/security.get_role_mappings.d.ts +26 -0
- package/types/functions/security.get_roles.d.ts +26 -0
- package/types/functions/security.get_sslinfo.d.ts +28 -0
- package/types/functions/security.get_tenancy_config.d.ts +26 -0
- package/types/functions/security.get_tenant.d.ts +28 -0
- package/types/functions/security.get_tenants.d.ts +26 -0
- package/types/functions/security.get_user.d.ts +28 -0
- package/types/functions/security.get_user_legacy.d.ts +28 -0
- package/types/functions/security.get_users.d.ts +26 -0
- package/types/functions/security.get_users_legacy.d.ts +26 -0
- package/types/functions/security.health.d.ts +28 -0
- package/types/functions/security.migrate.d.ts +26 -0
- package/types/functions/security.patch_action_group.d.ts +31 -0
- package/types/functions/security.patch_action_groups.d.ts +30 -0
- package/types/functions/security.patch_allowlist.d.ts +30 -0
- package/types/functions/security.patch_audit_configuration.d.ts +30 -0
- package/types/functions/security.patch_configuration.d.ts +30 -0
- package/types/functions/security.patch_distinguished_name.d.ts +29 -0
- package/types/functions/security.patch_distinguished_names.d.ts +30 -0
- package/types/functions/security.patch_role.d.ts +31 -0
- package/types/functions/security.patch_role_mapping.d.ts +31 -0
- package/types/functions/security.patch_role_mappings.d.ts +30 -0
- package/types/functions/security.patch_roles.d.ts +30 -0
- package/types/functions/security.patch_tenant.d.ts +31 -0
- package/types/functions/security.patch_tenants.d.ts +30 -0
- package/types/functions/security.patch_user.d.ts +31 -0
- package/types/functions/security.patch_users.d.ts +30 -0
- package/types/functions/security.post_dashboards_info.d.ts +28 -0
- package/types/functions/security.reload_http_certificates.d.ts +26 -0
- package/types/functions/security.reload_transport_certificates.d.ts +26 -0
- package/types/functions/security.tenant_info.d.ts +26 -0
- package/types/functions/security.update_audit_configuration.d.ts +28 -0
- package/types/functions/security.update_configuration.d.ts +28 -0
- package/types/functions/security.update_distinguished_name.d.ts +29 -0
- package/types/functions/security.validate.d.ts +28 -0
- package/types/functions/security.who_am_i.d.ts +26 -0
- package/types/functions/security.who_am_i_protected.d.ts +26 -0
- package/types/functions/snapshot.cleanup_repository.d.ts +34 -0
- package/types/functions/snapshot.clone.d.ts +37 -0
- package/types/functions/snapshot.create.d.ts +46 -0
- package/types/functions/snapshot.create_repository.d.ts +40 -0
- package/types/functions/snapshot.delete.d.ts +31 -0
- package/types/functions/snapshot.delete_repository.d.ts +31 -0
- package/types/functions/snapshot.get.d.ts +40 -0
- package/types/functions/snapshot.get_repository.d.ts +32 -0
- package/types/functions/snapshot.restore.d.ts +50 -0
- package/types/functions/snapshot.status.d.ts +35 -0
- package/types/functions/snapshot.verify_repository.d.ts +34 -0
- package/types/functions/sql.close.d.ts +30 -0
- package/types/functions/sql.explain.d.ts +30 -0
- package/types/functions/sql.get_stats.d.ts +28 -0
- package/types/functions/sql.post_stats.d.ts +30 -0
- package/types/functions/sql.query.d.ts +30 -0
- package/types/functions/sql.settings.d.ts +31 -0
- package/types/functions/tasks.cancel.d.ts +33 -0
- package/types/functions/tasks.get.d.ts +36 -0
- package/types/functions/tasks.list.d.ts +35 -0
- package/types/functions/termvectors.d.ts +55 -0
- package/types/functions/transforms.delete.d.ts +28 -0
- package/types/functions/transforms.explain.d.ts +29 -0
- package/types/functions/transforms.get.d.ts +29 -0
- package/types/functions/transforms.preview.d.ts +26 -0
- package/types/functions/transforms.put.d.ts +32 -0
- package/types/functions/transforms.search.d.ts +32 -0
- package/types/functions/transforms.start.d.ts +28 -0
- package/types/functions/transforms.stop.d.ts +28 -0
- package/types/functions/update.d.ts +54 -0
- package/types/functions/update_by_query.d.ts +89 -0
- package/types/functions/update_by_query_rethrottle.d.ts +32 -0
- package/api/api/bulk.js +0 -130
- package/api/api/cat.js +0 -933
- package/api/api/clear_scroll.js +0 -79
- package/api/api/cluster.js +0 -814
- package/api/api/count.js +0 -133
- package/api/api/create.js +0 -131
- package/api/api/create_pit.js +0 -88
- package/api/api/dangling_indices.js +0 -214
- package/api/api/delete.js +0 -125
- package/api/api/delete_all_pits.js +0 -53
- package/api/api/delete_by_query.js +0 -192
- package/api/api/delete_by_query_rethrottle.js +0 -98
- package/api/api/delete_pit.js +0 -61
- package/api/api/delete_script.js +0 -94
- package/api/api/exists.js +0 -133
- package/api/api/exists_source.js +0 -142
- package/api/api/explain.js +0 -140
- package/api/api/features.js +0 -136
- package/api/api/field_caps.js +0 -102
- package/api/api/get.js +0 -133
- package/api/api/get_all_pits.js +0 -53
- package/api/api/get_script.js +0 -95
- package/api/api/get_script_context.js +0 -71
- package/api/api/get_script_languages.js +0 -71
- package/api/api/get_source.js +0 -133
- package/api/api/http.js +0 -213
- package/api/api/index.js +0 -142
- package/api/api/indices.js +0 -2541
- package/api/api/info.js +0 -71
- package/api/api/ingest.js +0 -335
- package/api/api/mget.js +0 -128
- package/api/api/msearch.js +0 -125
- package/api/api/msearch_template.js +0 -126
- package/api/api/mtermvectors.js +0 -98
- package/api/api/nodes.js +0 -496
- package/api/api/ping.js +0 -71
- package/api/api/put_script.js +0 -113
- package/api/api/rank_eval.js +0 -107
- package/api/api/reindex.js +0 -109
- package/api/api/reindex_rethrottle.js +0 -97
- package/api/api/render_search_template.js +0 -79
- package/api/api/rollups.js +0 -249
- package/api/api/scripts_painless_execute.js +0 -73
- package/api/api/scroll.js +0 -96
- package/api/api/search.js +0 -221
- package/api/api/search_shards.js +0 -102
- package/api/api/search_template.js +0 -145
- package/api/api/security.js +0 -1954
- package/api/api/shutdown.js +0 -149
- package/api/api/snapshot.js +0 -782
- package/api/api/tasks.js +0 -193
- package/api/api/terms_enum.js +0 -67
- package/api/api/termvectors.js +0 -134
- package/api/api/transforms.js +0 -304
- package/api/api/update.js +0 -147
- package/api/api/update_by_query.js +0 -193
- package/api/api/update_by_query_rethrottle.js +0 -98
- package/api/new.d.ts +0 -3194
- package/api/opensearch_dashboards.d.ts +0 -278
- package/api/requestParams.d.ts +0 -1838
- package/api/types.d.ts +0 -10014
package/api/api/cat.js
DELETED
|
@@ -1,933 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright OpenSearch Contributors
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*
|
|
5
|
-
* The OpenSearch Contributors require contributions made to
|
|
6
|
-
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
-
* compatible open source license.
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
13
|
-
* license agreements. See the NOTICE file distributed with
|
|
14
|
-
* this work for additional information regarding copyright
|
|
15
|
-
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
16
|
-
* the Apache License, Version 2.0 (the "License"); you may
|
|
17
|
-
* not use this file except in compliance with the License.
|
|
18
|
-
* You may obtain a copy of the License at
|
|
19
|
-
*
|
|
20
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
-
*
|
|
22
|
-
* Unless required by applicable law or agreed to in writing,
|
|
23
|
-
* software distributed under the License is distributed on an
|
|
24
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
25
|
-
* KIND, either express or implied. See the License for the
|
|
26
|
-
* specific language governing permissions and limitations
|
|
27
|
-
* under the License.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
'use strict';
|
|
31
|
-
|
|
32
|
-
/* eslint camelcase: 0 */
|
|
33
|
-
/* eslint no-unused-vars: 0 */
|
|
34
|
-
|
|
35
|
-
/** @namespace API-CAT */
|
|
36
|
-
|
|
37
|
-
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils');
|
|
38
|
-
const acceptedQuerystring = [
|
|
39
|
-
'format',
|
|
40
|
-
'local',
|
|
41
|
-
'h',
|
|
42
|
-
'help',
|
|
43
|
-
's',
|
|
44
|
-
'v',
|
|
45
|
-
'expand_wildcards',
|
|
46
|
-
'pretty',
|
|
47
|
-
'human',
|
|
48
|
-
'error_trace',
|
|
49
|
-
'source',
|
|
50
|
-
'filter_path',
|
|
51
|
-
'bytes',
|
|
52
|
-
'cluster_manager_timeout',
|
|
53
|
-
'master_timeout',
|
|
54
|
-
'fields',
|
|
55
|
-
'time',
|
|
56
|
-
'ts',
|
|
57
|
-
'health',
|
|
58
|
-
'pri',
|
|
59
|
-
'include_unloaded_segments',
|
|
60
|
-
'allow_no_match',
|
|
61
|
-
'allow_no_datafeeds',
|
|
62
|
-
'allow_no_jobs',
|
|
63
|
-
'from',
|
|
64
|
-
'size',
|
|
65
|
-
'full_id',
|
|
66
|
-
'include_bootstrap',
|
|
67
|
-
'active_only',
|
|
68
|
-
'detailed',
|
|
69
|
-
'index',
|
|
70
|
-
'ignore_unavailable',
|
|
71
|
-
'nodes',
|
|
72
|
-
'actions',
|
|
73
|
-
'parent_task_id',
|
|
74
|
-
'pri',
|
|
75
|
-
];
|
|
76
|
-
const snakeCase = {
|
|
77
|
-
expandWildcards: 'expand_wildcards',
|
|
78
|
-
errorTrace: 'error_trace',
|
|
79
|
-
filterPath: 'filter_path',
|
|
80
|
-
clusterManagerTimeout: 'cluster_manager_timeout',
|
|
81
|
-
masterTimeout: 'master_timeout',
|
|
82
|
-
includeUnloadedSegments: 'include_unloaded_segments',
|
|
83
|
-
allowNoMatch: 'allow_no_match',
|
|
84
|
-
allowNoDatafeeds: 'allow_no_datafeeds',
|
|
85
|
-
allowNoJobs: 'allow_no_jobs',
|
|
86
|
-
fullId: 'full_id',
|
|
87
|
-
includeBootstrap: 'include_bootstrap',
|
|
88
|
-
activeOnly: 'active_only',
|
|
89
|
-
ignoreUnavailable: 'ignore_unavailable',
|
|
90
|
-
parentTaskId: 'parent_task_id',
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
function CatApi(transport, ConfigurationError) {
|
|
94
|
-
this.transport = transport;
|
|
95
|
-
this[kConfigurationError] = ConfigurationError;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The CAT aliases operation lists the mapping of aliases to indices, plus routing and filtering information.
|
|
100
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-aliases/ OpenSearch - CAT aliases}
|
|
101
|
-
*
|
|
102
|
-
* @memberOf API-CAT
|
|
103
|
-
*
|
|
104
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
105
|
-
* @param {string} [params.name] - To limit the information to specific aliases, provide the alias names seperated by commas.
|
|
106
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
107
|
-
* @param {string} [params.expand_wildcards=open] - Expands wildcard expressions to concrete indices. Combine multiple values with commas. Supported values are 'all', 'open', 'closed', 'hidden', and 'none'. Default is 'open'.
|
|
108
|
-
*
|
|
109
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
110
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
111
|
-
*
|
|
112
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-aliases/#response CAT aliases Response}
|
|
113
|
-
*/
|
|
114
|
-
CatApi.prototype.aliases = function catAliasesApi(params, options, callback) {
|
|
115
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
116
|
-
|
|
117
|
-
let { method, body, name, ...querystring } = params;
|
|
118
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
119
|
-
|
|
120
|
-
let path = '';
|
|
121
|
-
if (name != null) {
|
|
122
|
-
if (method == null) method = 'GET';
|
|
123
|
-
path = '/' + '_cat' + '/' + 'aliases' + '/' + encodeURIComponent(name);
|
|
124
|
-
} else {
|
|
125
|
-
if (method == null) method = 'GET';
|
|
126
|
-
path = '/' + '_cat' + '/' + 'aliases';
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// build request object
|
|
130
|
-
const request = {
|
|
131
|
-
method,
|
|
132
|
-
path,
|
|
133
|
-
body: null,
|
|
134
|
-
querystring,
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
return this.transport.request(request, options, callback);
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* The CAT allocation operation lists the allocation of disk space for indices and the number of shards on each node.
|
|
142
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-allocation/ OpenSearch - CAT allocation}
|
|
143
|
-
*
|
|
144
|
-
* @memberOf API-CAT
|
|
145
|
-
*
|
|
146
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
147
|
-
* @param {string} [params.node_id] - To limit the information to specific nodes, provide the node names seperated by commas.
|
|
148
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
149
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
150
|
-
* @param {string} [params.bytes] - Specify the units for byte size. For example, '7kb' or '6gb'.
|
|
151
|
-
*
|
|
152
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
153
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
154
|
-
*
|
|
155
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-allocation/#response CAT allocation Response}
|
|
156
|
-
*/
|
|
157
|
-
CatApi.prototype.allocation = function catAllocationApi(params, options, callback) {
|
|
158
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
159
|
-
|
|
160
|
-
let { method, body, nodeId, node_id, ...querystring } = params;
|
|
161
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
162
|
-
|
|
163
|
-
let path = '';
|
|
164
|
-
if ((node_id || nodeId) != null) {
|
|
165
|
-
if (method == null) method = 'GET';
|
|
166
|
-
path = '/' + '_cat' + '/' + 'allocation' + '/' + encodeURIComponent(node_id || nodeId);
|
|
167
|
-
} else {
|
|
168
|
-
if (method == null) method = 'GET';
|
|
169
|
-
path = '/' + '_cat' + '/' + 'allocation';
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// build request object
|
|
173
|
-
const request = {
|
|
174
|
-
method,
|
|
175
|
-
path,
|
|
176
|
-
body: null,
|
|
177
|
-
querystring,
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
return this.transport.request(request, options, callback);
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The CAT count operation lists the number of documents in your cluster.
|
|
185
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-count/ OpenSearch - CAT count}
|
|
186
|
-
*
|
|
187
|
-
* @memberOf API-CAT
|
|
188
|
-
*
|
|
189
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
190
|
-
* @param {string} [params.index] - To see the number of documents in specific indices or aliases, provide the index/alias names seperated by commas.
|
|
191
|
-
*
|
|
192
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
193
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
194
|
-
*
|
|
195
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-count/#response CAT count Response}
|
|
196
|
-
*/
|
|
197
|
-
CatApi.prototype.count = function catCountApi(params, options, callback) {
|
|
198
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
199
|
-
|
|
200
|
-
let { method, body, index, ...querystring } = params;
|
|
201
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
202
|
-
|
|
203
|
-
let path = '';
|
|
204
|
-
if (index != null) {
|
|
205
|
-
if (method == null) method = 'GET';
|
|
206
|
-
path = '/' + '_cat' + '/' + 'count' + '/' + encodeURIComponent(index);
|
|
207
|
-
} else {
|
|
208
|
-
if (method == null) method = 'GET';
|
|
209
|
-
path = '/' + '_cat' + '/' + 'count';
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// build request object
|
|
213
|
-
const request = {
|
|
214
|
-
method,
|
|
215
|
-
path,
|
|
216
|
-
body: null,
|
|
217
|
-
querystring,
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
return this.transport.request(request, options, callback);
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* The CAT fielddata operation lists the memory size used by each field per node.
|
|
225
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-field-data/ OpenSearch - CAT fielddata}
|
|
226
|
-
*
|
|
227
|
-
* @memberOf API-CAT
|
|
228
|
-
*
|
|
229
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
230
|
-
* @param {string} [params.fields] - To limit the information to specific fields, provide the field names seperated by commas.
|
|
231
|
-
*
|
|
232
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
233
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
234
|
-
*
|
|
235
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-field-data/#response CAT fielddata Response}
|
|
236
|
-
*/
|
|
237
|
-
CatApi.prototype.fielddata = function catFielddataApi(params, options, callback) {
|
|
238
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
239
|
-
|
|
240
|
-
let { method, body, fields, ...querystring } = params;
|
|
241
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
242
|
-
|
|
243
|
-
let path = '';
|
|
244
|
-
if (fields != null) {
|
|
245
|
-
if (method == null) method = 'GET';
|
|
246
|
-
path = '/' + '_cat' + '/' + 'fielddata' + '/' + encodeURIComponent(fields);
|
|
247
|
-
} else {
|
|
248
|
-
if (method == null) method = 'GET';
|
|
249
|
-
path = '/' + '_cat' + '/' + 'fielddata';
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
// build request object
|
|
253
|
-
const request = {
|
|
254
|
-
method,
|
|
255
|
-
path,
|
|
256
|
-
body: null,
|
|
257
|
-
querystring,
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
return this.transport.request(request, options, callback);
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* The CAT health operation lists the status of the cluster, how long the cluster has been up, the number of nodes,
|
|
265
|
-
* and other useful information that helps you analyze the health of your cluster.
|
|
266
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-health/ OpenSearch - CAT health}
|
|
267
|
-
*
|
|
268
|
-
* @memberOf API-CAT
|
|
269
|
-
*
|
|
270
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
271
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
272
|
-
* @param {boolean} [params.ts=true] - If true, returns HH:MM:SS and Unix epoch timestamps.
|
|
273
|
-
*
|
|
274
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
275
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
276
|
-
*
|
|
277
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-health/#response CAT health Response}
|
|
278
|
-
*/
|
|
279
|
-
CatApi.prototype.health = function catHealthApi(params, options, callback) {
|
|
280
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
281
|
-
|
|
282
|
-
let { method, body, ...querystring } = params;
|
|
283
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
284
|
-
|
|
285
|
-
let path = '';
|
|
286
|
-
if (method == null) method = 'GET';
|
|
287
|
-
path = '/' + '_cat' + '/' + 'health';
|
|
288
|
-
|
|
289
|
-
// build request object
|
|
290
|
-
const request = {
|
|
291
|
-
method,
|
|
292
|
-
path,
|
|
293
|
-
body: null,
|
|
294
|
-
querystring,
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
return this.transport.request(request, options, callback);
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* See the available operations in the CAT API
|
|
302
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/index OpenSearch - CAT}
|
|
303
|
-
*
|
|
304
|
-
* @memberOf API-CAT
|
|
305
|
-
*
|
|
306
|
-
* @param {Object} params - (ignored)
|
|
307
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
308
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
309
|
-
*
|
|
310
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
311
|
-
*/
|
|
312
|
-
CatApi.prototype.help = function catHelpApi(params, options, callback) {
|
|
313
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
314
|
-
|
|
315
|
-
let { method, body, ...querystring } = params;
|
|
316
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
317
|
-
|
|
318
|
-
let path = '';
|
|
319
|
-
if (method == null) method = 'GET';
|
|
320
|
-
path = '/' + '_cat';
|
|
321
|
-
|
|
322
|
-
// build request object
|
|
323
|
-
const request = {
|
|
324
|
-
method,
|
|
325
|
-
path,
|
|
326
|
-
body: null,
|
|
327
|
-
querystring,
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
return this.transport.request(request, options, callback);
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* The CAT indices operation lists information related to indices—how much disk space they are using, how many shards they have, their health status, and so on.
|
|
335
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-indices/ OpenSearch - CAT indices}
|
|
336
|
-
*
|
|
337
|
-
* @memberOf API-CAT
|
|
338
|
-
*
|
|
339
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
340
|
-
* @param {string} [params.index] - To limit the information to specific indices, provide the index names seperated by commas.
|
|
341
|
-
* @param {string} [params.bytes] - Specify the units for byte size. For example, '7kb' or '6gb'.
|
|
342
|
-
* @param {string} [params.health] - Limit indices based on their health status. Supported values are 'green', 'yellow', and 'red'.
|
|
343
|
-
* @param {boolean} [params.include_unloaded_segments=false] - Whether to include information from segments not loaded into memory.
|
|
344
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
345
|
-
* @param {boolean} [params.pri=false] - Whether to return information only from the primary shards.
|
|
346
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
347
|
-
* @param {string} [params.expand_wildcards=open] - Expands wildcard expressions to concrete indices. Combine multiple values with commas. Supported values are 'all', 'open', 'closed', 'hidden', and 'none'.
|
|
348
|
-
*
|
|
349
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
350
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
351
|
-
*
|
|
352
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-indices/#response CAT indices Response}
|
|
353
|
-
*/
|
|
354
|
-
CatApi.prototype.indices = function catIndicesApi(params, options, callback) {
|
|
355
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
356
|
-
|
|
357
|
-
let { method, body, index, ...querystring } = params;
|
|
358
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
359
|
-
|
|
360
|
-
let path = '';
|
|
361
|
-
if (index != null) {
|
|
362
|
-
if (method == null) method = 'GET';
|
|
363
|
-
path = '/' + '_cat' + '/' + 'indices' + '/' + encodeURIComponent(index);
|
|
364
|
-
} else {
|
|
365
|
-
if (method == null) method = 'GET';
|
|
366
|
-
path = '/' + '_cat' + '/' + 'indices';
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
// build request object
|
|
370
|
-
const request = {
|
|
371
|
-
method,
|
|
372
|
-
path,
|
|
373
|
-
body: null,
|
|
374
|
-
querystring,
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
return this.transport.request(request, options, callback);
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* The CAT cluster manager operation lists information that helps identify the elected cluster manager node.
|
|
382
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-cluster_manager/ OpenSearch - CAT cluster manager}
|
|
383
|
-
*
|
|
384
|
-
* @memberOf API-CAT
|
|
385
|
-
*
|
|
386
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters}
|
|
387
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
388
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
389
|
-
*
|
|
390
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-cluster_manager/#response CAT cluster manager Response}
|
|
391
|
-
*/
|
|
392
|
-
CatApi.prototype.cluster_manager = function catClusterManagerApi(params, options, callback) {
|
|
393
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
394
|
-
|
|
395
|
-
let { method, body, ...querystring } = params;
|
|
396
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
397
|
-
|
|
398
|
-
let path = '';
|
|
399
|
-
if (method == null) method = 'GET';
|
|
400
|
-
path = '/' + '_cat' + '/' + 'cluster_manager';
|
|
401
|
-
|
|
402
|
-
// build request object
|
|
403
|
-
const request = {
|
|
404
|
-
method,
|
|
405
|
-
path,
|
|
406
|
-
body: null,
|
|
407
|
-
querystring,
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
return this.transport.request(request, options, callback);
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* // TODO: delete CatApi.prototype.master when it is removed from OpenSearch
|
|
415
|
-
* @deprecated use CatApi.prototype.cluster_manager instead
|
|
416
|
-
*/
|
|
417
|
-
CatApi.prototype.master = function catMasterApi(params, options, callback) {
|
|
418
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
419
|
-
|
|
420
|
-
let { method, body, ...querystring } = params;
|
|
421
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
422
|
-
|
|
423
|
-
let path = '';
|
|
424
|
-
if (method == null) method = 'GET';
|
|
425
|
-
path = '/' + '_cat' + '/' + 'master';
|
|
426
|
-
|
|
427
|
-
// build request object
|
|
428
|
-
const request = {
|
|
429
|
-
method,
|
|
430
|
-
path,
|
|
431
|
-
body: null,
|
|
432
|
-
querystring,
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
return this.transport.request(request, options, callback);
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* The CAT nodeattrs operation lists the attributes of custom nodes.
|
|
440
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-nodeattrs/ OpenSearch - CAT aliases}
|
|
441
|
-
*
|
|
442
|
-
* @memberOf API-CAT
|
|
443
|
-
*
|
|
444
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
445
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
446
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
447
|
-
*
|
|
448
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
449
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
450
|
-
*
|
|
451
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-nodeattrs/#response CAT nodeattrs Response}
|
|
452
|
-
*/
|
|
453
|
-
CatApi.prototype.nodeattrs = function catNodeattrsApi(params, options, callback) {
|
|
454
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
455
|
-
|
|
456
|
-
let { method, body, ...querystring } = params;
|
|
457
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
458
|
-
|
|
459
|
-
let path = '';
|
|
460
|
-
if (method == null) method = 'GET';
|
|
461
|
-
path = '/' + '_cat' + '/' + 'nodeattrs';
|
|
462
|
-
|
|
463
|
-
// build request object
|
|
464
|
-
const request = {
|
|
465
|
-
method,
|
|
466
|
-
path,
|
|
467
|
-
body: null,
|
|
468
|
-
querystring,
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
return this.transport.request(request, options, callback);
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* The CAT nodes operation lists node-level information, including node roles and load metrics.
|
|
476
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-nodes/ OpenSearch - CAT nodes}
|
|
477
|
-
*
|
|
478
|
-
* @memberOf API-CAT
|
|
479
|
-
*
|
|
480
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
481
|
-
* @param {string} [params.bytes] - Specify the units for byte size. For example, '7kb' or '6gb'.
|
|
482
|
-
* @param {boolean} [params.full_id=false] - If true, return the full node ID. If false, return the shortened node ID.
|
|
483
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster_manager node.
|
|
484
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
485
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
486
|
-
* @param {boolean} [params.include_unloaded_segments=false] - Whether to include information from segments not loaded into memory.
|
|
487
|
-
*
|
|
488
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
489
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
490
|
-
*
|
|
491
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-nodes/#response CAT nodes Response}
|
|
492
|
-
*/
|
|
493
|
-
CatApi.prototype.nodes = function catNodesApi(params, options, callback) {
|
|
494
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
495
|
-
|
|
496
|
-
let { method, body, ...querystring } = params;
|
|
497
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
498
|
-
|
|
499
|
-
let path = '';
|
|
500
|
-
if (method == null) method = 'GET';
|
|
501
|
-
path = '/' + '_cat' + '/' + 'nodes';
|
|
502
|
-
|
|
503
|
-
// build request object
|
|
504
|
-
const request = {
|
|
505
|
-
method,
|
|
506
|
-
path,
|
|
507
|
-
body: null,
|
|
508
|
-
querystring,
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
return this.transport.request(request, options, callback);
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* The CAT pending tasks operation lists the progress of all pending tasks, including task priority and time in queue.
|
|
516
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-pending-tasks/ OpenSearch - CAT pending tasks}
|
|
517
|
-
*
|
|
518
|
-
* @memberOf API-CAT
|
|
519
|
-
*
|
|
520
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
521
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster_manager node.
|
|
522
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
523
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
524
|
-
*
|
|
525
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
526
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
527
|
-
*
|
|
528
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-pending-tasks/#response CAT pending tasks Response}
|
|
529
|
-
*/
|
|
530
|
-
CatApi.prototype.pendingTasks = function catPendingTasksApi(params, options, callback) {
|
|
531
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
532
|
-
|
|
533
|
-
let { method, body, ...querystring } = params;
|
|
534
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
535
|
-
|
|
536
|
-
let path = '';
|
|
537
|
-
if (method == null) method = 'GET';
|
|
538
|
-
path = '/' + '_cat' + '/' + 'pending_tasks';
|
|
539
|
-
|
|
540
|
-
// build request object
|
|
541
|
-
const request = {
|
|
542
|
-
method,
|
|
543
|
-
path,
|
|
544
|
-
body: null,
|
|
545
|
-
querystring,
|
|
546
|
-
};
|
|
547
|
-
|
|
548
|
-
return this.transport.request(request, options, callback);
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* The CAT plugins operation lists the names, components, and versions of the installed plugins.
|
|
553
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-plugins/ OpenSearch - CAT plugins}
|
|
554
|
-
*
|
|
555
|
-
* @memberOf API-CAT
|
|
556
|
-
*
|
|
557
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
558
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster_manager node.
|
|
559
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
560
|
-
*
|
|
561
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
562
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
563
|
-
*
|
|
564
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-plugins/#response CAT plugins Response}
|
|
565
|
-
*/
|
|
566
|
-
CatApi.prototype.plugins = function catPluginsApi(params, options, callback) {
|
|
567
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
568
|
-
|
|
569
|
-
let { method, body, ...querystring } = params;
|
|
570
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
571
|
-
|
|
572
|
-
let path = '';
|
|
573
|
-
if (method == null) method = 'GET';
|
|
574
|
-
path = '/' + '_cat' + '/' + 'plugins';
|
|
575
|
-
|
|
576
|
-
// build request object
|
|
577
|
-
const request = {
|
|
578
|
-
method,
|
|
579
|
-
path,
|
|
580
|
-
body: null,
|
|
581
|
-
querystring,
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
return this.transport.request(request, options, callback);
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* The CAT recovery operation lists all completed and ongoing index and shard recoveries.
|
|
589
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-recovery/ OpenSearch - CAT recovery}
|
|
590
|
-
*
|
|
591
|
-
* @memberOf API-CAT
|
|
592
|
-
*
|
|
593
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
594
|
-
* @param {string} [params.bytes] - Specify the units for byte size. For example, '7kb' or '6gb'.
|
|
595
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
596
|
-
* @param {boolean} [params.active_only=false] - Whether to only include ongoing shard recoveries.
|
|
597
|
-
* @param {boolean} [params.detailed=false] - Whether to only include ongoing shard recoveries.
|
|
598
|
-
*
|
|
599
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
600
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
601
|
-
*
|
|
602
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-recovery/#response CAT recovery Response}
|
|
603
|
-
*/
|
|
604
|
-
CatApi.prototype.recovery = function catRecoveryApi(params, options, callback) {
|
|
605
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
606
|
-
|
|
607
|
-
let { method, body, index, ...querystring } = params;
|
|
608
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
609
|
-
|
|
610
|
-
let path = '';
|
|
611
|
-
if (index != null) {
|
|
612
|
-
if (method == null) method = 'GET';
|
|
613
|
-
path = '/' + '_cat' + '/' + 'recovery' + '/' + encodeURIComponent(index);
|
|
614
|
-
} else {
|
|
615
|
-
if (method == null) method = 'GET';
|
|
616
|
-
path = '/' + '_cat' + '/' + 'recovery';
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
// build request object
|
|
620
|
-
const request = {
|
|
621
|
-
method,
|
|
622
|
-
path,
|
|
623
|
-
body: null,
|
|
624
|
-
querystring,
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
return this.transport.request(request, options, callback);
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* The CAT repositories operation lists all completed and ongoing index and shard recoveries.
|
|
632
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-repositories/ OpenSearch - CAT repositories}
|
|
633
|
-
*
|
|
634
|
-
* @memberOf API-CAT
|
|
635
|
-
*
|
|
636
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
637
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster_manager node.
|
|
638
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
639
|
-
*
|
|
640
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
641
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
642
|
-
*
|
|
643
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-repositories/#response CAT repositories Response}
|
|
644
|
-
*/
|
|
645
|
-
CatApi.prototype.repositories = function catRepositoriesApi(params, options, callback) {
|
|
646
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
647
|
-
|
|
648
|
-
let { method, body, ...querystring } = params;
|
|
649
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
650
|
-
|
|
651
|
-
let path = '';
|
|
652
|
-
if (method == null) method = 'GET';
|
|
653
|
-
path = '/' + '_cat' + '/' + 'repositories';
|
|
654
|
-
|
|
655
|
-
// build request object
|
|
656
|
-
const request = {
|
|
657
|
-
method,
|
|
658
|
-
path,
|
|
659
|
-
body: null,
|
|
660
|
-
querystring,
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
return this.transport.request(request, options, callback);
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* The cat segments operation lists Lucene segment-level information for each index.
|
|
668
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-segments/ OpenSearch - CAT segments}
|
|
669
|
-
*
|
|
670
|
-
* @memberOf API-CAT
|
|
671
|
-
*
|
|
672
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
673
|
-
* @param {string} [params.index] - To see only the information about segments of specific indices, provide the index names seperated by commas.
|
|
674
|
-
* @param {string} [params.bytes] - Specify the units for byte size. For example, '7kb' or '6gb'.
|
|
675
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
676
|
-
*
|
|
677
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
678
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
679
|
-
*
|
|
680
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-segments/#response CAT segments Response}
|
|
681
|
-
*/
|
|
682
|
-
CatApi.prototype.segments = function catSegmentsApi(params, options, callback) {
|
|
683
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
684
|
-
|
|
685
|
-
let { method, body, index, ...querystring } = params;
|
|
686
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
687
|
-
|
|
688
|
-
let path = '';
|
|
689
|
-
if (index != null) {
|
|
690
|
-
if (method == null) method = 'GET';
|
|
691
|
-
path = '/' + '_cat' + '/' + 'segments' + '/' + encodeURIComponent(index);
|
|
692
|
-
} else {
|
|
693
|
-
if (method == null) method = 'GET';
|
|
694
|
-
path = '/' + '_cat' + '/' + 'segments';
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
// build request object
|
|
698
|
-
const request = {
|
|
699
|
-
method,
|
|
700
|
-
path,
|
|
701
|
-
body: null,
|
|
702
|
-
querystring,
|
|
703
|
-
};
|
|
704
|
-
|
|
705
|
-
return this.transport.request(request, options, callback);
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* The CAT shards operation lists the state of all primary and replica shards and how they are distributed.
|
|
710
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-shards/ OpenSearch - CAT shards}
|
|
711
|
-
*
|
|
712
|
-
* @memberOf API-CAT
|
|
713
|
-
*
|
|
714
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
715
|
-
* @param {string} [params.index] - To see only the information about shards of specific indices, provide the index names seperated by commas.
|
|
716
|
-
* @param {string} [params.bytes] - Specify the units for byte size. For example, '7kb' or '6gb'.
|
|
717
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster_manager node.
|
|
718
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
719
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
720
|
-
*
|
|
721
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
722
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
723
|
-
*
|
|
724
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-shards/#response CAT shards Response}
|
|
725
|
-
*/
|
|
726
|
-
CatApi.prototype.shards = function catShardsApi(params, options, callback) {
|
|
727
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
728
|
-
|
|
729
|
-
let { method, body, index, ...querystring } = params;
|
|
730
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
731
|
-
|
|
732
|
-
let path = '';
|
|
733
|
-
if (index != null) {
|
|
734
|
-
if (method == null) method = 'GET';
|
|
735
|
-
path = '/' + '_cat' + '/' + 'shards' + '/' + encodeURIComponent(index);
|
|
736
|
-
} else {
|
|
737
|
-
if (method == null) method = 'GET';
|
|
738
|
-
path = '/' + '_cat' + '/' + 'shards';
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
// build request object
|
|
742
|
-
const request = {
|
|
743
|
-
method,
|
|
744
|
-
path,
|
|
745
|
-
body: null,
|
|
746
|
-
querystring,
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
return this.transport.request(request, options, callback);
|
|
750
|
-
};
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* The CAT snapshots operation lists all snapshots for a repository.
|
|
754
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-snapshots/ OpenSearch - CAT snapshots}
|
|
755
|
-
*
|
|
756
|
-
* @memberOf API-CAT
|
|
757
|
-
*
|
|
758
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
759
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
760
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
761
|
-
*
|
|
762
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
763
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
764
|
-
*
|
|
765
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-snapshots/#response CAT snapshots Response}
|
|
766
|
-
*/
|
|
767
|
-
CatApi.prototype.snapshots = function catSnapshotsApi(params, options, callback) {
|
|
768
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
769
|
-
|
|
770
|
-
let { method, body, repository, ...querystring } = params;
|
|
771
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
772
|
-
|
|
773
|
-
let path = '';
|
|
774
|
-
if (repository != null) {
|
|
775
|
-
if (method == null) method = 'GET';
|
|
776
|
-
path = '/' + '_cat' + '/' + 'snapshots' + '/' + encodeURIComponent(repository);
|
|
777
|
-
} else {
|
|
778
|
-
if (method == null) method = 'GET';
|
|
779
|
-
path = '/' + '_cat' + '/' + 'snapshots';
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
// build request object
|
|
783
|
-
const request = {
|
|
784
|
-
method,
|
|
785
|
-
path,
|
|
786
|
-
body: null,
|
|
787
|
-
querystring,
|
|
788
|
-
};
|
|
789
|
-
|
|
790
|
-
return this.transport.request(request, options, callback);
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* The CAT tasks operation lists the progress of all tasks currently running on your cluster.
|
|
795
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-tasks/ OpenSearch - CAT tasks}
|
|
796
|
-
*
|
|
797
|
-
* @memberOf API-CAT
|
|
798
|
-
*
|
|
799
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
800
|
-
* @param {string} [params.nodes] - A comma-separated list of node IDs or names to limit the returned information. Use '_local' to return information from the node you’re connecting to, specify the node name to get information from specific nodes, or keep the parameter empty to get information from all nodes.
|
|
801
|
-
* @param {string} [params.time] - Specify the units for time. For example, '5d' or '7h'.
|
|
802
|
-
* @param {boolean} [params.detailed=false] - Returns detailed task information.
|
|
803
|
-
* @param {string} [params.parent_task_id] - Returns tasks with a specified parent task ID (node_id:task_number). Keep empty or set to -1 to return all.
|
|
804
|
-
*
|
|
805
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
806
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
807
|
-
*
|
|
808
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-tasks/#response CAT tasks Response}
|
|
809
|
-
*/
|
|
810
|
-
CatApi.prototype.tasks = function catTasksApi(params, options, callback) {
|
|
811
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
812
|
-
|
|
813
|
-
let { method, body, ...querystring } = params;
|
|
814
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
815
|
-
|
|
816
|
-
let path = '';
|
|
817
|
-
if (method == null) method = 'GET';
|
|
818
|
-
path = '/' + '_cat' + '/' + 'tasks';
|
|
819
|
-
|
|
820
|
-
// build request object
|
|
821
|
-
const request = {
|
|
822
|
-
method,
|
|
823
|
-
path,
|
|
824
|
-
body: null,
|
|
825
|
-
querystring,
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
return this.transport.request(request, options, callback);
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* The CAT templates operation lists the names, patterns, order numbers, and version numbers of index templates.
|
|
833
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-templates/ OpenSearch - CAT templates}
|
|
834
|
-
*
|
|
835
|
-
* @memberOf API-CAT
|
|
836
|
-
*
|
|
837
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
838
|
-
* @param {boolean} [params.name] - If you want to limit it to a specific template or pattern, provide the template name or pattern.
|
|
839
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
840
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
841
|
-
*
|
|
842
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
843
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
844
|
-
*
|
|
845
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-templates/#response CAT templates Response}
|
|
846
|
-
*/
|
|
847
|
-
CatApi.prototype.templates = function catTemplatesApi(params, options, callback) {
|
|
848
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
849
|
-
|
|
850
|
-
let { method, body, name, ...querystring } = params;
|
|
851
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
852
|
-
|
|
853
|
-
let path = '';
|
|
854
|
-
if (name != null) {
|
|
855
|
-
if (method == null) method = 'GET';
|
|
856
|
-
path = '/' + '_cat' + '/' + 'templates' + '/' + encodeURIComponent(name);
|
|
857
|
-
} else {
|
|
858
|
-
if (method == null) method = 'GET';
|
|
859
|
-
path = '/' + '_cat' + '/' + 'templates';
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
// build request object
|
|
863
|
-
const request = {
|
|
864
|
-
method,
|
|
865
|
-
path,
|
|
866
|
-
body: null,
|
|
867
|
-
querystring,
|
|
868
|
-
};
|
|
869
|
-
|
|
870
|
-
return this.transport.request(request, options, callback);
|
|
871
|
-
};
|
|
872
|
-
|
|
873
|
-
/**
|
|
874
|
-
* The CAT thread pool operation lists the active, queued, and rejected threads of different thread pools on each node.
|
|
875
|
-
* <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/cat/cat-thread-pool/ OpenSearch - CAT thread pool}
|
|
876
|
-
*
|
|
877
|
-
* @memberOf API-CAT
|
|
878
|
-
*
|
|
879
|
-
* @param {Object} params - Accepts {@link https://opensearch.org/docs/latest/api-reference/cat/index#optional-query-parameters - common CAT parameters} along with the following unique parameters:
|
|
880
|
-
* @param {boolean} [params.local=false] - Whether to return information from the local node only instead of from the cluster manager node.
|
|
881
|
-
* @param {string} [params.cluster_manager_timeout=30s] - The amount of time to wait for a connection to the cluster manager node.
|
|
882
|
-
*
|
|
883
|
-
* @param {Object} [options] - Options for {@link Transport#request}
|
|
884
|
-
* @param {function} [callback] - Callback that handles errors and response
|
|
885
|
-
*
|
|
886
|
-
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*} {@link https://opensearch.org/docs/latest/api-reference/cat/cat-thread-pool/#response CAT thread pool Response}
|
|
887
|
-
*/
|
|
888
|
-
CatApi.prototype.threadPool = function catThreadPoolApi(params, options, callback) {
|
|
889
|
-
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
890
|
-
|
|
891
|
-
let { method, body, threadPoolPatterns, thread_pool_patterns, ...querystring } = params;
|
|
892
|
-
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring);
|
|
893
|
-
|
|
894
|
-
let path = '';
|
|
895
|
-
if ((thread_pool_patterns || threadPoolPatterns) != null) {
|
|
896
|
-
if (method == null) method = 'GET';
|
|
897
|
-
path =
|
|
898
|
-
'/' +
|
|
899
|
-
'_cat' +
|
|
900
|
-
'/' +
|
|
901
|
-
'thread_pool' +
|
|
902
|
-
'/' +
|
|
903
|
-
encodeURIComponent(thread_pool_patterns || threadPoolPatterns);
|
|
904
|
-
} else {
|
|
905
|
-
if (method == null) method = 'GET';
|
|
906
|
-
path = '/' + '_cat' + '/' + 'thread_pool';
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
// build request object
|
|
910
|
-
const request = {
|
|
911
|
-
method,
|
|
912
|
-
path,
|
|
913
|
-
body: null,
|
|
914
|
-
querystring,
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
return this.transport.request(request, options, callback);
|
|
918
|
-
};
|
|
919
|
-
|
|
920
|
-
Object.defineProperties(CatApi.prototype, {
|
|
921
|
-
pending_tasks: {
|
|
922
|
-
get() {
|
|
923
|
-
return this.pendingTasks;
|
|
924
|
-
},
|
|
925
|
-
},
|
|
926
|
-
thread_pool: {
|
|
927
|
-
get() {
|
|
928
|
-
return this.threadPool;
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
});
|
|
932
|
-
|
|
933
|
-
module.exports = CatApi;
|