lib/oci/load_balancer/load_balancer_client.rb
# Lists all of the rules from all of the rule sets associated with the specified listener. The response organizes
# the rules in the following order:
#
# *  Access control rules
# *  Allow method rules
# *  Request header rules
# *  Response header rules
#
# @param [String] load_balancer_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener.
# @param [String] listener_name The name of the listener the rules are associated with.
#
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
#   particular request, please provide the request ID.
#    (default to )
# @return [Response] A Response object with data of type Array<{OCI::LoadBalancer::Models::ListenerRuleSummary ListenerRuleSummary}>
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/list_listener_rules.rb.html) to see an example of how to use list_listener_rules API.
Lists all of the rules from all of the rule sets associated with the specified listener. The response organizes
the rules in the following order.


Lists all of the rules from all of the rule sets associated with the specified listener . The response organizes the rules in the following order .
def list_listener_rules(load_balancer_id, listener_name, opts = {})
      logger.debug 'Calling operation LoadBalancerClient#list_listener_rules.' if logger
      raise "Missing the required parameter 'load_balancer_id' when calling list_listener_rules." if load_balancer_id.nil?
      raise "Missing the required parameter 'listener_name' when calling list_listener_rules." if listener_name.nil?
      raise "Parameter value for 'load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(load_balancer_id)
      raise "Parameter value for 'listener_name' must not be blank" if OCI::Internal::Util.blank_string?(listener_name)
      path = '/loadBalancers/{loadBalancerId}/listeners/{listenerName}/rules'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{listenerName}', listener_name.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'LoadBalancerClient#list_listener_rules') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::LoadBalancer::Models::ListenerRuleSummary>'
        )
      end
    end
def list_listener_rules ( load_balancer_id , listener_name , opts = { } ) logger . debug 'Calling operation LoadBalancerClient#list_listener_rules.' if logger raise "Missing the required parameter 'load_balancer_id' when calling list_listener_rules." if load_balancer_id . nil? raise "Missing the required parameter 'listener_name' when calling list_listener_rules." if listener_name . nil? raise "Parameter value for 'load_balancer_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( load_balancer_id ) raise "Parameter value for 'listener_name' must not be blank" if OCI :: Internal :: Util . blank_string? ( listener_name ) path = '/loadBalancers/{loadBalancerId}/listeners/{listenerName}/rules' . sub ( '{loadBalancerId}' , load_balancer_id . to_s ) . sub ( '{listenerName}' , listener_name . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'LoadBalancerClient#list_listener_rules' ) do @api_client . call_api ( :GET , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'Array<OCI::LoadBalancer::Models::ListenerRuleSummary>' ) end end
Lists all of the rules from all of the rule sets associated with the specified listener.
Lists all of the rules from all of the rule sets associated with the specified listener .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type Array<{OCI::LoadBalancer::Models::ListenerRuleSummary ListenerRuleSummary}>
A Response object with data of type Array< { OCI :: LoadBalancer :: Models :: ListenerRuleSummary ListenerRuleSummary } >
Response
load_balancer_id
listener_name
opts
:opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. (default to )
: opc_request_id The unique Oracle - assigned identifier for the request . If you need to contact Oracle about a particular request please provide the request ID . ( default to )
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use list_listener_rules API.
Click [ here ] to see an example of how to use list_listener_rules API .