Autoscaling

class elasticsearch.client.AutoscalingClient(client)
Parameters:

client (BaseClient) –

delete_autoscaling_policy(*, name, error_trace=None, filter_path=None, human=None, pretty=None)

Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-delete-autoscaling-policy.html

Parameters:
  • name (str) – the name of the autoscaling policy

  • error_trace (bool | None) –

  • filter_path (str | Sequence[str] | None) –

  • human (bool | None) –

  • pretty (bool | None) –

Return type:

ObjectApiResponse[Any]

get_autoscaling_capacity(*, error_trace=None, filter_path=None, human=None, pretty=None)

Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-get-autoscaling-capacity.html

Parameters:
Return type:

ObjectApiResponse[Any]

get_autoscaling_policy(*, name, error_trace=None, filter_path=None, human=None, pretty=None)

Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-get-autoscaling-capacity.html

Parameters:
  • name (str) – the name of the autoscaling policy

  • error_trace (bool | None) –

  • filter_path (str | Sequence[str] | None) –

  • human (bool | None) –

  • pretty (bool | None) –

Return type:

ObjectApiResponse[Any]

put_autoscaling_policy(*, name, policy=None, body=None, error_trace=None, filter_path=None, human=None, pretty=None)

Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

https://www.elastic.co/guide/en/elasticsearch/reference/8.13/autoscaling-put-autoscaling-policy.html

Parameters:
Return type:

ObjectApiResponse[Any]