No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 2021-11-23
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import opensearch "github.com/jgillich/opensearch-client-go"
To use a proxy, set the environment variable HTTP_PROXY
:
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
Default configuration comes with Servers
field that contains server objects as defined in the OpenAPI specification.
For using other server than the one defined on index 0 set context value sw.ContextServerIndex
of type int
.
ctx := context.WithValue(context.Background(), opensearch.ContextServerIndex, 1)
Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables
of type map[string]string
.
ctx := context.WithValue(context.Background(), opensearch.ContextServerVariables, map[string]string{
"basePath": "v2",
})
Note, enum values are always validated and all unused variables are silently ignored.
Each operation can use different server URL defined using OperationServers
map in the Configuration
.
An operation is uniquely identified by "{classname}Service.{nickname}"
string.
Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices
and sw.ContextOperationServerVariables
context maps.
ctx := context.WithValue(context.Background(), opensearch.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), opensearch.ContextOperationServerVariables, map[string]map[string]string{
"{classname}Service.{nickname}": {
"port": "8443",
},
})
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultAPI | BulkPost | Post /_bulk | |
DefaultAPI | BulkPostWithIndex | Post /{index}/_bulk | |
DefaultAPI | BulkPut | Put /_bulk | |
DefaultAPI | BulkPutWithIndex | Put /{index}/_bulk | |
DefaultAPI | CatAliases | Get /_cat/aliases | |
DefaultAPI | CatAliasesWithName | Get /_cat/aliases/{name} | |
DefaultAPI | CatAllPitSegments | Get /_cat/pit_segments/_all | |
DefaultAPI | CatAllocation | Get /_cat/allocation | |
DefaultAPI | CatAllocationWithNodeId | Get /_cat/allocation/{node_id} | |
DefaultAPI | CatClusterManager | Get /_cat/cluster_manager | |
DefaultAPI | CatCount | Get /_cat/count | |
DefaultAPI | CatCountWithIndex | Get /_cat/count/{index} | |
DefaultAPI | CatFielddata | Get /_cat/fielddata | |
DefaultAPI | CatFielddataWithFields | Get /_cat/fielddata/{fields} | |
DefaultAPI | CatHealth | Get /_cat/health | |
DefaultAPI | CatHelp | Get /_cat | |
DefaultAPI | CatIndices | Get /_cat/indices | |
DefaultAPI | CatIndicesWithIndex | Get /_cat/indices/{index} | |
DefaultAPI | CatMaster | Get /_cat/master | |
DefaultAPI | CatNodeattrs | Get /_cat/nodeattrs | |
DefaultAPI | CatNodes | Get /_cat/nodes | |
DefaultAPI | CatPendingTasks | Get /_cat/pending_tasks | |
DefaultAPI | CatPitSegments | Get /_cat/pit_segments | |
DefaultAPI | CatPlugins | Get /_cat/plugins | |
DefaultAPI | CatRecovery | Get /_cat/recovery | |
DefaultAPI | CatRecoveryWithIndex | Get /_cat/recovery/{index} | |
DefaultAPI | CatRepositories | Get /_cat/repositories | |
DefaultAPI | CatSegmentReplication | Get /_cat/segment_replication | |
DefaultAPI | CatSegmentReplicationWithIndex | Get /_cat/segment_replication/{index} | |
DefaultAPI | CatSegments | Get /_cat/segments | |
DefaultAPI | CatSegmentsWithIndex | Get /_cat/segments/{index} | |
DefaultAPI | CatShards | Get /_cat/shards | |
DefaultAPI | CatShardsWithIndex | Get /_cat/shards/{index} | |
DefaultAPI | CatSnapshots | Get /_cat/snapshots | |
DefaultAPI | CatSnapshotsWithRepository | Get /_cat/snapshots/{repository} | |
DefaultAPI | CatTasks | Get /_cat/tasks | |
DefaultAPI | CatTemplates | Get /_cat/templates | |
DefaultAPI | CatTemplatesWithName | Get /_cat/templates/{name} | |
DefaultAPI | CatThreadPool | Get /_cat/thread_pool | |
DefaultAPI | CatThreadPoolWithThreadPoolPatterns | Get /_cat/thread_pool/{thread_pool_patterns} | |
DefaultAPI | ChangePassword | Put /_plugins/_security/api/account | |
DefaultAPI | ClearScroll | Delete /_search/scroll | |
DefaultAPI | ClearScrollWithScrollId | Delete /_search/scroll/{scroll_id} | |
DefaultAPI | ClusterAllocationExplainGet | Get /_cluster/allocation/explain | |
DefaultAPI | ClusterAllocationExplainPost | Post /_cluster/allocation/explain | |
DefaultAPI | ClusterDeleteComponentTemplate | Delete /_component_template/{name} | |
DefaultAPI | ClusterDeleteDecommissionAwareness | Delete /_cluster/decommission/awareness/ | |
DefaultAPI | ClusterDeleteVotingConfigExclusions | Delete /_cluster/voting_config_exclusions | |
DefaultAPI | ClusterDeleteWeightedRouting | Delete /_cluster/routing/awareness/weights | |
DefaultAPI | ClusterExistsComponentTemplate | Head /_component_template/{name} | |
DefaultAPI | ClusterGetComponentTemplate | Get /_component_template | |
DefaultAPI | ClusterGetComponentTemplateWithName | Get /_component_template/{name} | |
DefaultAPI | ClusterGetDecommissionAwareness | Get /_cluster/decommission/awareness/{awareness_attribute_name}/_status | |
DefaultAPI | ClusterGetSettings | Get /_cluster/settings | |
DefaultAPI | ClusterGetWeightedRouting | Get /_cluster/routing/awareness/{attribute}/weights | |
DefaultAPI | ClusterHealth | Get /_cluster/health | |
DefaultAPI | ClusterHealthWithIndex | Get /_cluster/health/{index} | |
DefaultAPI | ClusterPendingTasks | Get /_cluster/pending_tasks | |
DefaultAPI | ClusterPostVotingConfigExclusions | Post /_cluster/voting_config_exclusions | |
DefaultAPI | ClusterPutComponentTemplatePost | Post /_component_template/{name} | |
DefaultAPI | ClusterPutComponentTemplatePut | Put /_component_template/{name} | |
DefaultAPI | ClusterPutDecommissionAwareness | Put /_cluster/decommission/awareness/{awareness_attribute_name}/{awareness_attribute_value} | |
DefaultAPI | ClusterPutSettings | Put /_cluster/settings | |
DefaultAPI | ClusterPutWeightedRouting | Put /_cluster/routing/awareness/{attribute}/weights | |
DefaultAPI | ClusterRemoteInfo | Get /_remote/info | |
DefaultAPI | ClusterReroute | Post /_cluster/reroute | |
DefaultAPI | ClusterState | Get /_cluster/state | |
DefaultAPI | ClusterStateWithIndexMetric | Get /_cluster/state/{metric}/{index} | |
DefaultAPI | ClusterStateWithMetric | Get /_cluster/state/{metric} | |
DefaultAPI | ClusterStats | Get /_cluster/stats | |
DefaultAPI | ClusterStatsWithNodeId | Get /_cluster/stats/nodes/{node_id} | |
DefaultAPI | CountGet | Get /_count | |
DefaultAPI | CountGetWithIndex | Get /{index}/_count | |
DefaultAPI | CountPost | Post /_count | |
DefaultAPI | CountPostWithIndex | Post /{index}/_count | |
DefaultAPI | CreateActionGroup | Put /_plugins/_security/api/actiongroups/{action_group} | |
DefaultAPI | CreatePit | Post /{index}/_search/point_in_time | |
DefaultAPI | CreatePost | Post /{index}/_create/{id} | |
DefaultAPI | CreatePut | Put /{index}/_create/{id} | |
DefaultAPI | CreateRole | Put /_plugins/_security/api/roles/{role} | |
DefaultAPI | CreateRoleMapping | Put /_plugins/_security/api/rolesmapping/{role} | |
DefaultAPI | CreateTenant | Put /_plugins/_security/api/tenants/{tenant} | |
DefaultAPI | CreateUser | Put /_plugins/_security/api/internalusers/{username} | |
DefaultAPI | DanglingIndicesDeleteDanglingIndex | Delete /_dangling/{index_uuid} | |
DefaultAPI | DanglingIndicesImportDanglingIndex | Post /_dangling/{index_uuid} | |
DefaultAPI | DanglingIndicesListDanglingIndices | Get /_dangling | |
DefaultAPI | Delete | Delete /{index}/_doc/{id} | |
DefaultAPI | DeleteActionGroup | Delete /_plugins/_security/api/actiongroups/{action_group} | |
DefaultAPI | DeleteAllPits | Delete /_search/point_in_time/_all | |
DefaultAPI | DeleteByQuery | Post /{index}/_delete_by_query | |
DefaultAPI | DeleteByQueryRethrottle | Post /_delete_by_query/{task_id}/_rethrottle | |
DefaultAPI | DeleteDistinguishedNames | Delete /_plugins/_security/api/nodesdn/{cluster_name} | |
DefaultAPI | DeletePit | Delete /_search/point_in_time | |
DefaultAPI | DeleteRole | Delete /_plugins/_security/api/roles/{role} | |
DefaultAPI | DeleteRoleMapping | Delete /_plugins/_security/api/rolesmapping/{role} | |
DefaultAPI | DeleteScript | Delete /_scripts/{id} | |
DefaultAPI | DeleteTenant | Delete /_plugins/_security/api/tenants/{tenant} | |
DefaultAPI | DeleteUser | Delete /_plugins/_security/api/internalusers/{username} | |
DefaultAPI | Exists | Head /{index}/_doc/{id} | |
DefaultAPI | ExistsSource | Head /{index}/_source/{id} | |
DefaultAPI | ExplainGet | Get /{index}/_explain/{id} | |
DefaultAPI | ExplainPost | Post /{index}/_explain/{id} | |
DefaultAPI | FieldCapsGet | Get /_field_caps | |
DefaultAPI | FieldCapsGetWithIndex | Get /{index}/_field_caps | |
DefaultAPI | FieldCapsPost | Post /_field_caps | |
DefaultAPI | FieldCapsPostWithIndex | Post /{index}/_field_caps | |
DefaultAPI | FlushCache | Delete /_plugins/_security/api/cache | |
DefaultAPI | Get | Get /{index}/_doc/{id} | |
DefaultAPI | GetAccountDetails | Get /_plugins/_security/api/account | |
DefaultAPI | GetActionGroup | Get /_plugins/_security/api/actiongroups/{action_group} | |
DefaultAPI | GetActionGroups | Get /_plugins/_security/api/actiongroups/ | |
DefaultAPI | GetAllPits | Get /_search/point_in_time/_all | |
DefaultAPI | GetAuditConfiguration | Get /_plugins/_security/api/audit | |
DefaultAPI | GetCertificates | Get /_plugins/_security/api/ssl/certs | |
DefaultAPI | GetConfiguration | Get /_plugins/_security/api/securityconfig | |
DefaultAPI | GetDistinguishedNames | Get /_plugins/_security/api/nodesdn | |
DefaultAPI | GetDistinguishedNamesWithClusterName | Get /_plugins/_security/api/nodesdn/{cluster_name} | |
DefaultAPI | GetRole | Get /_plugins/_security/api/roles/{role} | |
DefaultAPI | GetRoleMapping | Get /_plugins/_security/api/rolesmapping/{role} | |
DefaultAPI | GetRoleMappings | Get /_plugins/_security/api/rolesmapping | |
DefaultAPI | GetRoles | Get /_plugins/_security/api/roles/ | |
DefaultAPI | GetScript | Get /_scripts/{id} | |
DefaultAPI | GetScriptContext | Get /_script_context | |
DefaultAPI | GetScriptLanguages | Get /_script_language | |
DefaultAPI | GetSource | Get /{index}/_source/{id} | |
DefaultAPI | GetTenant | Get /_plugins/_security/api/tenants/{tenant} | |
DefaultAPI | GetTenants | Get /_plugins/_security/api/tenants/ | |
DefaultAPI | GetUser | Get /_plugins/_security/api/internalusers/{username} | |
DefaultAPI | GetUsers | Get /_plugins/_security/api/internalusers | |
DefaultAPI | IndexPost | Post /{index}/_doc | |
DefaultAPI | IndexPostWithId | Post /{index}/_doc/{id} | |
DefaultAPI | IndexPutWithId | Put /{index}/_doc/{id} | |
DefaultAPI | IndicesAddBlock | Put /{index}/_block/{block} | |
DefaultAPI | IndicesAnalyzeGet | Get /_analyze | |
DefaultAPI | IndicesAnalyzeGetWithIndex | Get /{index}/_analyze | |
DefaultAPI | IndicesAnalyzePost | Post /_analyze | |
DefaultAPI | IndicesAnalyzePostWithIndex | Post /{index}/_analyze | |
DefaultAPI | IndicesClearCache | Post /_cache/clear | |
DefaultAPI | IndicesClearCacheWithIndex | Post /{index}/_cache/clear | |
DefaultAPI | IndicesClonePost | Post /{index}/_clone/{target} | |
DefaultAPI | IndicesClonePut | Put /{index}/_clone/{target} | |
DefaultAPI | IndicesClose | Post /{index}/_close | |
DefaultAPI | IndicesCreate | Put /{index} | |
DefaultAPI | IndicesCreateDataStream | Put /_data_stream/{name} | |
DefaultAPI | IndicesDataStreamsStats | Get /_data_stream/_stats | |
DefaultAPI | IndicesDataStreamsStatsWithName | Get /_data_stream/{name}/_stats | |
DefaultAPI | IndicesDelete | Delete /{index} | |
DefaultAPI | IndicesDeleteAlias | Delete /{index}/_alias/{name} | |
DefaultAPI | IndicesDeleteAliasPlural | Delete /{index}/_aliases/{name} | |
DefaultAPI | IndicesDeleteDataStream | Delete /_data_stream/{name} | |
DefaultAPI | IndicesDeleteIndexTemplate | Delete /_index_template/{name} | |
DefaultAPI | IndicesDeleteTemplate | Delete /_template/{name} | |
DefaultAPI | IndicesExists | Head /{index} | |
DefaultAPI | IndicesExistsAlias | Head /_alias/{name} | |
DefaultAPI | IndicesExistsAliasWithIndex | Head /{index}/_alias/{name} | |
DefaultAPI | IndicesExistsIndexTemplate | Head /_index_template/{name} | |
DefaultAPI | IndicesExistsTemplate | Head /_template/{name} | |
DefaultAPI | IndicesFlushGet | Get /_flush | |
DefaultAPI | IndicesFlushGetWithIndex | Get /{index}/_flush | |
DefaultAPI | IndicesFlushPost | Post /_flush | |
DefaultAPI | IndicesFlushPostWithIndex | Post /{index}/_flush | |
DefaultAPI | IndicesForcemerge | Post /_forcemerge | |
DefaultAPI | IndicesForcemergeWithIndex | Post /{index}/_forcemerge | |
DefaultAPI | IndicesGet | Get /{index} | |
DefaultAPI | IndicesGetAlias | Get /_alias | |
DefaultAPI | IndicesGetAliasWithIndex | Get /{index}/_alias | |
DefaultAPI | IndicesGetAliasWithIndexName | Get /{index}/_alias/{name} | |
DefaultAPI | IndicesGetAliasWithName | Get /_alias/{name} | |
DefaultAPI | IndicesGetDataStream | Get /_data_stream | |
DefaultAPI | IndicesGetDataStreamWithName | Get /_data_stream/{name} | |
DefaultAPI | IndicesGetFieldMapping | Get /_mapping/field/{fields} | |
DefaultAPI | IndicesGetFieldMappingWithIndex | Get /{index}/_mapping/field/{fields} | |
DefaultAPI | IndicesGetIndexTemplate | Get /_index_template | |
DefaultAPI | IndicesGetIndexTemplateWithName | Get /_index_template/{name} | |
DefaultAPI | IndicesGetMapping | Get /_mapping | |
DefaultAPI | IndicesGetMappingWithIndex | Get /{index}/_mapping | |
DefaultAPI | IndicesGetSettings | Get /_settings | |
DefaultAPI | IndicesGetSettingsWithIndex | Get /{index}/_settings | |
DefaultAPI | IndicesGetSettingsWithIndexName | Get /{index}/_settings/{name} | |
DefaultAPI | IndicesGetSettingsWithName | Get /_settings/{name} | |
DefaultAPI | IndicesGetTemplate | Get /_template | |
DefaultAPI | IndicesGetTemplateWithName | Get /_template/{name} | |
DefaultAPI | IndicesGetUpgrade | Get /_upgrade | |
DefaultAPI | IndicesGetUpgradeWithIndex | Get /{index}/_upgrade | |
DefaultAPI | IndicesOpen | Post /{index}/_open | |
DefaultAPI | IndicesPutAliasPost | Post /{index}/_alias/{name} | |
DefaultAPI | IndicesPutAliasPostPlural | Post /{index}/_aliases/{name} | |
DefaultAPI | IndicesPutAliasPut | Put /{index}/_alias/{name} | |
DefaultAPI | IndicesPutAliasPutPlural | Put /{index}/_aliases/{name} | |
DefaultAPI | IndicesPutIndexTemplatePost | Post /_index_template/{name} | |
DefaultAPI | IndicesPutIndexTemplatePut | Put /_index_template/{name} | |
DefaultAPI | IndicesPutMappingPost | Post /{index}/_mapping | |
DefaultAPI | IndicesPutMappingPut | Put /{index}/_mapping | |
DefaultAPI | IndicesPutSettings | Put /_settings | |
DefaultAPI | IndicesPutSettingsWithIndex | Put /{index}/_settings | |
DefaultAPI | IndicesPutTemplatePost | Post /_template/{name} | |
DefaultAPI | IndicesPutTemplatePut | Put /_template/{name} | |
DefaultAPI | IndicesRecovery | Get /_recovery | |
DefaultAPI | IndicesRecoveryWithIndex | Get /{index}/_recovery | |
DefaultAPI | IndicesRefreshGet | Get /_refresh | |
DefaultAPI | IndicesRefreshGetWithIndex | Get /{index}/_refresh | |
DefaultAPI | IndicesRefreshPost | Post /_refresh | |
DefaultAPI | IndicesRefreshPostWithIndex | Post /{index}/_refresh | |
DefaultAPI | IndicesResolveIndex | Get /_resolve/index/{name} | |
DefaultAPI | IndicesRollover | Post /{alias}/_rollover | |
DefaultAPI | IndicesRolloverWithNewIndex | Post /{alias}/_rollover/{new_index} | |
DefaultAPI | IndicesSegments | Get /_segments | |
DefaultAPI | IndicesSegmentsWithIndex | Get /{index}/_segments | |
DefaultAPI | IndicesShardStores | Get /_shard_stores | |
DefaultAPI | IndicesShardStoresWithIndex | Get /{index}/_shard_stores | |
DefaultAPI | IndicesShrinkPost | Post /{index}/_shrink/{target} | |
DefaultAPI | IndicesShrinkPut | Put /{index}/_shrink/{target} | |
DefaultAPI | IndicesSimulateIndexTemplate | Post /_index_template/_simulate_index/{name} | |
DefaultAPI | IndicesSimulateTemplate | Post /_index_template/_simulate | |
DefaultAPI | IndicesSimulateTemplateWithName | Post /_index_template/_simulate/{name} | |
DefaultAPI | IndicesSplitPost | Post /{index}/_split/{target} | |
DefaultAPI | IndicesSplitPut | Put /{index}/_split/{target} | |
DefaultAPI | IndicesStats | Get /_stats | |
DefaultAPI | IndicesStatsWithIndex | Get /{index}/_stats | |
DefaultAPI | IndicesStatsWithIndexMetric | Get /{index}/_stats/{metric} | |
DefaultAPI | IndicesStatsWithMetric | Get /_stats/{metric} | |
DefaultAPI | IndicesUpdateAliases | Post /_aliases | |
DefaultAPI | IndicesUpgrade | Post /_upgrade | |
DefaultAPI | IndicesUpgradeWithIndex | Post /{index}/_upgrade | |
DefaultAPI | IndicesValidateQueryGet | Get /_validate/query | |
DefaultAPI | IndicesValidateQueryGetWithIndex | Get /{index}/_validate/query | |
DefaultAPI | IndicesValidateQueryPost | Post /_validate/query | |
DefaultAPI | IndicesValidateQueryPostWithIndex | Post /{index}/_validate/query | |
DefaultAPI | Info | Get / | |
DefaultAPI | IngestDeletePipeline | Delete /_ingest/pipeline/{id} | |
DefaultAPI | IngestGetPipeline | Get /_ingest/pipeline | |
DefaultAPI | IngestGetPipelineWithId | Get /_ingest/pipeline/{id} | |
DefaultAPI | IngestProcessorGrok | Get /_ingest/processor/grok | |
DefaultAPI | IngestPutPipeline | Put /_ingest/pipeline/{id} | |
DefaultAPI | IngestSimulateGet | Get /_ingest/pipeline/_simulate | |
DefaultAPI | IngestSimulateGetWithId | Get /_ingest/pipeline/{id}/_simulate | |
DefaultAPI | IngestSimulatePost | Post /_ingest/pipeline/_simulate | |
DefaultAPI | IngestSimulatePostWithId | Post /_ingest/pipeline/{id}/_simulate | |
DefaultAPI | MgetGet | Get /_mget | |
DefaultAPI | MgetGetWithIndex | Get /{index}/_mget | |
DefaultAPI | MgetPost | Post /_mget | |
DefaultAPI | MgetPostWithIndex | Post /{index}/_mget | |
DefaultAPI | MsearchGet | Get /_msearch | |
DefaultAPI | MsearchGetWithIndex | Get /{index}/_msearch | |
DefaultAPI | MsearchPost | Post /_msearch | |
DefaultAPI | MsearchPostWithIndex | Post /{index}/_msearch | |
DefaultAPI | MsearchTemplateGet | Get /_msearch/template | |
DefaultAPI | MsearchTemplateGetWithIndex | Get /{index}/_msearch/template | |
DefaultAPI | MsearchTemplatePost | Post /_msearch/template | |
DefaultAPI | MsearchTemplatePostWithIndex | Post /{index}/_msearch/template | |
DefaultAPI | MtermvectorsGet | Get /_mtermvectors | |
DefaultAPI | MtermvectorsGetWithIndex | Get /{index}/_mtermvectors | |
DefaultAPI | MtermvectorsPost | Post /_mtermvectors | |
DefaultAPI | MtermvectorsPostWithIndex | Post /{index}/_mtermvectors | |
DefaultAPI | NodesHotThreads | Get /_nodes/hot_threads | |
DefaultAPI | NodesHotThreadsDeprecated | Get /_nodes/hotthreads | |
DefaultAPI | NodesHotThreadsDeprecatedCluster | Get /_cluster/nodes/hotthreads | |
DefaultAPI | NodesHotThreadsDeprecatedDash | Get /_cluster/nodes/hot_threads | |
DefaultAPI | NodesHotThreadsWithNodeId | Get /_nodes/{node_id}/hot_threads | |
DefaultAPI | NodesHotThreadsWithNodeIdDeprecated | Get /_nodes/{node_id}/hotthreads | |
DefaultAPI | NodesHotThreadsWithNodeIdDeprecatedCluster | Get /_cluster/nodes/{node_id}/hotthreads | |
DefaultAPI | NodesHotThreadsWithNodeIdDeprecatedDash | Get /_cluster/nodes/{node_id}/hot_threads | |
DefaultAPI | NodesInfo | Get /_nodes | |
DefaultAPI | NodesInfoWithMetricNodeId | Get /_nodes/{node_id}/{metric} | |
DefaultAPI | NodesInfoWithNodeId | Get /_nodes/{node_id} | |
DefaultAPI | NodesReloadSecureSettings | Post /_nodes/reload_secure_settings | |
DefaultAPI | NodesReloadSecureSettingsWithNodeId | Post /_nodes/{node_id}/reload_secure_settings | |
DefaultAPI | NodesStats | Get /_nodes/stats | |
DefaultAPI | NodesStatsWithIndexMetricMetric | Get /_nodes/stats/{metric}/{index_metric} | |
DefaultAPI | NodesStatsWithIndexMetricMetricNodeId | Get /_nodes/{node_id}/stats/{metric}/{index_metric} | |
DefaultAPI | NodesStatsWithMetric | Get /_nodes/stats/{metric} | |
DefaultAPI | NodesStatsWithMetricNodeId | Get /_nodes/{node_id}/stats/{metric} | |
DefaultAPI | NodesStatsWithNodeId | Get /_nodes/{node_id}/stats | |
DefaultAPI | NodesUsage | Get /_nodes/usage | |
DefaultAPI | NodesUsageWithMetric | Get /_nodes/usage/{metric} | |
DefaultAPI | NodesUsageWithMetricNodeId | Get /_nodes/{node_id}/usage/{metric} | |
DefaultAPI | NodesUsageWithNodeId | Get /_nodes/{node_id}/usage | |
DefaultAPI | PatchActionGroup | Patch /_plugins/_security/api/actiongroups/{action_group} | |
DefaultAPI | PatchActionGroups | Patch /_plugins/_security/api/actiongroups | |
DefaultAPI | PatchAuditConfiguration | Patch /_plugins/_security/api/audit | |
DefaultAPI | PatchConfiguration | Patch /_plugins/_security/api/securityconfig | |
DefaultAPI | PatchDistinguishedNames | Patch /_plugins/_security/api/nodesdn | |
DefaultAPI | PatchRole | Patch /_plugins/_security/api/roles/{role} | |
DefaultAPI | PatchRoleMapping | Patch /_plugins/_security/api/rolesmapping/{role} | |
DefaultAPI | PatchRoleMappings | Patch /_plugins/_security/api/rolesmapping | |
DefaultAPI | PatchRoles | Patch /_plugins/_security/api/roles | |
DefaultAPI | PatchTenant | Patch /_plugins/_security/api/tenants/{tenant} | |
DefaultAPI | PatchTenants | Patch /_plugins/_security/api/tenants/ | |
DefaultAPI | PatchUser | Patch /_plugins/_security/api/internalusers/{username} | |
DefaultAPI | PatchUsers | Patch /_plugins/_security/api/internalusers | |
DefaultAPI | Ping | Head / | |
DefaultAPI | PutScriptPost | Post /_scripts/{id} | |
DefaultAPI | PutScriptPostWithContext | Post /_scripts/{id}/{context} | |
DefaultAPI | PutScriptPut | Put /_scripts/{id} | |
DefaultAPI | PutScriptPutWithContext | Put /_scripts/{id}/{context} | |
DefaultAPI | RankEvalGet | Get /_rank_eval | |
DefaultAPI | RankEvalGetWithIndex | Get /{index}/_rank_eval | |
DefaultAPI | RankEvalPost | Post /_rank_eval | |
DefaultAPI | RankEvalPostWithIndex | Post /{index}/_rank_eval | |
DefaultAPI | Reindex | Post /_reindex | |
DefaultAPI | ReindexRethrottle | Post /_reindex/{task_id}/_rethrottle | |
DefaultAPI | ReloadHttpCertificates | Put /_plugins/_security/api/ssl/http/reloadcerts | |
DefaultAPI | ReloadTransportCertificates | Put /_plugins/_security/api/ssl/transport/reloadcerts | |
DefaultAPI | RemoteStoreRestore | Post /_remotestore/_restore | |
DefaultAPI | RenderSearchTemplateGet | Get /_render/template | |
DefaultAPI | RenderSearchTemplateGetWithId | Get /_render/template/{id} | |
DefaultAPI | RenderSearchTemplatePost | Post /_render/template | |
DefaultAPI | RenderSearchTemplatePostWithId | Post /_render/template/{id} | |
DefaultAPI | ScriptsPainlessExecuteGet | Get /_scripts/painless/_execute | |
DefaultAPI | ScriptsPainlessExecutePost | Post /_scripts/painless/_execute | |
DefaultAPI | ScrollGet | Get /_search/scroll | |
DefaultAPI | ScrollGetWithScrollId | Get /_search/scroll/{scroll_id} | |
DefaultAPI | ScrollPost | Post /_search/scroll | |
DefaultAPI | ScrollPostWithScrollId | Post /_search/scroll/{scroll_id} | |
DefaultAPI | SearchGet | Get /_search | |
DefaultAPI | SearchGetWithIndex | Get /{index}/_search | |
DefaultAPI | SearchPost | Post /_search | |
DefaultAPI | SearchPostWithIndex | Post /{index}/_search | |
DefaultAPI | SearchShardsGet | Get /_search_shards | |
DefaultAPI | SearchShardsGetWithIndex | Get /{index}/_search_shards | |
DefaultAPI | SearchShardsPost | Post /_search_shards | |
DefaultAPI | SearchShardsPostWithIndex | Post /{index}/_search_shards | |
DefaultAPI | SearchTemplateGet | Get /_search/template | |
DefaultAPI | SearchTemplateGetWithIndex | Get /{index}/_search/template | |
DefaultAPI | SearchTemplatePost | Post /_search/template | |
DefaultAPI | SearchTemplatePostWithIndex | Post /{index}/_search/template | |
DefaultAPI | SecurityHealth | Get /_plugins/_security/health | |
DefaultAPI | SnapshotCleanupRepository | Post /_snapshot/{repository}/_cleanup | |
DefaultAPI | SnapshotClone | Put /_snapshot/{repository}/{snapshot}/_clone/{target_snapshot} | |
DefaultAPI | SnapshotCreatePost | Post /_snapshot/{repository}/{snapshot} | |
DefaultAPI | SnapshotCreatePut | Put /_snapshot/{repository}/{snapshot} | |
DefaultAPI | SnapshotCreateRepositoryPost | Post /_snapshot/{repository} | |
DefaultAPI | SnapshotCreateRepositoryPut | Put /_snapshot/{repository} | |
DefaultAPI | SnapshotDelete | Delete /_snapshot/{repository}/{snapshot} | |
DefaultAPI | SnapshotDeleteRepository | Delete /_snapshot/{repository} | |
DefaultAPI | SnapshotGet | Get /_snapshot/{repository}/{snapshot} | |
DefaultAPI | SnapshotGetRepository | Get /_snapshot | |
DefaultAPI | SnapshotGetRepositoryWithRepository | Get /_snapshot/{repository} | |
DefaultAPI | SnapshotRestore | Post /_snapshot/{repository}/{snapshot}/_restore | |
DefaultAPI | SnapshotStatus | Get /_snapshot/_status | |
DefaultAPI | SnapshotStatusWithRepository | Get /_snapshot/{repository}/_status | |
DefaultAPI | SnapshotStatusWithRepositorySnapshot | Get /_snapshot/{repository}/{snapshot}/_status | |
DefaultAPI | SnapshotVerifyRepository | Post /_snapshot/{repository}/_verify | |
DefaultAPI | TasksCancel | Post /_tasks/_cancel | |
DefaultAPI | TasksCancelWithTaskId | Post /_tasks/{task_id}/_cancel | |
DefaultAPI | TasksGet | Get /_tasks/{task_id} | |
DefaultAPI | TasksList | Get /_tasks | |
DefaultAPI | TermvectorsGet | Get /{index}/_termvectors | |
DefaultAPI | TermvectorsGetWithId | Get /{index}/_termvectors/{id} | |
DefaultAPI | TermvectorsPost | Post /{index}/_termvectors | |
DefaultAPI | TermvectorsPostWithId | Post /{index}/_termvectors/{id} | |
DefaultAPI | Update | Post /{index}/_update/{id} | |
DefaultAPI | UpdateAuditConfiguration | Put /_plugins/_security/api/audit/config | |
DefaultAPI | UpdateByQuery | Post /{index}/_update_by_query | |
DefaultAPI | UpdateByQueryRethrottle | Post /_update_by_query/{task_id}/_rethrottle | |
DefaultAPI | UpdateConfiguration | Put /_plugins/_security/api/securityconfig/config | |
DefaultAPI | UpdateDistinguishedNames | Put /_plugins/_security/api/nodesdn/{cluster_name} |
- AccountDetails
- ActionGroup
- ActionObjectStructure
- AuditConfig
- AuditConfigWithReadOnly
- AuditLogsConfig
- Bytes
- CatAllPitSegmentsResponseContent
- CatPitSegment
- CatPitSegmentsBodyParams
- CatPitSegmentsResponseContent
- CertificatesDetail
- ChangePasswordRequestContent
- ChangePasswordResponseContent
- ClusterGetSettingsResponseContent
- ClusterHealthLevel
- ClusterPutSettingsBodyParams
- ClusterPutSettingsResponseContent
- ClusterRerouteMetricMember
- ComplianceConfig
- Conflicts
- CreateActionGroupResponseContent
- CreatePitResponseContent
- CreateRoleMappingResponseContent
- CreateRoleResponseContent
- CreateTenantParams
- CreateTenantResponseContent
- CreateUserResponseContent
- DataStream
- DataStreamIndex
- DataStreamStatus
- DataStreamTimestampField
- DefaultOperator
- DeleteActionGroupResponseContent
- DeleteAllPitsResponseContent
- DeleteDistinguishedNamesResponseContent
- DeletePitBodyParams
- DeletePitResponseContent
- DeleteRoleMappingResponseContent
- DeleteRoleResponseContent
- DeleteTenantResponseContent
- DeleteUserResponseContent
- DeletedPit
- DistinguishedNames
- DynamicConfig
- DynamicOptions
- ExpandWildcards
- FlushCacheResponseContent
- GetAllPitsResponseContent
- GetCertificatesResponseContent
- GetResponseContent
- GroupBy
- Health
- Hits
- HitsMetadata
- IndexPermission
- IndicesCreateBodyParams
- IndicesCreateDataStreamResponseContent
- IndicesCreateResponseContent
- IndicesDeleteDataStreamResponseContent
- IndicesDeleteResponseContent
- IndicesGetDataStreamResponseContent
- IndicesGetDataStreamWithNameResponseContent
- IndicesPutMappingPostResponseContent
- IndicesPutMappingPutResponseContent
- IndicesUpdateAliasesBodyParams
- IndicesUpdateAliasesResponseContent
- IndiciesStatLevel
- InfoResponseContent
- InfoVersion
- NodesStatLevel
- OpType
- PatchActionGroupResponseContent
- PatchActionGroupsResponseContent
- PatchConfigurationResponseContent
- PatchDistinguishedNamesResponseContent
- PatchOperation
- PatchRoleMappingResponseContent
- PatchRoleMappingsResponseContent
- PatchRoleResponseContent
- PatchRolesResponseContent
- PatchTenantResponseContent
- PatchTenantsResponseContent
- PatchUserResponseContent
- PatchUsersResponseContent
- PitDetail
- PitsDetailsDeleteAll
- RefreshEnum
- Relation
- ReloadHttpCertificatesResponseContent
- ReloadTransportCertificatesResponseContent
- RemoteStoreRestoreBodyParams
- RemoteStoreRestoreInfo
- RemoteStoreRestoreResponseContent
- RemoteStoreRestoreShardsInfo
- Role
- RoleMapping
- SampleType
- SearchBodyParams
- SearchGetResponseContent
- SearchGetWithIndexResponseContent
- SearchPostResponseContent
- SearchPostWithIndexResponseContent
- SearchType
- SearchTypeMulti
- SecurityHealthResponseContent
- ShardStatistics
- StatusMember
- SuggestMode
- Tenant
- TenantPermission
- Time
- Total
- UpdateAuditConfigurationResponseContent
- UpdateConfigurationResponseContent
- UpdateDistinguishedNamesResponseContent
- User
- UserDefinedObjectStructure
- UserDefinedStructure
- UserTenants
- VersionType
- WaitForEvents
- WaitForStatus
Authentication schemes defined for the API:
- Type: HTTP basic authentication
Example
auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
UserName: "username",
Password: "password",
})
r, err := client.Service.Operation(auth, args)
Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:
PtrBool
PtrInt
PtrInt32
PtrInt64
PtrFloat
PtrFloat32
PtrFloat64
PtrString
PtrTime