lib/oci/core/compute_management_client.rb
def terminate_instance_pool(instance_pool_id, opts = {})
      logger.debug 'Calling operation ComputeManagementClient#terminate_instance_pool.' if logger

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

      path = '/instancePools/{instancePoolId}'.sub('{instancePoolId}', instance_pool_id.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[:'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: 'ComputeManagementClient#terminate_instance_pool') 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
# Terminate the specified instance pool.
#
# **Warning:** When you delete an instance pool, the resources that were created by the pool are permanently
# deleted, including associated instances, attached boot volumes, and block volumes.
#
# If an autoscaling configuration applies to the instance pool, the autoscaling configuration will be deleted
# asynchronously after the pool is deleted. You can also manually delete the autoscaling configuration using
# the `DeleteAutoScalingConfiguration` operation in the Autoscaling API.
#
# @param [String] instance_pool_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool.
# @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] :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 resource's current etag value.
#
# @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/core/terminate_instance_pool.rb.html) to see an example of how to use terminate_instance_pool API.
Terminate the specified instance pool.
Warning:** When you delete an instance pool, the resources that were created by the pool are permanently
deleted, including associated instances, attached boot volumes, and block volumes.

If an autoscaling configuration applies to the instance pool, the autoscaling configuration will be deleted
asynchronously after the pool is deleted. You can also manually delete the autoscaling configuration using
the `DeleteAutoScalingConfiguration` operation in the Autoscaling API.
Terminate the specified instance pool . Warning : ** When you delete an instance pool the resources that were created by the pool are permanently deleted including associated instances attached boot volumes and block volumes . If an autoscaling configuration applies to the instance pool the autoscaling configuration will be deleted asynchronously after the pool is deleted . You can also manually delete the autoscaling configuration using the ` DeleteAutoScalingConfiguration ` operation in the Autoscaling API .
def terminate_instance_pool(instance_pool_id, opts = {})
      logger.debug 'Calling operation ComputeManagementClient#terminate_instance_pool.' if logger
      raise "Missing the required parameter 'instance_pool_id' when calling terminate_instance_pool." if instance_pool_id.nil?
      raise "Parameter value for 'instance_pool_id' must not be blank" if OCI::Internal::Util.blank_string?(instance_pool_id)
      path = '/instancePools/{instancePoolId}'.sub('{instancePoolId}', instance_pool_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      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: 'ComputeManagementClient#terminate_instance_pool') 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 terminate_instance_pool ( instance_pool_id , opts = { } ) logger . debug 'Calling operation ComputeManagementClient#terminate_instance_pool.' if logger raise "Missing the required parameter 'instance_pool_id' when calling terminate_instance_pool." if instance_pool_id . nil? raise "Parameter value for 'instance_pool_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( instance_pool_id ) path = '/instancePools/{instancePoolId}' . sub ( '{instancePoolId}' , instance_pool_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' 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 : 'ComputeManagementClient#terminate_instance_pool' ) 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
Terminate the specified instance pool.
Terminate the specified instance pool .
# 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
instance_pool_id
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 resource's current etag value.
: 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 resource ' s current etag value .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use terminate_instance_pool API.
Click [ here ] to see an example of how to use terminate_instance_pool API .