clients/hydra/ruby/lib/ory-hydra-client/api/admin_api.rb
# List OAuth 2.0 Clients
# This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The &#x60;limit&#x60; parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects.  OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components. The \&quot;Link\&quot; header is also included in successful responses, which contains one or more links for pagination, formatted like so: &#39;&lt;https://hydra-url/admin/clients?limit&#x3D;{limit}&amp;offset&#x3D;{offset}&gt;; rel&#x3D;\&quot;{page}\&quot;&#39;, where page is one of the following applicable pages: &#39;first&#39;, &#39;next&#39;, &#39;last&#39;, and &#39;previous&#39;. Multiple links can be included in this header, and will be separated by a comma.
# @param [Hash] opts the optional parameters
# @option opts [Integer] :limit The maximum amount of clients to returned, upper bound is 500 clients.
# @option opts [Integer] :offset The offset from where to start looking.
# @option opts [String] :name The name of the clients to filter by.
# @option opts [String] :owner The owner of the clients to filter by.
# @return [Array<(Array<OAuth2Client>, Integer, Hash)>] Array<OAuth2Client> data, response status code and response headers
List OAuth 2.0 Clients
This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. The `limit` parameter can be used to retrieve more clients, but it has an upper bound at 500 objects. Pagination should be used to retrieve more than 500 objects.  OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.
List OAuth 2 . 0 Clients This endpoint lists all clients in the database and never returns client secrets . As a default it lists the first 100 clients . The ` limit ` parameter can be used to retrieve more clients but it has an upper bound at 500 objects . Pagination should be used to retrieve more than 500 objects . OAuth 2 . 0 clients are used to perform OAuth 2 . 0 and OpenID Connect flows . Usually OAuth 2 . 0 clients are generated for applications which want to consume your OAuth 2 . 0 or OpenID Connect capabilities . To manage ORY Hydra you will need an OAuth 2 . 0 Client as well . Make sure that this endpoint is well protected and only callable by first - party components .
def list_o_auth2_clients_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AdminApi.list_o_auth2_clients ...'
      end
      local_var_path = '/clients'
      query_params = opts[:query_params] || {}
      query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
      query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
      query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
      query_params[:'owner'] = opts[:'owner'] if !opts[:'owner'].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<OAuth2Client>'
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"AdminApi.list_o_auth2_clients",
        :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: AdminApi#list_o_auth2_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_o_auth2_clients_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AdminApi.list_o_auth2_clients ...' end local_var_path = '/clients' query_params = opts [ :query_params ] || { } query_params [ :' limit ' ] = opts [ :' limit ' ] if ! opts [ :' limit ' ] . nil? query_params [ :' offset ' ] = opts [ :' offset ' ] if ! opts [ :' offset ' ] . nil? query_params [ :' name ' ] = opts [ :' name ' ] if ! opts [ :' name ' ] . nil? query_params [ :' owner ' ] = opts [ :' owner ' ] if ! opts [ :' owner ' ] . 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<OAuth2Client>' auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" AdminApi.list_o_auth2_clients " , :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: AdminApi#list_o_auth2_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List OAuth 2.0 Clients
This endpoint lists all clients in the database, and never returns client secrets.
List OAuth 2 . 0 Clients This endpoint lists all clients in the database and never returns client secrets .
# 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<OAuth2Client>, Integer, Hash)>
opts
:owner The owner of the clients to filter by.
: owner The owner of the clients to filter by .
<not_specific>
opts the optional parameters
opts the optional parameters