clients/kratos/ruby/lib/ory-kratos-client/api/v0alpha1_api.rb
# List Identities
# Lists all identities. Does not support search at the moment.  Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
# @param [Hash] opts the optional parameters
# @option opts [Integer] :per_page Items per Page  This is the number of items per page.
# @option opts [Integer] :page Pagination Page
# @return [Array<(Array<Identity>, Integer, Hash)>] Array<Identity> data, response status code and response headers
List Identities
Lists all identities. Does not support search at the moment.  Learn how identities work in [Ory Kratos' User And Identity Model Documentation].
List Identities Lists all identities . Does not support search at the moment . Learn how identities work in [ Ory Kratos ' User And Identity Model Documentation ] .
def admin_list_identities_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.admin_list_identities ...'
      end
      if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 500
        fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha1Api.admin_list_identities, must be smaller than or equal to 500.'
      end
      if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
        fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha1Api.admin_list_identities, must be greater than or equal to 1.'
      end
      if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
        fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha1Api.admin_list_identities, must be greater than or equal to 0.'
      end
      local_var_path = '/identities'
      query_params = opts[:query_params] || {}
      query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
      query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'Array<Identity>'
      auth_names = opts[:debug_auth_names] || ['oryAccessToken']
      new_options = opts.merge(
        :operation => :"V0alpha1Api.admin_list_identities",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#admin_list_identities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def admin_list_identities_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: V0alpha1Api.admin_list_identities ...' end if @api_client . config . client_side_validation && ! opts [ :' per_page ' ] . nil? && opts [ :' per_page ' ] > 500 fail ArgumentError , 'invalid value for "opts[:"per_page"]" when calling V0alpha1Api.admin_list_identities, must be smaller than or equal to 500.' end if @api_client . config . client_side_validation && ! opts [ :' per_page ' ] . nil? && opts [ :' per_page ' ] < 1 fail ArgumentError , 'invalid value for "opts[:"per_page"]" when calling V0alpha1Api.admin_list_identities, must be greater than or equal to 1.' end if @api_client . config . client_side_validation && ! opts [ :' page ' ] . nil? && opts [ :' page ' ] < 0 fail ArgumentError , 'invalid value for "opts[:"page"]" when calling V0alpha1Api.admin_list_identities, must be greater than or equal to 0.' end local_var_path = '/identities' query_params = opts [ :query_params ] || { } query_params [ :' per_page ' ] = opts [ :' per_page ' ] if ! opts [ :' per_page ' ] . nil? query_params [ :' page ' ] = opts [ :' page ' ] if ! opts [ :' page ' ] . nil? header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'Array<Identity>' auth_names = opts [ :debug_auth_names ] || [ 'oryAccessToken' ] new_options = opts . merge ( :operation => :" V0alpha1Api.admin_list_identities " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: V0alpha1Api#admin_list_identities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List Identities
Lists all identities.
List Identities Lists all identities .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
Array data, response status code and response headers
Array data response status code and response headers
Array<(Array<Identity>, Integer, Hash)>
opts
:page Pagination Page
: page Pagination Page
<not_specific>
opts the optional parameters
opts the optional parameters