elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb
# Disables a user profile so it's not visible in user profile searches.
# This functionality is Experimental and may be changed or removed
# completely in a future release. Elastic will take a best effort approach
# to fix any issues, but experimental features are not subject to the
# support SLA of official GA features.
#
# @option arguments [String] :uid Unique identifier for the user profile
# @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-disable-user-profile.html
#
Disables a user profile so it's not visible in user profile searches.
This functionality is Experimental and may be changed or removed
completely in a future release. Elastic will take a best effort approach
to fix any issues, but experimental features are not subject to the
support SLA of official GA features.
Disables a user profile so it ' s not visible in user profile searches . This functionality is Experimental and may be changed or removed completely in a future release . Elastic will take a best effort approach to fix any issues but experimental features are not subject to the support SLA of official GA features .
def disable_user_profile(arguments = {})
          raise ArgumentError, "Required argument 'uid' missing" unless arguments[:uid]
          arguments = arguments.clone
          headers = arguments.delete(:headers) || {}
          body   = nil
          _uid = arguments.delete(:uid)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_security/profile/#{Utils.__listify(_uid)}/_disable"
          params = Utils.process_params(arguments)
          Elasticsearch::API::Response.new(
            perform_request(method, path, params, body, headers)
          )
        end
def disable_user_profile ( arguments = { } ) raise ArgumentError , "Required argument 'uid' missing" unless arguments [ :uid ] arguments = arguments . clone headers = arguments . delete ( :headers ) || { } body = nil _uid = arguments . delete ( :uid ) method = Elasticsearch :: API :: HTTP_PUT path = "_security/profile/#{Utils.__listify(_uid)}/_disable" params = Utils . process_params ( arguments ) Elasticsearch :: API :: Response . new ( perform_request ( method , path , params , body , headers ) ) end
Disables a user profile so it's not visible in user profile searches.
Disables a user profile so it ' s not visible in user profile searches .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None