Sha256: 16a14bf411c57ed3f7711f6bac442b1de69cf65b2d004ab352881036de6138d5
Contents?: true
Size: 954 Bytes
Versions: 103
Compression:
Stored size: 954 Bytes
Contents
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one # or more contributor license agreements. Licensed under the Elastic License; # you may not use this file except in compliance with the Elastic License. module Elasticsearch module API module Actions # @option arguments [String] :name The name of the policy (*Required*) # @option arguments [Hash] :body The policy definition (*Required*) def put_ilm_policy(arguments={}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] method = HTTP_PUT path = Utils.__pathify '_ilm/policy/', Utils.__escape(arguments[:name]) params = Utils.__validate_and_extract_params arguments body = arguments[:body] perform_request(method, path, params, body.to_json).body end end end end
Version data entries
103 entries across 103 versions & 2 rubygems