lib/oci/network_load_balancer/network_load_balancer_client.rb
def delete_backend(network_load_balancer_id, backend_set_name, backend_name, opts = {})
      logger.debug 'Calling operation NetworkLoadBalancerClient#delete_backend.' if logger

      raise "Missing the required parameter 'network_load_balancer_id' when calling delete_backend." if network_load_balancer_id.nil?
      raise "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil?
      raise "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil?
      raise "Parameter value for 'network_load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(network_load_balancer_id)
      raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name)
      raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_name)

      path = '/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}'.sub('{networkLoadBalancerId}', network_load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_name.to_s)
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}

      # Header 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]
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'NetworkLoadBalancerClient#delete_backend') 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
      # rubocop:enable Metrics/BlockLength
    end
# Removes a backend server from a given network load balancer and backend set.
# @param [String] network_load_balancer_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update.
# @param [String] backend_set_name The name of the backend set associated with the backend server.
#
#   Example: `example_backend_set`
#
# @param [String] backend_name The name of the backend server to remove. This is specified as <ip>:<port>, or as <ip> <OCID>:<port>.
#
#   Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<var>&lt;unique_ID&gt;</var>:8080`
#
# @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 must contact Oracle about a
#   particular request, then provide the request identifier.
#
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
#   for a resource, set the `if-match` parameter to the value of the
#   etag from a previous GET or POST response for that resource.
#   The resource will be updated or deleted only if the etag you
#   provide matches the current etag value of the resource.
#    (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/networkloadbalancer/delete_backend.rb.html) to see an example of how to use delete_backend API.
Removes a backend server from a given network load balancer and backend set.
Removes a backend server from a given network load balancer and backend set .
def delete_backend(network_load_balancer_id, backend_set_name, backend_name, opts = {})
      logger.debug 'Calling operation NetworkLoadBalancerClient#delete_backend.' if logger
      raise "Missing the required parameter 'network_load_balancer_id' when calling delete_backend." if network_load_balancer_id.nil?
      raise "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name.nil?
      raise "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name.nil?
      raise "Parameter value for 'network_load_balancer_id' must not be blank" if OCI::Internal::Util.blank_string?(network_load_balancer_id)
      raise "Parameter value for 'backend_set_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_set_name)
      raise "Parameter value for 'backend_name' must not be blank" if OCI::Internal::Util.blank_string?(backend_name)
      path = '/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}'.sub('{networkLoadBalancerId}', network_load_balancer_id.to_s).sub('{backendSetName}', backend_set_name.to_s).sub('{backendName}', backend_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]
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'NetworkLoadBalancerClient#delete_backend') 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_backend ( network_load_balancer_id , backend_set_name , backend_name , opts = { } ) logger . debug 'Calling operation NetworkLoadBalancerClient#delete_backend.' if logger raise "Missing the required parameter 'network_load_balancer_id' when calling delete_backend." if network_load_balancer_id . nil? raise "Missing the required parameter 'backend_set_name' when calling delete_backend." if backend_set_name . nil? raise "Missing the required parameter 'backend_name' when calling delete_backend." if backend_name . nil? raise "Parameter value for 'network_load_balancer_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( network_load_balancer_id ) raise "Parameter value for 'backend_set_name' must not be blank" if OCI :: Internal :: Util . blank_string? ( backend_set_name ) raise "Parameter value for 'backend_name' must not be blank" if OCI :: Internal :: Util . blank_string? ( backend_name ) path = '/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}' . sub ( '{networkLoadBalancerId}' , network_load_balancer_id . to_s ) . sub ( '{backendSetName}' , backend_set_name . to_s ) . sub ( '{backendName}' , backend_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 ] header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'NetworkLoadBalancerClient#delete_backend' ) 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
Removes a backend server from a given network load balancer and backend set.
Removes a backend server from a given network load balancer and backend set .
# 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
network_load_balancer_id
backend_set_name
backend_name
opts
:if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the current etag value of the resource. (default to )
: if_match For optimistic concurrency control . In the PUT or DELETE call for a resource set the ` if - match ` parameter to the value of the etag from a previous GET or POST response for that resource . The resource will be updated or deleted only if the etag you provide matches the current etag value of the resource . ( default to )
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use delete_backend API.
Click [ here ] to see an example of how to use delete_backend API .