Methods |
public
|
allocationExplain(array $params = []): array
Explains how shards are allocated in the current cluster and provides an explanation for why unassigned shards can't be…
Explains how shards are allocated in the current cluster and provides an explanation for why unassigned shards can't be allocated to a node.
$params['include_disk_info'] = (boolean) When true , returns information about disk usage and shard sizes. (Default = false)
$params['include_yes_decisions'] = (boolean) When true , returns any YES decisions in the allocation explanation. YES decisions indicate when a particular shard allocation attempt was successful for the given node. (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 for which to generate an explanation. Leave this empty to generate an explanation for the first unassigned shard.
Parameters
$params |
Associative array of parameters
|
|
#
|
public
|
deleteComponentTemplate(array $params = []): array
Deletes a component template.
Deletes a component template.
$params['name'] = (string) The name of the component template to delete. Supports wildcard (*) expressions.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['master_timeout'] = (string)
$params['timeout'] = (string)
$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
$params |
Associative array of parameters
|
|
#
|
public
|
deleteDecommissionAwareness(array $params = []): array
Recommissions a decommissioned zone.
Recommissions a decommissioned zone.
$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
$params |
Associative array of parameters
|
|
#
|
public
|
deleteVotingConfigExclusions(array $params = []): array
Clears any cluster voting configuration exclusions.
Clears any cluster voting configuration 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.When true , all excluded nodes are removed fromthe cluster before this API takes any action. When false , 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
$params |
Associative array of 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
$params |
Associative array of 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) The name of the component template. Wildcard (*) expressions are supported.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['local'] = (boolean) When true , the request retrieves information from the local node only.When `false, information is retrieved from the cluster manager node. (Default = false)
$params['master_timeout'] = (string)
$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
$params |
Associative array of parameters
|
|
#
|
public
|
getComponentTemplate(array $params = []): array
Returns one or more component templates.
Returns one or more component templates.
$params['name'] = (array) The name of the component template to retrieve. Wildcard (* ) expressions are supported.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['flat_settings'] = (boolean) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.For example, the flat form of "cluster": { "max_shards_per_node": 500 } is "cluster.max_shards_per_node": "500" . (Default = false)
$params['local'] = (boolean) When true , the request retrieves information from the local node only.When false , information is retrieved from the cluster manager node. (Default = false)
$params['master_timeout'] = (string)
$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
$params |
Associative array of parameters
|
|
#
|
public
|
getDecommissionAwareness(array $params = []): array
Retrieves the decommission status for all zones.
Retrieves the decommission status for all zones.
$params['awareness_attribute_name'] = (string) The name of the awareness attribute.
$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
$params |
Associative array of parameters
|
|
#
|
public
|
getSettings(array $params = []): array
Returns cluster settings.
Returns cluster settings.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['flat_settings'] = (boolean) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.For example, the flat form of "cluster": { "max_shards_per_node": 500 } is "cluster.max_shards_per_node": "500" . (Default = false)
$params['include_defaults'] = (boolean) When true , returns default cluster settings from the local node. (Default = false)
$params['master_timeout'] = (string)
$params['timeout'] = (string)
$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
$params |
Associative array of parameters
|
|
#
|
public
|
getWeightedRouting(array $params = []): array
Fetches weighted shard routing weights.
Fetches weighted shard routing weights.
$params['attribute'] = (string) The name of the awareness attribute.
$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
$params |
Associative array of 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)
$params['awareness_attribute'] = (string) The name of the awareness attribute for which to return the cluster health status (for example, zone ). Applicable only if level is set to awareness_attributes .
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['expand_wildcards'] = (any)
$params['level'] = (enum) (Options = awareness_attributes,cluster,indices,shards)
$params['local'] = (boolean) Whether to return information from the local node only instead of from the cluster manager node. (Default = false)
$params['master_timeout'] = (string)
$params['timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['wait_for_active_shards'] = (any)
$params['wait_for_events'] = (any)
$params['wait_for_no_initializing_shards'] = (boolean) Whether to wait until there are no initializing shards in the cluster. (Default = false)
$params['wait_for_no_relocating_shards'] = (boolean) Whether to wait until there are no relocating shards in the cluster. (Default = false)
$params['wait_for_nodes'] = (any) Waits until the specified number of nodes (N ) is available. Accepts >=N , <=N , >N , and <N . You can also use ge(N) , le(N) , gt(N) , and lt(N) notation.
$params['wait_for_status'] = (any) Waits until the cluster health reaches the specified status or better.
$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
$params |
Associative array of parameters
|
|
#
|
public
|
pendingTasks(array $params = []): array
Returns a list of pending cluster-level tasks, such as index creation, mapping updates,or new allocations.
Returns a list of pending cluster-level tasks, such as index creation, mapping updates,or new allocations.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['local'] = (boolean) When true , the request retrieves information from the local node only.When false , information is retrieved from the cluster manager node. (Default = false)
$params['master_timeout'] = (string)
$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
$params |
Associative array of parameters
|
|
#
|
public
|
postVotingConfigExclusions(array $params = []): array
Updates the cluster voting configuration by excluding certain node IDs or names.
Updates the cluster voting configuration by excluding certain node IDs or names.
$params['node_ids'] = (any) A comma-separated list of node IDs to excludefrom the voting configuration. When using this setting, you cannot also specify node_names . Either node_ids or node_names are required to receive a valid response.
$params['node_names'] = (any) A comma-separated list of node names to exclude from thevoting configuration. When using this setting, you cannot also specify node_ids . Either node_ids or node_names are required to receive a valid response.
$params['timeout'] = (string) When adding a voting configuration exclusion, the API waits for thespecified nodes to be excluded from the voting configuration beforereturning a response. 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
$params |
Associative array of parameters
|
|
#
|
public
|
putComponentTemplate(array $params = []): array
Creates or updates a component template.
Creates or updates a component template.
$params['name'] = (string) The name of the component template to create. OpenSearch includes the following built-in component templates: logs-mappings , logs-settings , metrics-mappings , metrics-settings , synthetics-mapping , and synthetics-settings . OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template version to a higher value than the current version. If you want to disable all built-in component and index templates, set stack.templates.enabled to false using the Cluster Update Settings API.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['create'] = (boolean) When true , this request cannot replace or update existing component templates. (Default = false)
$params['master_timeout'] = (string)
$params['timeout'] = (string)
$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 template definition. (Required)
Parameters
$params |
Associative array of parameters
|
|
#
|
public
|
putDecommissionAwareness(array $params = []): array
Decommissions a cluster zone based on awareness. This can greatly benefit multi-zone deployments, where awareness…
Decommissions a cluster zone based on awareness. This can greatly benefit multi-zone deployments, where awareness attributes can aid in applying new upgrades to a cluster in a controlled fashion.
$params['awareness_attribute_name'] = (string) The name of the awareness attribute.
$params['awareness_attribute_value'] = (string) The value of the awareness attribute. For example, if you have shards allocated in two different zones, you can give each zone a value of zone-a or zoneb . The cluster decommission operation decommissions the zone listed in the method.
$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
$params |
Associative array of parameters
|
|
#
|
public
|
putSettings(array $params = []): array
Updates the cluster settings.
Updates the cluster settings.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['flat_settings'] = (boolean) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.For example, the flat form of "cluster": { "max_shards_per_node": 500 } is "cluster.max_shards_per_node": "500" . (Default = false)
$params['master_timeout'] = (string)
$params['timeout'] = (string)
$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 cluster settings to update. (Required)
Parameters
$params |
Associative array of parameters
|
|
#
|
public
|
putWeightedRouting(array $params = []): array
Updates weighted shard routing weights.
Updates weighted shard routing weights.
$params['attribute'] = (string) The name of awareness attribute, usually zone .
$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
$params |
Associative array of 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
$params |
Associative array of 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) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['dry_run'] = (boolean) When true , the request simulates the operation and returns the resulting state.
$params['explain'] = (boolean) When true , the response contains an explanation of why reroute certain commands can or cannot be executed.
$params['master_timeout'] = (string)
$params['metric'] = (any) Limits the information returned to the specified metrics.
$params['retry_failed'] = (boolean) When true , retries shard allocation if it was blocked because of too many subsequent failures.
$params['timeout'] = (string)
$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 commands to perform (move , cancel , allocate )
Parameters
$params |
Associative array of parameters
|
|
#
|
public
|
state(array $params = []): array
Returns comprehensive information about the state of the cluster.
Returns comprehensive information about the state of the cluster.
$params['metric'] = (array) Limits the information returned to only the specified metric groups.
$params['index'] = (array)
$params['allow_no_indices'] = (boolean) Whether to ignore a wildcard index expression that resolves into no concrete indexes. This includes the _all string or when no indexes have been specified.
$params['cluster_manager_timeout'] = (string) The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.
$params['expand_wildcards'] = (any)
$params['flat_settings'] = (boolean) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.For example, the flat form of "cluster": { "max_shards_per_node": 500 } is "cluster.max_shards_per_node": "500" . (Default = false)
$params['ignore_unavailable'] = (boolean) Whether the specified concrete indexes should be ignored when unavailable (missing or closed).
$params['local'] = (boolean) Whether to return information from the local node only instead of from the cluster manager node. (Default = false)
$params['master_timeout'] = (string)
$params['wait_for_metadata_version'] = (integer) Wait for the metadata version to be equal or greater than the specified metadata version.
$params['wait_for_timeout'] = (string) The maximum time to wait for wait_for_metadata_version before timing out.
$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
$params |
Associative array of parameters
|
|
#
|
public
|
stats(array $params = []): array
Returns a high-level overview of cluster statistics.
Returns a high-level overview of cluster statistics.
$params['index_metric'] = (array) A comma-separated list of index metric groups, for example, docs,store .
$params['metric'] = (array) Limit the information returned to the specified metrics.
$params['node_id'] = (array)
$params['flat_settings'] = (boolean) Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings.For example, the flat form of "cluster": { "max_shards_per_node": 500 } is "cluster.max_shards_per_node": "500" . (Default = false)
$params['timeout'] = (string) The amount of time to wait for each node to respond.If a node does not respond before its timeout expires, the response does not include its stats.However, timed out nodes are included in the response's _nodes.failed property. Defaults to no 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 "-".
Parameters
$params |
Associative array of parameters
|
|
#
|