elasticsearch-api/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb
# Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
#
# @option arguments [String] :name the name of the autoscaling policy
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body the specification of the autoscaling policy (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html
#
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
Creates a new autoscaling policy . Designed for indirect use by ECE / ESS and ECK . Direct use is not supported .
def put_autoscaling_policy(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _name = arguments.delete(:name)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_autoscaling/policy/#{Utils.__listify(_name)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def put_autoscaling_policy ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'name' missing" unless arguments [ :name ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _name = arguments . delete ( :name ) method = Elasticsearch :: API :: HTTP_PUT path = "_autoscaling/policy/#{Utils.__listify(_name)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Creates a new autoscaling policy.
Creates a new autoscaling policy .
arguments
:body the specification of the autoscaling policy (*Required*)
: body the specification of the autoscaling policy ( * Required * )
see
None