lib/oci/load_balancer/load_balancer_client.rb
# Deletes a routing policy from the specified load balancer.
#
# To delete a routing rule from a routing policy, use the
# {#update_routing_policy update_routing_policy} operation.
#
# @param [String] load_balancer_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policy to delete.
# @param [String] routing_policy_name The name of the routing policy to delete.
#
#   Example: `example_routing_policy`
#
# @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 nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/loadbalancer/delete_routing_policy.rb.html) to see an example of how to use delete_routing_policy API.
Deletes a routing policy from the specified load balancer.
To delete a routing rule from a routing policy, use the
{#update_routing_policy update_routing_policy} operation.
Deletes a routing policy from the specified load balancer . To delete a routing rule from a routing policy use the { #update_routing_policy update_routing_policy } operation .
def delete_routing_policy(load_balancer_id, routing_policy_name, opts = {})
      logger.debug 'Calling operation LoadBalancerClient#delete_routing_policy.' if logger
      raise "Missing the required parameter 'load_balancer_id' when calling delete_routing_policy." if load_balancer_id.nil?
      raise "Missing the required parameter 'routing_policy_name' when calling delete_routing_policy." if routing_policy_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 'routing_policy_name' must not be blank" if OCI::Internal::Util.blank_string?(routing_policy_name)
      path = '/loadBalancers/{loadBalancerId}/routingPolicies/{routingPolicyName}'.sub('{loadBalancerId}', load_balancer_id.to_s).sub('{routingPolicyName}', routing_policy_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#delete_routing_policy') do
        @api_client.call_api(
          :DELETE,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def delete_routing_policy ( load_balancer_id , routing_policy_name , opts = { } ) logger . debug 'Calling operation LoadBalancerClient#delete_routing_policy.' if logger raise "Missing the required parameter 'load_balancer_id' when calling delete_routing_policy." if load_balancer_id . nil? raise "Missing the required parameter 'routing_policy_name' when calling delete_routing_policy." if routing_policy_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 'routing_policy_name' must not be blank" if OCI :: Internal :: Util . blank_string? ( routing_policy_name ) path = '/loadBalancers/{loadBalancerId}/routingPolicies/{routingPolicyName}' . sub ( '{loadBalancerId}' , load_balancer_id . to_s ) . sub ( '{routingPolicyName}' , routing_policy_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#delete_routing_policy' ) do @api_client . call_api ( :DELETE , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Deletes a routing policy from the specified load balancer.
Deletes a routing policy from the specified load balancer .
# 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 nil
A Response object with data of type nil
Response
load_balancer_id
routing_policy_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 delete_routing_policy API.
Click [ here ] to see an example of how to use delete_routing_policy API .