extends |
AbstractNamespace |
---|
Class ClusterNamespace
NOTE: This file is autogenerated using util/GenerateEndpoints.php
Methods | ||||
---|---|---|---|---|
public
|
allocationExplain(array $params = []): array
Provides explanations for shard allocations in the cluster.
Provides explanations for shard allocations in the cluster. $params['include_disk_info'] = (boolean) If true, returns information about disk usage and shard sizes. (Default = false) $params['include_yes_decisions'] = (boolean) If true, returns YES decisions in explanation. (Default = false) $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". $params['body'] = (array) The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' Parameters
|
# | ||
public
|
deleteComponentTemplate(array $params = []): array
Deletes a component template.
Deletes a component template. $params['name'] = (string) Name of the component template to delete. Wildcard (*) expressions are supported. $params['cluster_manager_timeout'] = (string) Operation timeout for connection to cluster-manager node. $params['master_timeout'] = (string) Period to wait for a connection to the master node.If no response is received before the timeout expires, the request fails and returns an error. $params['timeout'] = (string) Period to wait for a response.If no response is received before the timeout expires, the request fails and returns an error. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
deleteDecommissionAwareness(array $params = []): array
Delete any existing decommission.
Delete any existing decommission. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
deleteVotingConfigExclusions(array $params = []): array
Clears cluster voting config exclusions.
Clears cluster voting config exclusions. $params['wait_for_removal'] = (boolean) Specifies whether to wait for all excluded nodes to be removed from thecluster before clearing the voting configuration exclusions list.Defaults to true, meaning that all excluded nodes must be removed fromthe cluster before this API takes any action. If set to false then thevoting configuration exclusions list is cleared even if some excludednodes are still in the cluster. (Default = true) $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
deleteWeightedRouting(array $params = []): array
Delete weighted shard routing weights.
Delete weighted shard routing weights. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
existsComponentTemplate(array $params = []): bool
Returns information about whether a particular component template exist.
Returns information about whether a particular component template exist. $params['name'] = (string) Name of the component template to check existence of. Wildcard (*) expressions are supported. $params['cluster_manager_timeout'] = (string) Operation timeout for connection to cluster-manager node. $params['local'] = (boolean) If true, the request retrieves information from the local node only.Defaults to false, which means information is retrieved from the master node. (Default = false) $params['master_timeout'] = (string) Period to wait for a connection to the master node. If no response isreceived before the timeout expires, the request fails and returns anerror. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
getComponentTemplate(array $params = []): array
Returns one or more component templates.
Returns one or more component templates. $params['name'] = (array) Name of the component template to retrieve. Wildcard ( Parameters
|
# | ||
public
|
getDecommissionAwareness(array $params = []): array
Get details and status of decommissioned attribute.
Get details and status of decommissioned attribute. $params['awareness_attribute_name'] = (string) Awareness attribute name. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
getSettings(array $params = []): array
Returns cluster settings.
Returns cluster settings. $params['cluster_manager_timeout'] = (string) Operation timeout for connection to cluster-manager node.
$params['flat_settings'] = (boolean) If Parameters
|
# | ||
public
|
getWeightedRouting(array $params = []): array
Fetches weighted shard routing weights.
Fetches weighted shard routing weights. $params['attribute'] = (string) Awareness attribute name. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
health(array $params = []): array
Returns basic information about the health of the cluster.
Returns basic information about the health of the cluster. $params['index'] = (array) Comma-separated list of data streams, indexes, and index aliases used to limit the request. Wildcard expressions (*) are supported. To target all data streams and indexes in a cluster, omit this parameter or use Parameters
|
# | ||
public
|
pendingTasks(array $params = []): array
Returns a list of any cluster-level changes (e.g. create index, update mapping,allocate or fail shard) which have not…
Returns a list of any cluster-level changes (e.g. create index, update mapping,allocate or fail shard) which have not yet been executed. $params['cluster_manager_timeout'] = (string) Operation timeout for connection to cluster-manager node.
$params['local'] = (boolean) If Parameters
|
# | ||
public
|
postVotingConfigExclusions(array $params = []): array
Updates the cluster voting config exclusions by node ids or node names.
Updates the cluster voting config exclusions by node ids or node names. $params['node_ids'] = (any) A comma-separated list of the persistent ids of the nodes to excludefrom the voting configuration. If specified, you may not also specify node_names. $params['node_names'] = (any) A comma-separated list of the names of the nodes to exclude from thevoting configuration. If specified, you may not also specify node_ids. $params['timeout'] = (string) When adding a voting configuration exclusion, the API waits for thespecified nodes to be excluded from the voting configuration beforereturning. If the timeout expires before the appropriate conditionis satisfied, the request fails and returns an error. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
putComponentTemplate(array $params = []): array
Creates or updates a component template.
Creates or updates a component template. $params['name'] = (string) Name of the component template to create. OpenSearch includes the following built-in component templates: Parameters
|
# | ||
public
|
putDecommissionAwareness(array $params = []): array
Decommissions an awareness attribute.
Decommissions an awareness attribute. $params['awareness_attribute_name'] = (string) Awareness attribute name. $params['awareness_attribute_value'] = (string) Awareness attribute value. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
putSettings(array $params = []): array
Updates the cluster settings.
Updates the cluster settings. $params['cluster_manager_timeout'] = (string) Operation timeout for connection to cluster-manager node.
$params['flat_settings'] = (boolean) Return settings in flat format. (Default = false)
$params['master_timeout'] = (string) Explicit operation timeout for connection to master node
$params['timeout'] = (string) Explicit operation timeout
$params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false)
$params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true)
$params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false)
$params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
$params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-".
$params['body'] = (array) The settings to be updated. Can be either Parameters
|
# | ||
public
|
putWeightedRouting(array $params = []): array
Updates weighted shard routing weights.
Updates weighted shard routing weights. $params['attribute'] = (string) Awareness attribute name. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
remoteInfo(array $params = []): array
Returns the information about configured remote clusters.
Returns the information about configured remote clusters. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
reroute(array $params = []): array
Allows to manually change the allocation of individual shards in the cluster.
Allows to manually change the allocation of individual shards in the cluster. $params['cluster_manager_timeout'] = (string) Operation timeout for connection to cluster-manager node.
$params['dry_run'] = (boolean) If true, then the request simulates the operation only and returns the resulting state.
$params['explain'] = (boolean) If true, then the response contains an explanation of why the commands can or cannot be executed.
$params['master_timeout'] = (string) Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
$params['metric'] = (any) Limits the information returned to the specified metrics.
$params['retry_failed'] = (boolean) If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures.
$params['timeout'] = (string) Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
$params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false)
$params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true)
$params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false)
$params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
$params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-".
$params['body'] = (array) The definition of Parameters
|
# | ||
public
|
state(array $params = []): array
Returns a comprehensive information about the state of the cluster.
Returns a comprehensive information about the state of the cluster. $params['metric'] = (array) Limit the information returned to the specified metrics
$params['index'] = (array) A comma-separated list of index names; use Parameters
|
# | ||
public
|
stats(array $params = []): array
Returns high-level overview of cluster statistics.
Returns high-level overview of cluster statistics. $params['index_metric'] = (array) Limit the information returned for indexes metric to the specific index metrics. It can be used only if indexes (or all) metric is specified.
$params['metric'] = (array) Limit the information returned to the specified metrics
$params['node_id'] = (array) Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster.
$params['flat_settings'] = (boolean) If Parameters
|
# |
Methods inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
__construct(), extractArgument(), performRequest() |
Properties inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
$transport, $endpointFactory, $endpoints |